NEW
Font size
WorksheetsQuiz 1 G7
Total questions: 10
Worksheet time: 5mins
What will the output be from the following code?
print(3+4)
3+4
7
SyntaxError
print(3+4)
What will the output be from the following code?
print("Hello world!")
SyntaxError
Hello world!
"Hello world!"
print(Hello world!)
Which of the following is a ONE LINE correctly-formatted comment?
&comment
“”Comment””
!comment
#comment
The correct way to write a variable in python?
my_variables=10
my_variable:10
my variable=10
my_variable is 10
What does the statement 'print' do?
Output a hard copy of a program to a printer
Output a message on the screen
Print a hard copy of a flowchart to a computer
Which data type is used to store:
100
Integer
Boolean
Double
String
Which data type is used to store:
TRUE
String
Boolean
Double
Integer
Which data type is used to store:
"D"
String
Float
Integer
Double
What will be the output?
name = "Dave"
print (name)
Dave
name
'Dave'
(name)
What Python command lets the user enter an answer to a question?
answer()
open()
print()
input()
