int x=7; cout << (x%2==0 ? "Even" : "Odd"); prints
Q.int x=7; cout << (x%2==0 ? "Even" : "Odd"); prints
A) 0
B) 1
C) Odd
D) Even
Correct Answer:
Option C
Detailed Explanation:
C) Odd is correct. Apply the relevant C++ rules: integer versus floating-point division, remainder, operator precedence, loop execution, ternary selection, data types, and the syntax of main().