Which of the following statements about nested if…else statements is true?

a. An if…else statement may not be nested in another nested if…else.
b. Each if…else statement must contain only a simple condition.
c. In an if body, an inner if…else executes only if the outer if statement's condition is true.
d. The statement(s) in an inner if always execute(s) if its condition is true.

c. In an if body, an inner if…else executes only if the outer if statement's condition is true.

Computer Science & Information Technology

You might also like to view...

When you create a symbol for a document, you assign a name to it, and you specify certain properties based on the behavior of the symbol.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

A distributed computing system usually includes ____.

A. a central computer server B. decentralized PCs C. a network to link systems together D. all of these

Computer Science & Information Technology