Computer Science, asked by MallV, 4 months ago

plz help me to solve this !!!!??EXERCISES
Objective
1. Multiple Choice Questions (Tick the correct answers);
1. The statement n += 4 is equivalent to:
(a) ++n
b) n=n+4
(c) n+1
(d) none
2. What will be the output of a' and 'B' in the following if int a, b; a=10; b=a+*;?
(a) 10,10
(b) 10,11
(c) 11,10
(d) 11,11
3. What will be the output of a++ if int a = -1;?
(a) 1
(b) - 1
(c) 0
(d) none
4. If int a=25, b=5,c=0; what value is stored in c when c = a%b;?
(a) 5.0
(b) 5
(c) 0
(d) none
5. What is the result of the following statement in Java: When int m=8; m*=8; System.out.
println("The output = "+m),
(a) 8
(c) 16
(d) 88
6. double c;int x,y,z; x=5;y=10;z=11; c=x*y+z/2; The value stored in c is:
(a) 55.0
(b) 55.5
c) 55
(d) none
7. int m,p;m=5;p=0; p= m - - + -- m; The output will be:
(a) 11
(b) 10
(c) 8
(d) 12
8. int a=7, p=0, q=0; p= + + a + - - a; 9 - = p; The output of q will be:
(a) 13
(b) 14
(c) 15
(d) -15
(by 64​

Answers

Answered by arpitkandari2
2

Answer:

sorry I don't know because I did not know computer science sorry

Explanation:

plz mark me in BRAINLIEST

Answered by causitsvedika
0

Answer:

1.b

2.a

3.d

4.c

5. 64 [ m = m*8

= 8*8 = 64]

6.b

7.b

8.c

Similar questions