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 Basic MCQs | Java Multiple Choose Question with answer

Java Operator MCQ SET-1

 

Q.1 Which are the arithmetic operators ?





ANSWER= (D) All of these

 

Q.2 Which are the unary operators ?





ANSWER= (C) Both a & b

 

Q.3 Which of the following Binary operator





ANSWER= (D) All of these

 

Q.4 Unary operator take the value





ANSWER= (A) one

 

Q.5 Binary operator take the value





ANSWER= (B) Two

 

Q.6 Ternary operator take the value





ANSWER= (C) Three

 

Q.7 Which are the Shift operators ?





ANSWER= (D) All of these

 

Q.8 Which are the relational operators ?





ANSWER= (C) Both a & b

 

Q.9 Which are the bitwise operators ?





ANSWER= (C) Both a & b

 

Q.10 Which are the logical operators ?





ANSWER= (C) Both a & b

 

Q.11 Which are the ternary operators ?





ANSWER= (B) ? :

 

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





ANSWER= (A) 1100

 

Q.13 Calculate the Bitwise OR (1101) & (1100)





ANSWER= (B) 1101

 

Q.13 Calculate the Bitwise NOT (1101) & (1100)





ANSWER= (C) 0011

 

Q.15 Calculate the Bitwise XOR (1101) & (1100)





ANSWER= (C) 0001

 

Q.16 Which of the following is Relational operator





ANSWER= (D) All of these

 

Q.17 ++a is a

ANSWER= (B) Pre Increment operator

 

Q.18 a++ is a





ANSWER= (C) Post Increment operator

 

Q.19 What is output of Pre Increment operator a=6 , b=4 c=?





ANSWER= (A) 35

 

Q.20 What is output of Post Increment operator a=6 , b=4 c=?





ANSWER= (B) 24