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
Similar Questions from HTET Exam - Level 3 - Year 2016
Question 1
Easy
Source :
HTET 2016
........... is an example of full duplex system.
Question 2
Easy
Source :
HTET 2016
The explicit conversion of an operand to a specific type is called............
Question 3
Easy
Source :
HTET 2016
The members of a structure variable can be referenced using ........... operator.
Question 4
Easy
Source :
HTET 2016
_______ in values processing of all elements in an array one by one.