ISRO Computer Science (CSE) 2015 - Question 68

All ISRO Computer Science (CSE) papers | ISRO Computer Science (CSE) 2015

Consider the following program fragment: if (a > b) if (b > c) s1; else s2; s2 will be executed if

  • A. a <= b
  • B. b > c
  • C. b >= c and a <= b
  • D. a > b and b <= c

Answer: D. a > b and b <= c

Explanation: Else belongs to inner if.

| | All questions of ISRO Computer Science (CSE) 2015