Solved

Consider the Following Outline of a Nested If-Else Structure Which

Question 3

Multiple Choice

Consider the following outline of a nested if-else structure which has more if clauses than else clauses. Which of the statements below is True regarding this structure?
If (condition1)
If (condition2)
Statement1;
Else statement2;


A) syntactically it is invalid to have more if clauses than else clauses
B) statement2 will only execute if condition1 is false and condition2 is false
C) statement2 will only execute if condition1 is True and condition2 is false
D) statement2 will only execute if condition1 is false, it does not matter what condition2 is
E) statement2 will never execute

Correct Answer:

verifed

Verified

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents