We learned about the Java Operators in our previous lesson. Operators are the fundamentals of the programming language. Let’s try this quiz to see where we are in your learning path. You can use out online Java editor to run the quiz question once you answered the question
0 of 10 Questions completed
Questions:
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
0 of 10 Questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
What is the result of the expression 5 + 3 * 2
?
public class Main {
public static void main(String[] args) {
int x = 10;
x += 5;
System.out.println(x);
}
}
public class Main {
public static void main(String[] args) {
int a = 5;
int b = 2;
int result = a / b;
System.out.println(result);
}
}
This response will be reviewed and graded after submission.
public class Main {
public static void main(String[] args) {
int y = 20;
y %= 7;
System.out.println(y);
}
}
Which operator is used for exponentiation in Java?
What will be the result of the expression 8 > 5 && 2 < 4
?
public class Main {
public static void main(String[] args) {
int z = 10;
z *= 2 + 3;
System.out.println(z);
}
}
What is the difference between short-circuit and full evaluation of logical operators?
public class Main {
public static void main(String[] args) {
boolean b1 = true;
boolean b2 = false;
System.out.println(b1 && b2);
}
}