Code HS, Introduction to Computer
Science, Final Exam, Multiple Choice
Questions
1. Evaluate the mathematical expression 3 + 4 * -
CORRECT ANSWERS ✔✔B. 15
2. If x represents the area of the number line colored
blue, which inequality accurately reflects the value of x? -
CORRECT ANSWERS ✔✔A. x< 4
3. Twelve identical circles fit inside the rectangle as
shown below. If the rectangle has a width of 32 units and
a height of 24 units, what is the radius of each circle? -
CORRECT ANSWERS ✔✔D. 4
4. Karel the Dog is instructed to move forward two
spaces. Then, if Karel is standing on a ball, Karel will turn
left and move forward two spaces. Otherwise, Karel will
turn around and move forward two spaces. Given the
starting point below, where will Karel end up? - CORRECT
ANSWERS ✔✔B.
5. Which of the following describes a task effectively
broken into smaller parts?
I. Making a list of your favorite colors
, Code HS, Introduction to Computer
Science, Final Exam, Multiple Choice
Questions
II. Throwing a dinner party by making a guest list, buying
ingredients, and cooking food
III. Comparing the syntax of Python and JavaScript -
CORRECT ANSWERS ✔✔C. II only
6. Consider the following program code, where 'hours' is
an input from the user.
if(hours <= 12){
println("Good morning!");
} else if(hours< 16){
println("Good afternoon!");
} else {
println("Hello!");
}
Of the following choices, select the value for 'hour' that
would cause this program to print "Good Afternoon!" -
CORRECT ANSWERS ✔✔B. 15
7. Which of the following successfully switches the values
of the variables x and y? The var temp may be used as a
temporary variable if necessary. - CORRECT ANSWERS
✔✔D. Var temp = x;
Science, Final Exam, Multiple Choice
Questions
1. Evaluate the mathematical expression 3 + 4 * -
CORRECT ANSWERS ✔✔B. 15
2. If x represents the area of the number line colored
blue, which inequality accurately reflects the value of x? -
CORRECT ANSWERS ✔✔A. x< 4
3. Twelve identical circles fit inside the rectangle as
shown below. If the rectangle has a width of 32 units and
a height of 24 units, what is the radius of each circle? -
CORRECT ANSWERS ✔✔D. 4
4. Karel the Dog is instructed to move forward two
spaces. Then, if Karel is standing on a ball, Karel will turn
left and move forward two spaces. Otherwise, Karel will
turn around and move forward two spaces. Given the
starting point below, where will Karel end up? - CORRECT
ANSWERS ✔✔B.
5. Which of the following describes a task effectively
broken into smaller parts?
I. Making a list of your favorite colors
, Code HS, Introduction to Computer
Science, Final Exam, Multiple Choice
Questions
II. Throwing a dinner party by making a guest list, buying
ingredients, and cooking food
III. Comparing the syntax of Python and JavaScript -
CORRECT ANSWERS ✔✔C. II only
6. Consider the following program code, where 'hours' is
an input from the user.
if(hours <= 12){
println("Good morning!");
} else if(hours< 16){
println("Good afternoon!");
} else {
println("Hello!");
}
Of the following choices, select the value for 'hour' that
would cause this program to print "Good Afternoon!" -
CORRECT ANSWERS ✔✔B. 15
7. Which of the following successfully switches the values
of the variables x and y? The var temp may be used as a
temporary variable if necessary. - CORRECT ANSWERS
✔✔D. Var temp = x;