Search Header Logo

Quiz 07 - If Statements

Authored by Casey Devet

Computers

11th Grade

Used 14+ times

Quiz 07 - 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

5 mins • 1 pt

Which of the following is a valid boolean value in Java?

True

FALSE

true

false

2.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Which Java type can be used to store a true or false value?

boolean

bool

Boolean

Bool

3.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Which comparison will NOT evaluate to true?

5 < 18

5 != 18

5 >= 18

5 <= 18

4.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Which comparison operator will return true only if the values on its left and right do NOT have the same value.

==

!

!=

<=

5.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Which operator will evaluate to true if either value to the left or right is true?

&&

||

==

!

6.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

In the expression below, which operation will be evaluated first?

7 * 5 + (2 - 35 % 5)

*

+

-

%

7.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Which keyword is used to create a set of instructions to be executed if the "if" condition above it is false?

otherwise

if

else

elif

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?