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?

  • A) +
  • B) -
  • C) /, %
  • D) All of these

Q.2 Which of the following are unary operators?

  • A) ++
  • B) --
  • C) Both A & B
  • D) None of these

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

  • A) +
  • B) -
  • C) < , >
  • D) All of these

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

  • A) One
  • B) Two
  • C) Three
  • D) All of these

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

  • A) One
  • B) Two
  • C) Three
  • D) All of these

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

  • A) One
  • B) Two
  • C) Three
  • D) All of these

”Q.7

  • A) ”>>>”
  • B) ”>>”
  • D) All of these

”Q.8

  • C) ”Both
  • D) ”All

Q.9 Which of the following are Bitwise operators?

  • A) &
  • B) ^
  • C) |
  • D) All of these

Q.10 Which of the following are Logical operators?

  • A) &&
  • B) ||
  • C) Both A & B
  • D) None of these

Q.11 Which symbol represents the Ternary operator?

  • A) &&
  • B) ? :
  • C) Both A & B
  • D) None of these

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

  • A) 1100
  • B) 1101
  • C) 0101
  • D) None of these

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

  • A) 1100
  • B) 1101
  • C) 0101
  • D) None of these

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

  • A) 1100
  • B) 1101
  • C) 0011
  • D) None of these

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

  • A) 1100
  • B) 1101
  • C) 0001
  • D) None of these

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

  • B) >
  • C) ==
  • D) All of these

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

  • A) Increment operator
  • B) Pre-Increment operator
  • C) Post-Increment operator
  • D) All of these

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

  • A) Increment operator
  • B) Pre-Increment operator
  • C) Post-Increment operator
  • D) All of these

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

  • A) 35
  • B) 24
  • C) 15
  • D) None of these

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

  • A) 35
  • B) 24
  • C) 15
  • D) None of these

Scroll to Top