Computer Science, asked by sanuc1142, 2 months ago

8. you have to make decision based on
multiple choices, which of the
following is best suited? *​

Answers

Answered by PrakritiAwasthi
3

All of the above.............

Answered by priyarksynergy
1

QUESTION:
You have to make decision based on multiple choices, which of the following is best suited?

A. if

B. if-else

C. if-else-if

D. All of the above

Answer:

The correct answer to the above question is option C, if-else-if.

Explanation:

  • These types of statements are known as conditional statements.
  • These statements are followed by an optional else if...else statement.
  • It helps in testing various conditions using single if...else if statement.
  • These statements are used for handling decisions.

They are of many types:

  1. If statement
  2. If-Else statement
  3. Nested If-else statement
  4. If-Else If ladder
  5. Switch statement
Similar questions