Search Header Logo

Chapter 02 - Operators

Authored by Luis Montano

Computers

Professional Development

Used 3+ times

Chapter 02 - Operators
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

28 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

true-true-false

true-false-true

true-false-false

true-true-true

false-true-true

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operators take three operands or values? (Choose all that apply.)

=

&&

*=

? :

&

3.

MULTIPLE SELECT QUESTION

1 min • 1 pt

Media Image

int

long

boolean

double

short

4.

MULTIPLE SELECT QUESTION

1 min • 1 pt

Media Image

ticketsSold is 8

ticketsSold is 6

ticketsTaken is 6

ticketsTaken is 7

ticketsTaken is 4

5.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Which of the following Java operators can be used with boolean variables? (Choose all that apply.)

==

+

--

!

Cast with (boolean)

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

true-false-false

false-true-false

true-true-true

true-true-false

None of the above

7.

MULTIPLE SELECT QUESTION

1 min • 1 pt

Media Image

No change; it compiles as is

Cast ear on line 4 to int

Change the data type of ear on line 3 to short

Cast 2 * ear on line 4 to int

Change the data type of hearing on line 4 to long

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?