10 questions
What would the new value of A be?
A=1;
a++;
1
2
3
4
What would the new value of A be?
A=1;
A;
0
1
2
1
What's the value of below?
int i=5;
System.out.println(i);
System.out.println(++i);
6
7
67
7
8
5
6
What does the following code output?
int x = 1;
System.out.println(x++);
1
2
compilation error
runtime error
Which statement(s) are equivalent to i = i + 1?
i += 1
i++
i = 1
i
What symbol represents the and operator in Java?
AND
and
&
&&
What symbol represents the or operator in Java?
OR
or


If a=2, b=5, c=3
Find result for : 8 * (a + b + c) – a % c
80
81
77
78
int a = 2, b = 2, c = 0;
double d = 30.1;
Find answer for = (a > b) &&(( c <d)  (c!=a))
35.9
80
true
false