Arithmetic Operation: GATE CS Previous Year Questions

Arithmetic Operation · Programming in C

6 questions · asked in 6 of 27 years (2000–2026)

MCQ 4 · NAT 21-mark 3 · 2-mark 3

2000Questions per year2026

Questions 6–6 of 6

Q6GATE 20081 markMCQ−0.33 if wrong
Which combination of the integer variables x, y and z makes the variable a get the value 4 in the following expression?
a = (x > y) ? ((x > z) ? x : z) : ((y > z) ? y : z) 

Keep practising

Topics in Programming in C

All CS topics ›