Question 1
What is printed by the following program?
marks = 69if marks >= 75: print("A")elif marks >= 45: print("B")else: print("C")bBErrorNone
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.
What is printed by the following program?
marks = 69if marks >= 75: print("A")elif marks >= 45: print("B")else: print("C")b
B
Error
None
What will be the output of the code below?
marks = 23if marks >= 75: print("A")elif marks >= 45: print("B")else: print("C")None
c
C
Error
Consider the program given below. What does it print?
marks = 46if marks >= 75: print("A")elif marks >= 45: print("B")else: print("C")None
B
Error
b
Authorise with Google to see every question with its answer and explanation and practise it in learning mode.