Font size
WorksheetsVariables Warm Up
Total questions: 10
Worksheet time: 10mins
What type of variable is 5
String
Boolean
Integer
Float
What type of variable is "peanut butter"?
String
Boolean
Integer
Float
What type of variable is -7?
String
Boolean
Integer
Float
What type of variable is 8.9?
String
Boolean
Integer
Float
What type of variable is false?
String
Boolean
Integer
Float
Which is correct?
var 8ballLocation;
var EightBallLocation;
var eightballLocation;
var eightBallLocation;
Which is correct?
printLn
println
printIn
printin
What keyword do you need to use to define/initialize a variable?
variable
int
x
var
What does this print to the computer?
var pet = "dogs'
var numOfPets = 3
println("I have " + numOfPets+ " " + pet)
What does this print to the computer?
var pet = "dogs'
var numOfPets = 3
println("I have " + numOfPets+ " " + pet)
pet = "cat"
numOfPets = 1
println("My friend has" + numOfPets + " " + pet)
