Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Unit 1 Warm-Up Quiz

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

What data type is used to store text?

a)

Integer

b)

String

c)

Boolean

2.

Which of the following is a Boolean value?

a)

"True"

b)

TRUE

c)

True

3.

What does this loop do?

a)

Prints numbers 1 to 3

b)

Prints numbers 0 to 2

c)

Prints number 3 three times

4.

What type of error is caused by a missing colon (:) in Python?

a)

Runtime error

b)

Syntax error

c)

Logic error

5.

What is the output of this code?

a)

10

b)

4

c)

6

6.

Which data type would best store a person's age?

a)

Float

b)

String

c)

Integer

7.

What is an array (or list) in programming?

a)

A function

b)

A single value

c)

A collection of values

8.

What kind of loop runs as long as a condition is true?

a)

for loop

b)

while loop

c)

do-nothing loop

9.

What is the output of the following?

a)

Ali

b)

Sam

c)

Lina

10.

What is a logic error?

a)

When the program won't start

b)

When the program runs but does the wrong thing

c)

When the program crashes unexpectedly