Answer:
The correct answer to this question is "if".
Explanation:
The answer is if because selection statement selects among a set of statements depending on the value of a regulating expression. In the selection statement there we use two conditional statements that can be given as
1) If statement.
2) Switch statement.
If statement:
it is used to execute a block of code. If the expression is evaluated to true it executes. In that else statement is optional.
Syntax:
if(condition)
{
//code;
}
else //(optional)
{
//code;
}
The if statement single-selection statement. because it always execute true value.So the correct answer is if.
John Coefield was the publisher
Answer:
I think this belongs in the history category as the computers % technology is a bit inactive.
Answer:
Both if-then and switch is the decision control structure that enables the program to execute a statement or block of codes
Explanation:
This decision control structure always checks for one or more condition and execute true statement “if the condition is true” otherwise it will execute false statement (if present). The “true statement” is compulsory.
In case of “if-then loop”, it executes the true block only if the Boolean expression is true. In a similar way in switch-case, the same happens and instead of else part there will be a “default” statement which is compulsory to be present and it will get executed.