1. What is the output of print(3 * "Hello")?

A) HelloHelloHello

B) Hello Hello Hello

C) 3Hello

D) TypeError

A) HelloHelloHello


2. How do you check if a key exists in a dictionary?

A) if key in dict.keys()

B) if dict.has_key(key)

C) if key.exists(dict)

D) if key in dict

D) if key in dict


3. What does [x**2 for x in range(5)] produce?

A) [0, 1, 4, 9, 16]

B) [1, 4, 9, 16, 25]

C) [2, 4, 8, 16, 32]

D) SyntaxError