Font size
WorksheetsUnit 4 Review (AP CSP)
Total questions: 21
Worksheet time: 12mins
What does the following evaluate to?
!true
true
false
false!
!false
This type of variable is temporary and can only be used where it was created.
local
global
var
universal
What will output to the console?
25
50
75
100
125
What does the following evaluate to?
true || false
true
false
not enough information
true && false
What will output to the console?
"C"
"hug"
"D"
"hawks"
What will output to the console?
"Hi!"
"Bye!"
"Hello!"
"Hola!"
What will output to the console?
"hug"
4
100
112
On which line is a function being called?
(a)
What does the following evaluate to?
true && false
true
false
not enough information
true && false
On which line is a function being declared/defined?
(a)
What does this return?
7%5
2
3
5
7
What's the fancy word we use to combine Strings with other Strings, numbers, or other variables?
(a)
This type of variable is permanent and can be used anywhere in your code.
local
global
var
universal
What will output to the console?
"A"
"a"
"B"
"b"
What will output to the console?
"apple"
"grape"
"Apple"
"Grape"
Which line will likely cause the program to not run correctly?
line 1
line 3
line 4
line 5
What will output to the console log?
"hawks"
19
"hug"
35
A variable is a name reference that can store one value at a time.
true
false
What will output to the console?
"Hi!"
"Bye!"
"Hola!"
"Hello!"
What does the following evaluate to?
false|| false
true
false
not enough information
true && false
In which order will the output appear?
"five" "six" "seven" "five" "six"
"seven" "five" "six" "five" "five"
"five" "six" "five" "six" "seven"
"seven" "five" "six" "five" "six"
