QUESTIONS AND VERIFIED CORRECT ANSWERS 2025-
2026 || 100% GUARANTEED PASS <BRAND NEW
VERSION>
Which variable would make sense to store as a char?
A)player's name
B)weight
C)gender - CORRECT ANSWER- Gender
What data type uses the least amount of memory? - CORRECT ANSWER- Byte
What are 4 examples of integral data types? - CORRECT ANSWER- Byte, integer, short, and
long whole numbers
What are floating point data types? - CORRECT ANSWER- Type that includes fractional data
Which of the following data types would be the best choice for keeping track of player's ages
and jersey numbers using the least amount of memory?
A)short
B)byte
C)int - CORRECT ANSWER- byte
,Which of the following data will be stored on the heap?
A)player's name
B)height
C)age - CORRECT ANSWER- player's name
What are 3 examples of floating point data types? - CORRECT ANSWER- Float, single, and
double
Where do value data types go? - CORRECT ANSWER- On the stack
Where do reference data types go? - CORRECT ANSWER- On the heap
The code in the parentheses of an if statement must be a complete what? - CORRECT
ANSWER- Boolean expression
What do logical operators allow programmers to do? - CORRECT ANSWER- Join 2 expressions
When does a for loop work best? - CORRECT ANSWER- The number of iterations is known and
unlikely to change during execution
What control structure would be best for a login system? - CORRECT ANSWER- while loop
How many times does a do..while loop execute? - CORRECT ANSWER- At least one time
What is the difference between a do..while loop and a while loop? - CORRECT ANSWER- A
while loop may not execute at all
, How does a for loop work? - CORRECT ANSWER- Executes a statement based on the value of a
control variable
How does a while loop work? - CORRECT ANSWER- Executes a statement repetitively based on
a boolean expression
How does a do..while loop work? - CORRECT ANSWER- Boolean expression is not checked until
after the code executes
What is an exception? - CORRECT ANSWER- An object that contains information about an error
What does the term thrown mean? - CORRECT ANSWER- When an exception occurs
What is a try statement? - CORRECT ANSWER- Warning to the computer that you're about to
try something that may not work
What kind of structure gives a developer a chance to keep their program from crashing if an
exception is thrown? - CORRECT ANSWER- try-catch
What is a field? - CORRECT ANSWER- Variable declared within a class
What does a class do? - CORRECT ANSWER- Defines the properties that all objects of that class
will have
What does instantiated mean? - CORRECT ANSWER- Multiple objects created from a class