WorksheetsClevered - Python-Halloweeen
Total questions: 25
Worksheet time: 25mins
print(3+4)
print("3+4")
print(3*4+5)
Which of these is a string?
42
True
"This one!"
No, this one
The code snippet above outputs
error
None
NaN
-1
What is the output of the code above
None
Syntax Error
-1
Code doesn't compile
The code above prints
Math
Physics
Chemistry
English
4
3.8
3.6
3.7
None
None
None
None
NaN
NaN
NaN
NaN
The output of the code above is
[101, 102, 103, 104]
[3.6, 3.7, 3.8, 4]
The program above
prints all the odd numbers between 1 and 20
prints all even numbers between 1 and 20
print all the odd numbers between 1 and 21
prints all the even numbers between 1 and 21
The equivalent of the above for loop using the while syntax would be
How many times will 1 be printed
3
4
5
6
What is the output of the given code?
10 20 10
10
20
10 20
What is the output of the given code?
10 20 10 20
10 20 10
10 20 20
Error
The default return value of any function in Python is _______________.
null
0
None
Garbage value
Result of the program above is
('1', '2', '3', '4', '5')
(1, 2, 3, 4, 5)
12345
"12345"
What is the output of the code above
(1, '2', 3, 4, 5)
syntax error
(1, 2, 3, 4, 5)
('1', '2', '3', '4', '5')
Examples of String Literals
"ABC1273"
nfjdlsj@@$
12638
'7e920938'
Which Halloween activity is this?
Treat or Trick
Trick or Treat
Trick or Candy
Give me candy
Who's this?
Frankenstein
Shrek
Green monster
Grinch
What's this?
Crazy house
Haunted house
House of dark
Ghost house
