NEW
Font size
WorksheetsPython Programming Basics
Total questions: 12
Worksheet time: 6mins
What is the word (command) used to display output within Python?
input
output
display
What is a variable?
A box(memory location) where you store values
A box(memory location) where you store multiple values
Data type
A static memory value
name = 'Dave'
print (name)
Which of these would work as a piece of code in Python?
IF answer == "Yes":
if answer == "Yes"
if answer == "Yes":
if answer = "yes":
What function is used to output a message in python?
print ("")
print = ("")
Print ("")
What syntax would you use to create a name variable in Python?
name=input()
input=name
name=input{}
name=INPUT
If you want multiple options for your code, what should you use (after if)?
elif
else
if
Returns the remainder from division.
DIV
MOD
A data type consisting of numbers with decimals.
integer
float / real
string
boolean
A data type consisting of whole numbers.
integer
float / real
string
boolean
A data type consisting of a single character.
integer
character
string
boolean
