Question 70Asked in DSSSB TGT Computer Science (Technical), 12 Sep 2025, Shift 3 (5:00 PM)

What does the if statement do?

  1. AHolds address of a variable
  2. BAssigns value to a variable
  3. CIs used to make decisions based on its condition
  4. DIterates through a block of code multiple times until its condition is true
Show answerHide answer

Correct answer: (C) Is used to make decisions based on its condition

Explanation

An if statement checks a condition and runs its block only when the condition is true, so it is used for decision making.

From DSSSB TGT Computer Science PYQ (Technical), 12 Sep 2025, Shift 3 (5:00 PM)

This is question 70 of DSSSB TGT Computer Science PYQ (Technical), 12 Sep 2025, Shift 3 (5:00 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.