APCSA Vocab 2.4-2.5

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/5

flashcard set

Earn XP

Description and Tags

APCSA 2.4-2.5 Vocab

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

6 Terms

1
New cards

Dangling Else

Sometimes with nested ifs we find a type of else that could belong to either if statement. The else clause will always be a part of the closest unmatched if statement in the same block of code, regardless of indentation.

2
New cards

Nested If Statement

Consists of if, if-else, or if-else-if statements within if, if-else, or if-else-if statements.

3
New cards

AND &&

Join two Boolean expressions and the body of the condition will only be executed only if both are true. Has precedence over OR but doesn't have precedence over NOT

4
New cards

OR | |

Join two Boolean expressions and the body of the condition will be executed if one or both are true.

5
New cards

NOT !

Can be used to negate a boolean value. Has precedence over AND and OR

6
New cards

Short Circuit Evaluation

If the left operand (first expression) is sufficient to determine the result, the right operand (second expressions) is not evaluated. Used by OR and AND

Explore top flashcards