AP Computer Science Unit 3: Boolean Expressions

studied byStudied by 351 people
5.0(5)
learn
LearnA personalized and smart learning plan
exam
Practice TestTake a test on your terms and definitions
spaced repetition
Spaced RepetitionScientifically backed study method
heart puzzle
Matching GameHow quick can you match all your cards?
flashcards
FlashcardsStudy terms and definitions

1 / 22

23 Terms

1

Boolean

an expression or statement that returns True or False

New cards
2

Selection statement

statements used to determine whether code should be run or skipped

New cards
3

DeMorgans law

Set of rules for converting an expression that contains NOTs into one without any NOTs

New cards
4

If statement

a conditional statement that runs when the condition is true; it helps control the flow of the program

New cards
5

What is ‘==’?

equal to

New cards
6

What is ‘!=’?

not equal to

New cards
7

What is ‘<=’?

less than or equal to

New cards
8

What is ‘<‘?

less than

New cards
9

What is ‘>’?

greater than

New cards
10

What is ‘>=’?

greater than or equal to

New cards
11

Yoda Notation

When the variable is put on the right side of a comparison

New cards
12

Nesting

When a selection is placed inside a selection

New cards
13

Scope

refers to the area where a variable exists and can be used

New cards
14

Conjunction Operators

operators that combine two boolean values and produce a new result

New cards
15

The AND conjunction returns true when?

The AND project produces a true value when both of its operands are True

New cards
16

The OR conjunction returns true when?

The OR conjunction is true when one value in it’s operands is true

New cards
17

What is ‘&&’?

logical AND operator

New cards
18

What is ‘| |’

logical OR operator

New cards
19

What is ‘!”

logical NOT

New cards
20

Comparison Operator

operators that are used to compare two values

New cards
21

What does equals(Object o) do?

returns True if the called object is equal to the received object

New cards
22

What does compareTo(Object o) do?

Returns 0 if the called and received object are the same

Returns a positive number when the received object is smaller than the called object

Returns a negative number when the received object is greater than the called object

New cards
23

short circuiting

The process of not evaluating the right operand in a Boolean expression/statement

New cards

Explore top notes

note Note
studied byStudied by 8 people
853 days ago
5.0(1)
note Note
studied byStudied by 84 people
655 days ago
5.0(2)
note Note
studied byStudied by 86 people
409 days ago
5.0(1)
note Note
studied byStudied by 9 people
814 days ago
5.0(1)
note Note
studied byStudied by 27 people
740 days ago
5.0(1)
note Note
studied byStudied by 37 people
648 days ago
5.0(1)
note Note
studied byStudied by 66 people
762 days ago
4.5(4)
note Note
studied byStudied by 1120 people
139 days ago
4.9(9)

Explore top flashcards

flashcards Flashcard (100)
studied byStudied by 2 people
313 days ago
5.0(1)
flashcards Flashcard (339)
studied byStudied by 15 people
400 days ago
5.0(1)
flashcards Flashcard (52)
studied byStudied by 6 people
501 days ago
5.0(1)
flashcards Flashcard (30)
studied byStudied by 54 people
782 days ago
5.0(1)
flashcards Flashcard (51)
studied byStudied by 28 people
377 days ago
5.0(1)
flashcards Flashcard (104)
studied byStudied by 41 people
367 days ago
5.0(1)
flashcards Flashcard (45)
studied byStudied by 9 people
700 days ago
5.0(1)
flashcards Flashcard (119)
studied byStudied by 19 people
38 minutes ago
5.0(1)
robot