What is printed? python marks = 72 if marks = 80: print('A') elif marks = 70: print('B') else: print('C')

  1. B
  2. C
  3. B and C
  4. A
Answer

A) B

72 is not ≥ 80 but is ≥ 70, so the elif branch runs; later branches are skipped. SLO CS-11-C-02 · Application

Computer Science MCQ · More Unit 3: Programming Fundamentals MCQs · Practise