2. What will be the output of a & b in the following, if int a, b; a=10; b=a+-
1. The statement n += 4 is equivalent to:
(b) n=n+4
(d) none
(C) n+1
(a) ++n
(c) 11,10
(C) O
(c) 0
(c) 16
(a) 10,10
(d) 11,11
(b) 10,11
3. What will be the output of a++ when int a =
-1;
(a) 1
(d) none
(b) -1
4. If int a = 25, b = 5, C = 0; what value will be stored in c, when c = a%b?
(a) 5.0
(b) 5
(d) none
5. What will be the value of m when the given statement is executed?
int m=8; m*=8;
(a) 8
(b) 64
(d) 88
6. double c; int x, y, z; x = 5; y = 10; z = 11;
c = x*y+z/2;
What will be the value stored in c?
(a) 55.0
(b) 55.5
(c) 55
(d) none
7. int m, p; m = 5; p = 0; p = m -- + -- m; The value of p will be:
(a) 11
(b) 10
(c) 8
(d) 12
8. int a=7, p=0, q=0; p= + + a + -- a; q - = p; The value of q will be:
(a) 13
(b) 14
(c) 15
(d) -15
Answers
Answered by
0
SUBCRIBE THE CHANEL AND ANSWER पाए
Similar questions