Relational Operators

Answer all questions carefully. After submission, you will see a detailed result and answer review.

Question 1
If x is 7 and y is 7, what is the result of the expression x >= y using the greater-than-or-equal-to operator in Java?
Question 2
If a is 6 and b is 6, what is the result of the expression a <= b using the less-than-or-equal-to operator in Java?
Question 3
Which relational operator is used to check if two values are equal in Java?
Question 4
What is the value of the expression p > q if p is 10 and q is 15 in Java?
Question 5
Which relational operator is used to check if one value is less than another in Java?
Question 6
What is the value of the expression m <= n if m is 7 and n is 5 in Java?
Question 7
If x is 12 and y is 18, what is the result of the expression x != y using the inequality operator in Java?
Question 8
What is the value of the expression x < y if x is 9 and y is 4 in Java?
Question 9
If p is 10 and q is 10, what is the result of the expression p == q using the equality operator in Java?
Question 10
If m is 8 and n is 5, what is the result of the expression m != n using the inequality operator in Java?