AP CSA Unit 3: Boolean Expressions & Operators

studied byStudied by 1 person
0.0(0)
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 / 15

16 Terms

1

Logical Operators

Can be used to connect boolean expressions to make more complex expression. NOT ! AND && OR ||

New cards
2

Short Circuit Evaluation

When the result of a logical expression using && or || can be determined by evaluating only the first Boolean operand, the second is not evaluated.

New cards
3

Nested if Statements

The process of placing if statements within if statements.

New cards
4

Truth Tables

A truth table is a table used in logic for comparing Boolean expressions.

New cards
5

Aliases

Two object references are considered aliases when they both reference the same object.

New cards
6

Reference equality

Equality operator (==) compares the references (addresses in memory) of 2 objects

New cards
7

Logical equality

Compares the data of the objects instead of the value of the references. Uses the .equals() method.

New cards
8

Relational Operators

== , !=. <. > , <=, >= These allow for the comparison or primitive type values. The result of these expressions can be stored as a Boolean value.

New cards
9

If Statement

An if statement lets you ask a question to the program and only run code if the answer is true.

New cards
10

Control Structure

A control structure lets us change the flow of the code.

New cards
11

Conditional Statement

A statement that evaluates to true or false.

New cards
12

If Else Statement

Control structure that lets us run either one section of code or another depending on a test.

New cards
13

Control Structure

A control structure lets us change the flow of the code.

New cards
14

else statement

Executes code only if all conditions are false

New cards
15

Condition

A condition is code that you put inside an if statement or while-loop.

New cards
16

else if Statement

A statement that executes if the previous statements are false and this statement is true

New cards

Explore top notes

note Note
studied byStudied by 15 people
739 days ago
5.0(1)
note Note
studied byStudied by 12 people
828 days ago
5.0(2)
note Note
studied byStudied by 17 people
855 days ago
5.0(3)
note Note
studied byStudied by 22 people
846 days ago
5.0(1)
note Note
studied byStudied by 18 people
788 days ago
5.0(1)
note Note
studied byStudied by 15 people
857 days ago
5.0(1)
note Note
studied byStudied by 23 people
145 days ago
5.0(84)
note Note
studied byStudied by 1 person
55 minutes ago
5.0(1)

Explore top flashcards

flashcards Flashcard (29)
studied byStudied by 14 people
786 days ago
5.0(1)
flashcards Flashcard (22)
studied byStudied by 10 people
675 days ago
5.0(1)
flashcards Flashcard (42)
studied byStudied by 13 people
640 days ago
5.0(1)
flashcards Flashcard (49)
studied byStudied by 633 people
313 days ago
5.0(3)
flashcards Flashcard (56)
studied byStudied by 1 person
752 days ago
5.0(1)
flashcards Flashcard (81)
studied byStudied by 18 people
492 days ago
5.0(1)
flashcards Flashcard (32)
studied byStudied by 9 people
512 days ago
5.0(1)
flashcards Flashcard (40)
studied byStudied by 26 people
290 days ago
5.0(1)
robot