Home

Tutoring

Subjects

Live Classes

Study Coach

Essay Review

On-Demand Courses

Colleges

Games

Opening subject page...

Loading your content

  1. My Subjects
  2. AP Computer Science Principles
  3. Flashcards

AP Computer Science Principles Flashcards: Boolean Expressions

Study Boolean Expressions in AP Computer Science Principles with focused flashcards that help you recognize the idea, recall the key rule, and apply it in practice-style prompts.

← Back to flashcard decks

What this deck covers

This deck focuses on Boolean Expressions, giving you a quick way to review the definitions, rules, and examples that matter most for AP Computer Science Principles.

How to use these flashcards

Work through these flashcards in short sessions. Try to answer each prompt before flipping the card, then revisit any cards you miss until the explanation feels automatic.

AP Computer Science Principles Flashcards: Boolean Expressions

1

/ 30

0 reviewed

0% Complete

0 reviewing
QUESTION

Identify the result: false AND (true OR false)false \text{ AND } (true \text{ OR } false)false AND (true OR false)

Tap or drag to reveal answer

ANSWER

false. Parentheses evaluate first: (true OR false)=true(true \text{ OR } false) = true(true OR false)=true, then false AND true=falsefalse \text{ AND } true = falsefalse AND true=false.

Swipe Right = I Know It! 🎉

Swipe Left = Still Learning

All flashcards

Flashcard 1: Identify the result: false AND (true OR false)false \text{ AND } (true \text{ OR } false)false AND (true OR false)

Answer: false. Parentheses evaluate first: (true OR false)=true(true \text{ OR } false) = true(true OR false)=true, then false AND true=falsefalse \text{ AND } true = falsefalse AND true=false.

Flashcard 2: What is the result of the Boolean expression: true AND falsetrue \text{ AND } falsetrue AND false?

Answer: false. AND requires both operands to be true.

Flashcard 3: What is the result of the Boolean expression: true OR falsetrue \text{ OR } falsetrue OR false?

Answer: true. OR returns true if at least one operand is true.

Flashcard 4: What is the result of the Boolean expression: false OR falsefalse \text{ OR } falsefalse OR false?

Answer: false. OR returns false only when both operands are false.

Flashcard 5: What is the result of the Boolean expression: NOT true\text{NOT } trueNOT true?

Answer: false. NOT reverses the Boolean value.

Flashcard 6: What is the result of the Boolean expression: NOT false\text{NOT } falseNOT false?

Answer: true. NOT reverses the Boolean value.

Flashcard 7: What is the precedence order of Boolean operators NOT, AND, OR?

Answer: NOT, AND, OR. NOT has highest precedence, then AND, then OR.

Flashcard 8: What is the result of the expression: true AND false OR truetrue \text{ AND } false \text{ OR } truetrue AND false OR true?

Answer: true. AND evaluates first: (true AND false) OR true=false OR true=true(true \text{ AND } false) \text{ OR } true = false \text{ OR } true = true(true AND false) OR true=false OR true=true.

Flashcard 9: What is the result of the expression: NOT (true OR false)\text{NOT } (true \text{ OR } false)NOT (true OR false)?

Answer: false. Parentheses force OR first, then NOT: NOT true=false\text{NOT } true = falseNOT true=false.

Flashcard 10: What does the Boolean expression x AND yx \text{ AND } yx AND y evaluate if x=falsex = falsex=false?

Answer: false. AND returns false when either operand is false.

Flashcard 11: What does the Boolean expression x OR yx \text{ OR } yx OR y evaluate if x=truex = truex=true?

Answer: true. OR returns true when either operand is true.

Flashcard 12: Identify the result: NOT (false AND true)\text{NOT } (false \text{ AND } true)NOT (false AND true)

Answer: true. Parentheses evaluate first: (false AND true)=false(false \text{ AND } true) = false(false AND true)=false, then NOT false=true\text{NOT } false = trueNOT false=true.

