Java From Beginner To Advanced
0% completed
Previous
Next
Course
Discussions
Quiz
Question 1
What is the result of the following Java expression?
A
90
B
60
C
70
D
30
Reset Quiz
Check Answer
Question 2
What will be the output of the following Java code?
int a = 5; int b = ++a; System.out.println(b);
A
6
B
5
C
7
D
Compilation Error
Reset Quiz
Check Answer
Question 3
Which operator has higher precedence in Java?
A
+ (Addition)
B
&& (Logical AND)
C
== (Equality)
D
* (Multiplication)
Reset Quiz
Check Answer
Question 4
What is the value of x after the following code executes?
int x = 10; x += 5;
A
10
B
15
C
5
D
20
Reset Quiz
Check Answer
Question 5
Which of the following is a bitwise operator in Java?
A
|
B
&&
C
>
D
++
Reset Quiz
Check Answer
.....
.....
.....
Like the course? Get enrolled and start learning!
Enroll
Previous
Next