Boolean expressions and conditionals 3 General Conditionals

Boolean expressions and conditionals 3 General Conditionals

Assessment

Flashcard

Computers

11th - 12th Grade

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

5 questions

Show all answers

1.

FLASHCARD QUESTION

Front

When two Boolean expressions are joined by &&, short circuit evaluation

Back

will cause the Java compiler to stop evaluating if the first expression is false

2.

FLASHCARD QUESTION

Front

When two Boolean expressions are joined by ||, short circuit evaluation

Back

will cause the Java compiler to stop evaluating if the first expression is true

3.

FLASHCARD QUESTION

Front

(x && y) && !(x && y) will always evaluate to

Back

false

4.

FLASHCARD QUESTION

Front

According to De Morgan's Laws, !(x && y) is equivalent to

Back

!x || !y

5.

FLASHCARD QUESTION

Front

!(x > y) is equivalent to

Back

x <= y