Question 78

How many times loop will be executed in the following flow chart ?

How many times loop will be executed in the following flow chart ? Flowchart: Start → U=70 → decision 'IS U>=0?' — NO: exit; YES: PRINT U → U=U−35 → back to the decision.
  1. A1
  2. B2
  3. C3
  4. D70
Show answerHide answer

Correct answer: (C) 3

Explanation

Corrected: the book's key says (b). U takes the values 70, 35 and 0 (all >= 0), so the loop body runs 3 times.

From DSSSB TGT Computer Science Practice Set 5

This is question 78 of DSSSB TGT Computer Science Practice Set 5. 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.