Quiz Space

Python week 2 important questions

Week 2 of Programming in Python: Conditionals. Extra important questions based on the recent, changing patterns of the exams, from basic to advanced. Practise them in learning mode: each question has a worked solution.

Question 1

One correct option

What is printed by the following program?

marks = 69
if marks >= 75:
print("A")
elif marks >= 45:
print("B")
else:
print("C")
  1. A

    b

  2. B

    B

  3. C

    Error

  4. D

    None

Question 2

One correct option

What will be the output of the code below?

marks = 23
if marks >= 75:
print("A")
elif marks >= 45:
print("B")
else:
print("C")
  1. A

    None

  2. B

    c

  3. C

    C

  4. D

    Error

Question 3

One correct option

Consider the program given below. What does it print?

marks = 46
if marks >= 75:
print("A")
elif marks >= 45:
print("B")
else:
print("C")
  1. A

    None

  2. B

    B

  3. C

    Error

  4. D

    b

More questions in this week

Authorise with Google to see every question with its answer and explanation and practise it in learning mode.