WorksheetsFoundations of Programming
Total questions: 18
Worksheet time: 18mins
Python is a ______ - ________ Language
(a)
What is a Boolean?
True or False statement
Numerical Operator
A cube that is used for a soup base.
A Ghost on a tree
Python language was developed in what year?
1985
2001
1991
1820
Python uses indentation to block code into chunks
True
False
print("Hello world!\nHello world!")
Hello world!
What is a Count-Controlled loop?
for loop
while loop
Which of these operators means EQUAL TO?
'='
'=>'
'<='
'=='
Which of these will allow me to count from 0-20 in steps of 5?
for x in range(0,20):
print(x)
while x = (0,20,5):
print(x)
for x in range(0,21,5):
print(x)
for x in range(0,21,5):
print(y)
If I want to continuously check for a correct answer, what loop would I use?
for loop
while loop
How many lines will this code print?
x = 10
while x > 0:
print(x)
x = x - 3
5
2
3
4
There are 7 main types of numeric operators
True
False
