Search Header Logo

JAVA-OPERATORS

Authored by RAVINDER B

Computers

Professional Development

Used 3+ times

JAVA-OPERATORS
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

int a = 10, b = 5, c = 1;

System.out.println(a < b ? a : b > c ? b : c);

10

5

1

Compilation error

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

int a = 3;

System.out.println(a << 2 + 1);

24

48

12

8

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

boolean x = true, y = false;

System.out.println(x & y || x);

true

false

0

ERROR

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

boolean a = false;

boolean b = (a = true) || (5 < 4);

System.out.println(a + " " + b);

true true

true false

false false

false true

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

int a = 5, b = 10, c = 15;

System.out.println(a < b && b < c || c < a);

true

false

Compilation error

NONE

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

int x = 5;

System.out.println(x++ + ++x * x++);

47

49

50

53

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

System.out.println(10 > 9 == 9 > 10);

true

false

Compilation error

Runtime error

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?