Font size
WorksheetsPython Recap
Total questions: 15
Worksheet time: 8mins
What in the name of the variable in this Python code?
name
input
("What is your name")
When coding in Python what two instructions would I use if I want the program to select a choice?
IF
IF
COUNT
IF
ELSE
IF
INPUT
What is missing from the Python code in the image?
() [brackets]
" " [speech marks]
: [colon]
; [semi-colon]
What is missing in the code below:
print(Hello World")
(a)
Which of the following lines of code is the correct way to create an input stored in a variable called age?
input("What is your age?") = age
Age = input("What is your age?")
age = input("What is your age")
age = input "What is your age?"
Which of the following variables will have a string data type
x = 5
x = "5"
y = "Hello"
y = Hello
If a grade of 98 was inputted, what would be the output?
Passed
Failed
Else
What would the program output with the following inputs?
Payrate - 12
Hours Worked - 10
12
Final pay
OUTPUT
120
Which of these is a list?
fruit = ["apples", "oranges", "bananas"]
fruit = "apples", "oranges", "bananas"
fruit = {"apples", "oranges", "bananas"}
fruit = ("apples", "oranges", "bananas")
names = ["Paul","Phillip","Paula","Phillipa"]
What will this code output?
nothing at all
dude
dude, 4 times
dude, 6 times
dude, 3 times
