check

Quiz: Data Types and Operators

Programming with Python Data Types and Operators Quiz

Click the button below to start.

Start

Question 1 of 8

What will be printed on the screen?

hello = 3
"hello" == "hello + 2"
print(hello)

 

A

5

B

3

C

2

D

"hello + 2"

Question 2 of 8

Will this program run?

hello = 3
"hello" = "hello + 2"
print(hello)

A

Yes

B

No

Question 3 of 8

What will the function "type" output here?

hello = 3
"hello" == "hello + 2"
type("hello")

A

String

B

Number

C

Boolean

Question 4 of 8

What will this program output?

a = 5
b = 4
a = a + b - a
print(a == b)

A

True

B

False

C

9

D

Program does not run. There is an error

Question 5 of 8

What will this program output?

a = 5
b = 4
print(5 == b)

A

True

B

False

C

5

D

Program does not run. There is an error

Question 6 of 8

What will this program output?

a = 5
b = 4
print(4 = b)

A

True

B

False

C

4

D

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)

A

True

B

False

C

Program does not run. There is an error.

Question 8 of 8

What is the output of this program?

a = True
b = not(a)
print(not(b or a))

A

True

B

False

Confirm and Submit