JOIN ADRE 2.0 Telegram Group

Operators - Objective Questions and Answers in Core Java

Questions
1 Evaluate the value of the expression?

6 - 2 + 10 % 4 + 7

A 10
B 12
C 13
D 14

Answer: Option [C]
2 Which of the following assignment operator does not exist in Java?
A >>
B %=
C >>>
D <<

Answer: Option [D]

The >>> operator does not exist in Java. The other operators are valid.

Examples: x >>=y result is x=x+y

x%=y result is x=x%y

x>>>=y result is x=x>>>y

Advertisement
ADRE 2.0 Mock Test - 5 Start Test
ADRE 2.0 Mock Test - 5 Start Test

DOWNLOAD CURRENT AFFAIRS PDF FROM APP

3 What is/are highest order precedence operator(s) in Java?
A ( )
B { }
C both [A] & [B]
D None of these

Answer: Option [C]

Parentheses(), Array subscript{} and Member selection- have the same precedence.

4 The order of precedence from highest to lowest is :
A &&, /, |,{}
B %, <=, &&, =
C <, !, ==, ++
D +, -, [], !=

Answer: Option [B]
5 The && and || operators
A Combine two numeric values
B Compare two boolean values
C Combine two boolean values
D Compare two boolean values

Answer: Option [C]

Logical AND(&&) and Logical OR(||) combine two boolean values.

ADRE 2.0 MOCK TEST

Take Mock Tests

Government Schemes Mock Test Start Test!
Political Science Mock Test – 42 Start Test
History Test – 190 Start Test
Quantitative Aptitude Test Start Test!
Trigonometry - Mock Test Start Test!
Data Interpretation - Mock Test Start Test!
General Awareness - Mock Test Start Test!
Reasoning Ability - Mock Test Start Test!
Englist(Antonyms) Mock Test 1 Start Test!
Quantitative Aptitude (Percentage) Mock Test Start Test!
Economy Mock Test 1 Unlock Test!
Books & Authors - Test 2 Unlock Test!

Chapters

Advertisement