15 questions • Select the best answer for each question
What will be the output of the following code? print(10 + 5 * 2)
Which statement correctly prints the result of an expression?
Which of the following is a float?
What does the following code return? type("100")
What will be the output? x = 5 y = float(x) print(y)
Why is type casting important in Python?
Which variable name is INVALID?
What will be the output? Value = 10 value = 20 print(Value)
Which naming convention is recommended for Python variables?
What will be the output? a, b, c = 1, 2, 3 print(b)
What happens here? x = y = z = 5 print(z)
What will be the output? values = [10, 20] a, b = values print(a + b)
What is the data type of this expression? 5 > 3
Which line best demonstrates “real Python logic”?
Why should beginners focus deeply on Python fundamentals?