3.5 Boolean Expressions

3.5 Boolean Expressions

Assessment

Flashcard

Computers

10th - 12th Grade

Hard

Created by

Quizizz Content

FREE Resource

Student preview

quiz-placeholder

6 questions

Show all answers

1.

FLASHCARD QUESTION

Front

Amy wants to send an invitation to join the soccer team to all of the senior girls who are not already on the tennis team. Which of the following Boolean expressions will evaluate true for only those students that Amy should send the invitation to? (female AND (grade = 12)) AND (NOT tennis)

Back

(female AND (grade = 12)) AND (NOT tennis)

2.

FLASHCARD QUESTION

Front

A AND (B OR NOT C) - If the value of A is true and the value of the expression above is false, then what are the values of B and C?

Back

B is false and C is true

3.

FLASHCARD QUESTION

Front

A child’s mother will not allow him to have dessert if his chores were not completed. He also cannot have dessert if he got in trouble at school and got detention. But he is always allowed to have dessert on his birthday. Which expression will correctly evaluate to true if the child is allowed to have dessert? (NOT detention AND chores_complete) OR birthday, (chores_complete AND birthday) OR (NOT detention), (NOT detention AND chores_complete) OR birthday, NOT (detention AND chores_complete) OR birthday

Back

(NOT detention AND chores_complete) OR birthday

4.

FLASHCARD QUESTION

Front

Given that B is false, then which of these describes the possible values for the output? The output will be true if A and C are both true. The output will be true if A is false and C is true. The output will be true if A and C are both false. The output cannot be true.

Back

The output cannot be true.

5.

FLASHCARD QUESTION

Front

Which of the following statements is equivalent to the algorithm in the flowchart? y ← NOT (x < 5 AND z > 10), y ← NOT (x < 5 OR z > 10), y ← x < 5 AND (NOT z > 10), y ← x < 5 AND z > 10

Back

y ← NOT (x < 5 AND z > 10)

6.

FLASHCARD QUESTION

Front

Which of these expressions is equivalent to expression C in the table? NOT (A OR B), (NOT A) AND B, A AND B, A OR (NOT B)

Back

A OR (NOT B)