CORRECT Answers
Binary/ Binary Search - CORRECT ANSWER✔✔- This type of search's advantage
increases as arrays get bigger
True/ T - CORRECT ANSWER✔✔- Arrays must be sorted to use Binary Search (T/F)
False/ F - CORRECT ANSWER✔✔- FOR EACH can be used for assignment (T/F)
Local Variable - CORRECT ANSWER✔✔- Variables within a method that can only be seen
by that method
True/ T - CORRECT ANSWER✔✔- Parameters in the method call and method header must
be in the same quantity, data type, and sequence (T/F)
Void - CORRECT ANSWER✔✔- Method has no return statement
True/ T - CORRECT ANSWER✔✔- Method (function) headers do NOT need to include
parameters (T/F)
False/ F - CORRECT ANSWER✔✔- The body of a method cannot be empty (T/F)
Byte - CORRECT ANSWER✔✔- Which data type would you use for householdSize
Double - CORRECT ANSWER✔✔- Which data type would you use for
elementAtomicWeight
Int - CORRECT ANSWER✔✔- Which data type would you use for cityPopulation
Character/ Char - CORRECT ANSWER✔✔- Which data type would you use for letterGrade
, Boolean/ Bool - CORRECT ANSWER✔✔- Which data type would you use for isItRaining
Long - CORRECT ANSWER✔✔- Which data type would you use for worldPopulation
Float - CORRECT ANSWER✔✔- Which data type would you use for annualPercentageRate
Short - CORRECT ANSWER✔✔- Which data type would you use for
numberOfHousesInSubdivision
Compiling/ Compile - CORRECT ANSWER✔✔- Process of turning source code into
working program
Continue - CORRECT ANSWER✔✔- This command skips an iteration of a loop
1 - CORRECT ANSWER✔✔- 3 - 6 % 5 * 2
Arithmatic - CORRECT ANSWER✔✔- What is evaluated FIRST in an expression
True/ T - CORRECT ANSWER✔✔- Do-While loops are not determinate (T/F)
count++ - CORRECT ANSWER✔✔- Another way of saying count +1
False/ F (must have END MAIN to be valid) - CORRECT ANSWER✔✔- MAIN is valid
pseudocode (T/F)
Linear/ Linear Search - CORRECT ANSWER✔✔- This type of search:
Examines every individual item in array until target is found/ not found
Searches in order of magnitude (O(n))
Uses a for nested if loop