Search Header Logo

Halloween Java

Authored by Angel Ligon

Computers

12th Grade

Used 1+ times

Halloween Java
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primitive type that can store true and false values?

int

boolean

double

char

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a relational/comparison operator?

+

*

/

==

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the value of the boolean expression 'grade > 89' if grade is 85?

true

false

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the value of the boolean expression 'key == "q"' if key is 'Q'?

true

false

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used to compare reference types?

==

!=

>

<

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the value of the boolean expression 'rect1 == rect2' if rect1 and rect2 refer to different rectangle objects with the same information?

true

false

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What method can be used to compare string literals?

equals()

==

!=

compareTo()

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?