NEW
Font size
Worksheets1 Python Quiz
Total questions: 10
Worksheet time: 5mins
What function would I use to display text?
sum
import
function
What would I use to display a string of text?
/// ///
“” ,,,
*** ***
‘‘‘ ’’’
What is the correct name for a *?
asterisk
hashtag
loop
star
Where do you edit your code?
console
interrupter
compiler
editor
What is missing from this program – print(hello)?
‘‘ ’’
::
??
*** ***
Work out the errors for each number below.
Which number below will work?
1
2
3
4
What code would produce something like this?
hellohellohellohellohello
print("Hello" * 5)
print(Hello * 4)
print("hello" * 5)
print("Hello * 5
Why will this program NOT work?
print("hello" - 7)
There is no quotation marks
You cannot subtract a number (INT) from a string of text (STR)
The print function is wrong
"hello" is not a string of text
What will this program print?
print("@" + "£")
£
@@@@££££
@£
@
What will this program print to the screen?
Hello Fred
Hello name
What's your name?
Hello then the answer to "What's your name?"
