Python Practice Quiz - 1

Answer all questions and submit to see your score.

1 Single Answer

What is a variable in Python?

2 Single Answer

What will this print? x = 10 y = "10" print(type(x), type(y))

3 Single Answer

What is the difference between / and // in Python?

4 Single Answer

What does 17 % 5 return and why?

5 Single Answer

When do you use elif instead of a new if?

6 Single Answer

What will this print? marks = 72 if marks >= 90: print("A") elif marks >= 70: print("B") else: print("C")

7 Single Answer

What is the difference between a for loop and a while loop?