wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

From Scratch to Python Quiz Unit 1 ,1.4-1.6

Total questions: 7

Worksheet time: 4mins

Name
Class
Date
1.

A ………………………… statement is also known as iterative statement.

a)

Loop

b)

Function

c)

Line

d)

Python

2.

 

Which of these is NOT a loop in Python?

a)

While

b)

For

c)

Variable

3.

 

This loop can only be used when the programmer knows the number of times a code is to be repeated

a)

while

b)

for

c)

function

d)

repeat

4.

What, if anything, is wrong with the following?

input=x("Type your password: ")

print(x)

a)

The variable should be switched with the input command

b)

Input commands don't need ( )

c)

You can't print x

d)

Nothing is wrong

5.

What would print (10 + 16) produce?

a)

10

b)

16

c)

()

d)

26

6.

The …………………… loop can be applied to a program where the number of iterations is not known beforehand.

a)

While

b)

For

c)

Variable

d)

Printing

7.

Booleans represent one of two values:

a)

True and False

b)

Variables and Functions

c)

Python and Scratch

d)

One and Two