WorksheetsPython (printing)
Total questions: 10
Worksheet time: 5mins
When you open the Python interface you first see the (a)
There are 3 arrows that are a prompt for you to enter (b)
The command you type in is performed when you (c)
In Python, the command to make text appear on the screen is...
output
display
When you finish typing the word print into the shell, the word changes colour - what colour does it become?
blue
red
green
purple
Which of these commands would produce an error message?
print("Hello")
print('Hello')
print(Hello)
Which of these commands would produce an error message?
print("Hello")
print('Hello')
print"Hello"
What would be the result of entering the command below?
PRINT("Hello")
Error message
Hello is printed
Nothing, it will wait for more commands
What would be the result of entering the command below?
print("That's right!")
Error message
That's right! is printed
Nothing, it will wait for more commands
What would be the result of entering the command below?
PRINT('That's right!')
Error message
That's right! is printed
Nothing, it will wait for more commands
What would be the result of entering the command below?
print(2*"Hello")
Error message
Hello
Hello
HelloHello
What command would produce the output shown below?
Hello
Hello
print(2*"Hello\n")
print(2*"Hello"\n)
print("Hello\n")*2
print(2*"Hello/n")
