2. Which of the following is a selection statement?
a. IF-THEN statement
b. IF-THEN..ELSE statement
c. Select case statement
d. All of them
don't spam.
it's urgent
Answers
Answered by
1
Explanation:
answer - c , select case statement
Answered by
0
All of the given statements are selection statements.
- A selection statement, allows a program to choose among two or more viable actions based on predetermined criteria. across a range of computer platforms.
- The statements can be explained as -
If Statement
- This is a fundamental selection expression that enables a computer programme to run a piece of code.
- The code is run if a specific condition is met or skipped if the condition is not met.
If Then Else Statement
- With the help of this extension to the if statement, a program can run one block of code if a circumstance is true and a different block of code if it is untrue.
Select Case Statement
- A variable can be checked for equality against a collection of values using this expression.
- Herein, each number is referred to as a case, and each pick case checks the variable is turned on.
#SPJ3
Similar questions