Font size
WorksheetsYear 8 Python
Total questions: 10
Worksheet time: 12mins
which of these are a correct print statement
Print("Computer science")
prit ("Computer science")
print (Computer science")
print ("Computer science")
Which of these is suitable for a variable name
x = '4hello'
x = 'hello there'
x = 'hello'
x = hello there
which of the statements below will print properly?
x = 6
y = "I am"
print (y , x)
print ((int(y) , x)
print (y, (str(x))
print (y , (int(x))
I am used multiple times in a program; I can be changed and stored in memory. I am a ? ONE WORD ANSWER.
(a)
I am a data type. I can be a mix of letters and numbers/special characters. I am a ? ONE WORD ANSWER.
(a)
I am a data type. I am used to complete maths problems. what am I ? ONE WORD ANSWER
(a)
Which line in this program is incorrect?
if 6 > 8:
print ("Correct")
else
print ("Incorrect")
Line 1
Line 2
Line 3
Line 4
Which line in this program is incorrect?
if 9 > 8:
Print ("Correct")
else:
print ("Incorrect")
Line 1
Line 2
Line 3
Line 4
Which line in this program is incorrect?
if dog == cat:
print ("Correct")
else:
print (Incorrect)
Line 1
Line 2
Line 3
Line 4
Which line in this program is incorrect?
if dog = cat:
print ("Correct")
else:
print ("Incorrect")
Line 1
Line 2
Line 3
Line 4
