Question 70Asked in DSSSB TGT Computer Science (Technical), 12 Sep 2025, Shift 3 (5:00 PM)What does the if statement do?
- AHolds address of a variable
- BAssigns value to a variable
- CIs used to make decisions based on its condition
- 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.