NEW
Font size
WorksheetsQuiz 2 - Python coding
Total questions: 20
Worksheet time: 10mins
holds whole numbers
holds a decimal point in a number
what is the code for a STRING in python?
str
stri
string
What does this code do?
print("Hello world!")
Displays 'Hello world!' in the shell window.
Sends 'Hello world!' to the printer.
Waits for the user to type in 'Hello world!'
Displays 'hello, world.' in the shell window.
What symbol do you type in to add a short comment?
"""
#
@
/
True or False:
phone.number is a good name for a variable.
True
False
What does this function do?
input()
Opens the CD tray.
Asks the user to type something in.
Displays the word 'input'.
Exits the program.
What is a variable?
A number such as 25.
Plus, minus, multiply, divide or equals.
An array of text.
A storage location in the program which stores a value.
Gjdk is not a good name for a variable, why?
It starts with a capital letter.
It does not contain any spaces.
There are no vowels.
It's meaningless.
