Question 109Asked in DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)

Select the correct output for the following python code?

Select the correct output for the following python code?
  1. ASyntax
  2. BNo
  3. CYes
  4. DError
Show answerHide answer

Correct answer: (B) No

Explanation

Since a = 20 and b = 35, the condition a >= b is False, so the else branch runs and prints "No".

From DSSSB TGT Computer Science PYQ, 7 Feb 2024, Shift 2 (12:30 PM)

This is question 109 of DSSSB TGT Computer Science PYQ, 7 Feb 2024, Shift 2 (12:30 PM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.