wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Conditionals

Total questions: 11

Worksheet time: 4mins

Name
Class
Date
1.
What can the Python + operator do?
a)
Join two Strings together
b)
Join two numbers: 12 + 23 is 1223
c)
Add two Strings: "one" + "two" is "three"
d)
Subtract numbers
2.
What can the Python + operator do?
a)
Add two numbers
b)
Join two numbers: 12 + 23 is 1223
c)
Add two Strings: "one" + "two" is "three"
d)
Subtract numbers
3.
The str() function
a)
converts a number to a String
b)
converts a String to a number
c)
stretches a number
d)
stretches a String
4.
The int() function
a)
converts a number to a String
b)
converts a String to a number
c)
does integration
d)
does internalisation
5.
Parentheses are performed
a)
from left to right
b)
from right to left
c)
from the inside out
d)
randomly
6.
A list of commands performed one after the other is a
a)
block
b)
variable
c)
comment
d)
function
7.
The decision in an IF statement is followed by
a)
a nested block
b)
a comment, always
c)
the word "END"
d)
a print(), always
8.
An IF statement is also known as a
a)
conditional statement
b)
comment
c)
dependency
d)
thinking statement
9.
The ELSE and ELIF sections in an IF statement are
a)
optional
b)
mandatory
c)
only used on Mondays
d)
completely useless
10.

The comparison operators are

a)

==, !=, <, >, <= and >=

b)

=, not =, less than, greater than

c)

+ - * /

d)

never used

11.
A nested block is
a)
a block of code inside another block
b)
a Lego block inside another Lego block
c)
written with the same indenting level
d)
written in uppercase