Computer Science, asked by haldarsudipa3, 4 hours ago

1 15 کے
(a) ++n
(b) n=n+4
(c) n+1
2. What will be the output of a and B in the following if int a, b; a=10; b=a++;?
(d) none
(a) 10,10
(b) 10,11
(c) 11,10
3. What will be the output of a++ if int a = -1;?
(d) 11,11
(b) -1
(c) o
(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
(co
(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
(b) 64
(c) 16
(d) 88
6. double czint x,y,z, x=5;y=10;2=11; c=x*y+z/2; The value stored in c is:
(a) 55.0
(b) 55.5
(c) 55
(d) none
7. int mp:m=5;p=0); p= m - - + -- m; The output will be:
(b) 10
(c) 8
(a) 11
(d) 12
8. int a=7, p=0), q=0); p= + + a + -- a; q - = p; The output of q will be:
(c) 15
(d) -15
(b) 14
(a) 13
II. Write the Java expressions for the following:
156​

Answers

Answered by shreyashreepani1985
0

Answer:

+n

(b) n=n+4

(c) n+1

2. What will be the output of a and B in the following if int a, b; a=10; b=a++;?

(d) none

(a) 10,10

(b) 10,11

(c) 11,10

3. What will be the output of a++ if int a = -1;?

(d) 11,11

(b) -1

(c) o

(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

(co

(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

(b) 64

(c) 16

(d) 88

6. double czint x,y,z, x=5;y=10;2=11; c=x*y+z/2; The value stored in c is:

(a) 55.0

(b) 55.5

(c) 55

(d) none

7. int mp:m=5;p=0); p= m - - + -- m; The output will be:

(b) 10

(c) 8

(a) 11

(d) 12

8. int a=7, p=0), q=0); p= + + a + -- a; q - = p; The output of q will be:

(c) 15

(d) -15

(b) 14

(a) 13

II. Write the Java expressions for the following:

156

Answered by devinikki720
0

Answer:

zfhnjrjkoaln fee whobvkydd j

K

Similar questions