Get Started
511

Q:

What is it called when more than one if-statement is used together?

  • 1
    if-else statement
  • 2
    nested statement
  • 3
    more if statements
  • 4
    None of the above
  • Show Answer
  • Workspace

Answer : 2. "nested statement"
Explanation :

Certainly! A nested if statement refers to an if statement that is placed inside another if statement or other control structures. It allows for more specific conditions and complex decision-making in a program. The inner if statement is only executed if the outer if statement's condition is true.


The Most Comprehensive Exam Preparation Platform

Get the Examsbook Prep App Today