Flashcard 13: State De Morgan's Law for NOT (A AND B).

Answer: NOT A OR NOT B. De Morgan's Law distributes NOT over AND.

Flashcard 14: State De Morgan's Law for NOT (A OR B).

Answer: NOT A AND NOT B. De Morgan's Law distributes NOT over OR.

Flashcard 15: What is the result of false OR (NOT false)false \text{ OR } (\text{NOT } false)false OR (NOT false)?

Answer: true. NOT false=true\text{NOT } false = trueNOT false=true, then false OR true=truefalse \text{ OR } true = truefalse OR true=true.

Flashcard 16: Which Boolean operator is commutative: AND, OR, NOT?

Answer: AND, OR. Both AND and OR can switch operand order without changing result.

Flashcard 17: Which Boolean operator is associative: AND, OR, NOT?

Answer: AND, OR. Both AND and OR can group operands differently without changing result.

Flashcard 18: What is the result of the expression: true OR (false AND true)true \text{ OR } (false \text{ AND } true)true OR (false AND true)?

Answer: true. Parentheses evaluate first: (false AND true)=false(false \text{ AND } true) = false(false AND true)=false, then true OR false=truetrue \text{ OR } false = truetrue OR false=true.

Flashcard 19: Which Boolean operation is performed first: AND or OR?

Answer: AND. AND has higher precedence than OR in Boolean operations.

Flashcard 20: What is the result of the expression: (true AND false) OR false(true \text{ AND } false) \text{ OR } false(true AND false) OR false?

Answer: false. Parentheses evaluate first: (true AND false)=false(true \text{ AND } false) = false(true AND false)=false, then false OR false=falsefalse \text{ OR } false = falsefalse OR false=false.

Flashcard 21: What is the result of the expression: true AND (NOT false)true \text{ AND } (\text{NOT } false)true AND (NOT false)?

Answer: true. NOT false=true\text{NOT } false = trueNOT false=true, then true AND true=truetrue \text{ AND } true = truetrue AND true=true.

Flashcard 22: What is the identity element for the AND operation?

Answer: true. AND with true leaves the other operand unchanged.

Flashcard 23: What is the identity element for the OR operation?

Answer: false. OR with false leaves the other operand unchanged.

Flashcard 24: What is the result of false AND (NOT true)false \text{ AND } (\text{NOT } true)false AND (NOT true)?

Answer: false. NOT true=false\text{NOT } true = falseNOT true=false, then false AND false=falsefalse \text{ AND } false = falsefalse AND false=false.

Flashcard 25: What is the result of the expression: NOT (false OR false)\text{NOT } (false \text{ OR } false)NOT (false OR false)?

Answer: true. Parentheses evaluate first: (false OR false)=false(false \text{ OR } false) = false(false OR false)=false, then NOT false=true\text{NOT } false = trueNOT false=true.

Flashcard 26: What is the result of true OR (NOT true)true \text{ OR } (\text{NOT } true)true OR (NOT true)?

Answer: true. NOT true=false\text{NOT } true = falseNOT true=false, then true OR false=truetrue \text{ OR } false = truetrue OR false=true.

Flashcard 27: What does the expression x AND xx \text{ AND } xx AND x simplify to?

Answer: x. Idempotent law: a variable AND with itself equals itself.

Flashcard 28: What is the result of the expression: NOT (true AND false)\text{NOT } (true \text{ AND } false)NOT (true AND false)?

Answer: true. Parentheses evaluate first: (true AND false)=false(true \text{ AND } false) = false(true AND false)=false, then NOT false=true\text{NOT } false = trueNOT false=true.

Flashcard 29: What does the expression x AND NOT xx \text{ AND } \text{NOT } xx AND NOT x simplify to?

Answer: false. Complement law: a variable AND its negation always equals false.

Flashcard 30: What does the expression x OR NOT xx \text{ OR } \text{NOT } xx OR NOT x simplify to?

Answer: true. Complement law: a variable OR its negation always equals true.