Search Header Logo

Java Quiz: Logical Operators and If Statements

Authored by Ark Osias

Computers

12th Grade

Used 37+ times

Java Quiz: Logical Operators and If Statements
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

30 sec • 1 pt

Boolean expressions produce ___.

True or False answers.

number answers.

script answers.

none of these answers.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

AND logical operator in Java is represented by ___.

!

&&

//

||

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which results in true if both conditions are true?

AND

OR

NAND

NOR

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If one of the condition in AND logic is false then ___.

the result will be true

the result will be false

the result will be error

the result will neutral.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The result is true if one condition is true.

AND

OR

NAND

NOR

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

NOT logical operator in Java is represented by ___.

!

&&

//

||

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Java, given you wrote "If (temp>30)", you can write this next condition "else if (temp>20 && <=30)" as ___.

else if (temp>20)

else if (temp>20 && ≤30)

else if (temp>20 &&)

else

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?