Professional Documents
Culture Documents
1 2 3 4 5
Page 1 of 2
ANNEXURE-1
Standard Template for Academic Tasks (22231)
A. A5 B. B5
C. Compilation Error D. Runtime Error
A. BC B. D C. DE D. Compilation Error
5 What will be the output of the following Code Snippet? CO 2 L4: Analyze 2
int x = 3, y = 1;
int result = x-- > ++y ? --x != y++ ? x-- : y++ : x++;
System.out.println(x+ "" +y);
Page 2 of 2