Programming - Operators
You Are Here :: Home > JAVA > Operators - General Questions
1.
______________ is the most common operator almost used with all programming languages.
A.
Assignment operator
B.
new operator
C.
unary operator
D.
none
Answer: Option A
Explanation:
Assignment operator is the most common operator almost used with all programming languages.
2.
___________ symbol in Java which is used to assign a value to a variable lying to the left side of the assignment operator.
A.
"+"
B.
"="
C.
"=="
D.
both b and c
Answer: Option B
Explanation:
"=" symbol in Java which is used to assign a value to a variable lying to the left side of the assignment operator. But, If the value already exists in that variable then it will be overwritten by the assignment operator (=).
3.
_____________ operator can also be used to assign the references to the objects.
A.
"=="
B.
"+"
C.
unary operator
D.
"="
Answer: Option D
Explanation:
"=" operator can also be used to assign the references to the objects.
4.
the assignment operator is evaluated from ___________.
A.
right to left
B.
left to right
C.
right to right
D.
left to left
Answer: Option A
Explanation:
The assignment operator is evaluated from right to left.
5.
________________ are used to perform some mathematical operations like addition, subtraction, multiplication, division, and modulo
A.
Relational operators
B.
Arithmetic Operators
C.
both a and b
D.
none
Answer: Option B
Explanation:
Arithmetic Operators are used to perform some mathematical operations like addition, subtraction, multiplication, division, and modulo
6.
______________________________ are generally performed on an expression or operands.
A.
Arithmetic Operators
B.
Bitwise operators
C.
Assignment operator
D.
all the above
Answer: Option A
Explanation:
Arithmetic Operators are generally performed on an expression or operands.
next »