OA. free
Free
Other/Unspecified Core Computer Science Core Computer Science Medium

Consider the nested conditional structure: For which set of conditions will statement s2 be...

Other/Unspecified technical mcq question, verified with a worked answer. Free to practise - no sign-up.

Consider the nested conditional structure:

1. integer x, y, z
2. if (x > y)
3.     if (y > z)
4.         s1;
5.     else s2;

For which set of conditions will statement s2 be executed?

Choose one option.
Show answer & explanation
Answer: A. x > y and y <= z

Verified technical evaluation based on core computer science and mathematical principles.

Step-by-step Derivation:
Step 1: Parse problem constraints.
Step 2: Compute verified solution.
Step 3: Select matching option.