1) What is the correct syntax to output "Hello World" in Python? a) echo "Hello World" b) echo("Hello World") c) print "Hello World" d) print("Hello World") 2) How do you create a variable with the numeric value 5? a) x = "5" b) x = 5 c) Both the answers are correct 3) In Python, 'Hello', is the same as "Hello" a) True b) False 4) Which operator is used to calculate exponentiation? a) * b) x c) # d) ** 5) Which function is used to get the input from the user? a) get() b) fetch() c) input() d) int() 6) What is the % operator called in python? a) percentage operator b) division operator c) modulo operator d) integer division 7) If days = 2*3+5*2 then what value is assigned to variable days when the expression is executed? a) 33 b) 16 c) 32 d) 15

Python Quiz - Concepts revisited

Leaderboard

Visual style

Options

Switch template

Continue editing: ?