Year 7 · Quiz 1

print, variables, data types and input

10 multiple-choice questions. Choose one answer for each, then check your score. Covers Parts 1–4 of the Year 7 tutorial.

Predict output Fill blanks Find errors
Predict the output

Question 1

What does this program print?

print("Hello", "Y7")
Choose one answer
Fill in the blank

Question 2

Which symbol stores a value in a variable?

score ___ 10
Choose one answer
Predict the output

Question 3

What is printed?

x = 4
y = 10
x = x + y
print(x)
print(y)
Choose one answer
Data types

Question 4

What is the data type of "17"?

Choose one answer
Predict the output

Question 5

What does this print?

print("5" + "5")
Choose one answer
Find the error

Question 6

Which line causes an error?

coins = 50
print("You have " + coins + " coins")
Choose one answer
Fill in the blank

Question 7

To do maths with typed-in age, complete the line:

age = ___ (input("How old are you? "))
Choose one answer
Predict the output

Question 8

What is the result of 15 // 4?

Choose one answer
Variable names

Question 9

Which variable name is not allowed?

Choose one answer
Find the error

Question 10

What is wrong with this code?

print(true)
Choose one answer

Back to Year 7 tutorial · Next: Quiz 2