NEW
Font size
WorksheetsPython GCSE Recap
Total questions: 28
Worksheet time: 18mins
Python is a
text language
database language
programming language
Code for Hello, World!
print Hello, World!
print("Hello, World!)
print("Hello, World!")
Code for
Five is greater than two!
if 5 > 2:
print("Five is greater than two!")
if 5 = 2:
print("Five is greater than two!")
if 5 > 2: Print("Five is greater than two!")
Insert the missing part of the code below to output
_________________ "My name is ".
What will be the output?
name = "Dave"
print (name)
Dave
'Dave'
name
(name)
Is python an interpreter or compiler programming language?
Compiler
Interpreter
print("Hello world!\nHello world!")
Hello world!
people = ["John", "Rob", "Bob"]
print (people[1])
what would this result be?
holds whole numbers
holds a decimal point in a number
Which type of loop iterates until instructed otherwise?
FOR loop
WHILE loop
FOR loops are
loops which run an unknown number of times
loops which run for a specific number of times
the same as if statements
not part of programming
Which kind of loop would be used?
I need a program that will keep letting me add money to a piggy bank until I get to £100.
FOR Loop
WHILE Loop
Which kind of loop would be used?
I need a program that will keep letting me add a monthly payment for 12 months.
FOR Loop
WHILE Loop
Which kind of loop would be used?
I need a guessing game program that will let me keep guessing until I get the right answer.
FOR Loop
WHILE Loop
Which kind of loop would be used?
I need a revision program that will run through revision questions 4 times.
FOR Loop
WHILE Loop
