WorksheetsUnit 1 Warm-Up Quiz
Total questions: 10
Worksheet time: 5mins
What data type is used to store text?
Integer
String
Boolean
Which of the following is a Boolean value?
"True"
TRUE
True
What does this loop do?
Prints numbers 1 to 3
Prints numbers 0 to 2
Prints number 3 three times
What type of error is caused by a missing colon (:) in Python?
Runtime error
Syntax error
Logic error
What is the output of this code?
10
4
6
Which data type would best store a person's age?
Float
String
Integer
What is an array (or list) in programming?
A function
A single value
A collection of values
What kind of loop runs as long as a condition is true?
for loop
while loop
do-nothing loop
What is the output of the following?
Ali
Sam
Lina
What is a logic error?
When the program won't start
When the program runs but does the wrong thing
When the program crashes unexpectedly
