Question
Easy

Which of the following control expressions are valid for an "IF statement"?

1
Boolean
2
Integer
3
Real
4
All options are wrong
Question Details
Time to Solve: 12
Exam: HTET
Level/Paper: Level 3
Chapter:
Topic:
Correct Answer
Option A
Explanation

The correct option is (1): An IF statement, the fundamental construct for decision-making in programming, is designed to execute a block of code conditionally based on the outcome of its test expression, known as the control expression. This control expression must logically evaluate to a truth value, which is a Boolean value—either True or False. This is the purest and most universally correct data type for a conditional statement, as…Read More