AP CSP Boolean expressions

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/6

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 1:31 PM on 9/30/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

7 Terms

1
New cards

Boolean value

A data type that can evaluate to only one of two values: true\text{true} or false\text{false}.

2
New cards

Logical operator NOT\text{NOT}

Evaluates to true\text{true} if the given condition is false\text{false}, and false\text{false} if the condition is true\text{true}.

3
New cards

Logical operator AND\text{AND}

Evaluates to true\text{true} only when both conditions evaluate to true\text{true}; otherwise, it evaluates to false\text{false}.

4
New cards

Logical operator OR\text{OR}

Evaluates to true\text{true} if at least one of the conditions evaluates to true\text{true}; otherwise, it evaluates to false\text{false}.

5
New cards

Relational operator ≠\neq

Tests whether two variables, values, or expressions are not equal to each other.

6
New cards

Expression testing if an integer variable num\text{num} is even

num MOD 2=0\text{num} \text{ MOD } 2 = 0

7
New cards

Expression testing if an integer variable num\text{num} is odd

num MOD 2=1\text{num} \text{ MOD } 2 = 1