Phyton Quiz

Coding Quiz

1. What is the output of the following code snippet?

num = 5
print(type(num))

A. int
B. float
C. str
D. bool

2. What is the output of the following code snippet?

num1 = 3
num2 = 4
print(num1 * num2)

A. 7
B. 12
C. 25
D. 34

3. What is the output of the following code snippet?

name = 'John'
age = 30
print('My name is {} and I am {} years old.'.format(name, age))

A. My name is John and I am 30 years old.
B. My name is {} and I am {}
G-TMR3K8FQQP