OOP - Conditionals

OOP - Conditionals

Assessment

Flashcard

Computers

KG

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

10 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What keyword is used to check an additional condition if the first if is false?

Back

else

2.

FLASHCARD QUESTION

Front

How many conditions can you check in a single if statement?

Back

as many as you need

3.

FLASHCARD QUESTION

Front

In Java, which symbol is used for the "OR" logical operator?

Back

| |

4.

FLASHCARD QUESTION

Front

What will if (x > 5 && x < 10) check for?

Back

If x is between 5 and 10

5.

FLASHCARD QUESTION

Front

what is the output? Options: error, Greater than 5, 5 or less, nothing

Media Image

Back

Greater than 5

6.

FLASHCARD QUESTION

Front

Output?
Options: A, B, C, error

Media Image

Back

B

7.

FLASHCARD QUESTION

Front

output? Options: Relax, Work, error, Relax AND Work

Media Image

Back

Relax

Create a free account and access millions of resources

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?