Programming with Python Data Types and Operators Quiz
Click the button below to start.
Question 1 of 8
What will be printed on the screen?
hello = 3 "hello" == "hello + 2" print(hello)
5
3
2
"hello + 2"
Question 2 of 8
Will this program run?
hello = 3 "hello" = "hello + 2" print(hello)
Yes
No
Question 3 of 8
What will the function "type" output here?
hello = 3 "hello" == "hello + 2" type("hello")
String
Number
Boolean
Question 4 of 8
What will this program output?
a = 5 b = 4 a = a + b - a print(a == b)
True
False
9
Program does not run. There is an error
Question 5 of 8
a = 5 b = 4 print(5 == b)
Question 6 of 8
a = 5 b = 4 print(4 = b)
4
Program does not run. There is an error.
Question 7 of 8
What is the output of this program?
a = "5" b = 4 print(a+str(b) == 54)
Question 8 of 8
a = True b = not(a) print(not(b or a))