NEW
Font size
S
M
L
XL
WorksheetsSwitches
Total questions: 6
Worksheet time: 3mins
Name
Class
Date
1.
What is the function of a break?
a)
To break things
b)
To end a case
c)
To end the program
d)
To take time off work
2.
What ISN'T compatible with a switch?
a)
Double
b)
Int
c)
Char
d)
String
3.
Do switches require another set of braces?
a)
Yaes
b)
Nus
4.
What is this used for?
a)
Nothing
b)
Stringing months together
c)
Declaring the variable
d)
Setting up the switch
5.
What is the function of the "default"?
a)
Completely ends the switch
b)
Appears in a court of law
c)
Fails to pay your student loans
d)
Is selected automatically if no other cases apply
6.
What was our topic?
a)
Teenage
b)
Mutant
c)
Ninja
d)
Turtles
Reset
