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
Get a hint
Hint

Logical Operators

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 38 people
41 days ago
5.0(1)
note Note
studied byStudied by 16 people
131 days ago
5.0(1)
note Note
studied byStudied by 2 people
77 days ago
5.0(1)
note Note
studied byStudied by 8 people
126 days ago
4.0(1)
note Note
studied byStudied by 5835 people
650 days ago
4.8(43)
note Note
studied byStudied by 24 people
849 days ago
5.0(1)
note Note
studied byStudied by 3 people
716 days ago
5.0(1)
note Note
studied byStudied by 362 people
800 days ago
5.0(4)

Explore top flashcards

flashcards Flashcard (55)
studied byStudied by 22 people
448 days ago
5.0(1)
flashcards Flashcard (119)
studied byStudied by 39 people
617 days ago
5.0(2)
flashcards Flashcard (169)
studied byStudied by 34 people
117 days ago
5.0(1)
flashcards Flashcard (20)
studied byStudied by 4 people
620 days ago
5.0(1)
flashcards Flashcard (280)
studied byStudied by 1 person
222 days ago
5.0(1)
flashcards Flashcard (71)
studied byStudied by 9 people
429 days ago
5.0(1)
flashcards Flashcard (40)
studied byStudied by 40 people
141 days ago
5.0(1)
flashcards Flashcard (82)
studied byStudied by 75 people
253 days ago
5.0(2)
robot