Java Operators MCQs | Java MCQs

In this page provide you software multiple choice question which help to many exam like Semester exam, Gate Exam, Railway , ISRO etc.

Java Operator MCQ SET-1

Q.1 Which of the following are arithmetic operators?



  • +




  • /, %


  • All of these

Q.2 Which of the following are unary operators?



  • ++




  • Both A & B


  • None of these

Q.3 Which of the following are classified as Binary operators?



  • +




  • ,


  • All of these

Q.4 A Unary operator operates on how many values?



  • One


  • Two


  • Three


  • All of these

Q.5 A Binary operator operates on how many values?



  • One


  • Two


  • Three


  • All of these

Q.6 A Ternary operator operates on how many values?



  • One


  • Two


  • Three


  • All of these

Q.7 Which of the following are Shift operators?



  • ).

Q.8 Which of the following are Relational operators?



  • =, instanceof


  • Both A & B


  • All of these

Q.9 Which of the following are Bitwise operators?



  • &


  • ^


  • |


  • All of these

Q.10 Which of the following are Logical operators?



  • &&


  • ||


  • Both A & B


  • None of these

Q.11 Which symbol represents the Ternary operator?



  • &&


  • ? :


  • Both A & B


  • None of these

Q.12 Calculate the Bitwise AND for (1101) & (1100):



  • 1100


  • 1101


  • 0101


  • None of these

Q.13 Calculate the Bitwise OR for (1101) | (1100):



  • 1100


  • 1101


  • 0101


  • None of these

Q.14 Calculate the result for Bitwise operation yielding (0011) from (1101) and (1100):



  • 1100


  • 1101


  • 0011


  • None of these

Q.15 Calculate the Bitwise XOR for (1101) ^ (1100):



  • 1100


  • 1101


  • 0001


  • None of these

Q.16 Which of the following is a Relational operator?



  • ==


  • All of these

Q.17 In the expression '++a', which operator is being used?



  • Increment operator


  • Pre-Increment operator


  • Post-Increment operator


  • All of these

Q.18 In the expression 'a++', which operator is being used?



  • Increment operator


  • Pre-Increment operator


  • Post-Increment operator


  • All of these

Q.19 What is the output of the Pre-Increment operation for a=6, b=4 (assuming c = ++a * ++b)?



  • 35


  • 24


  • 15


  • None of these

Q.20 What is the output of the Post-Increment operation for a=6, b=4 (assuming c = a++ * b++)?



  • 35


  • 24


  • 15


  • None of these

Scroll to Top