AP Computer Science Unit 3 Vocab

studied byStudied by 2 people
0.0(0)
get a hint
hint

Block of statement

1 / 11

12 Terms

1

Block of statement

One or more statements enclosed in an open curly brace; ‘{‘ and a closing curly brace ‘}’.

New cards
2

Boolean expression

A mathematical or logical expression that is either true or false

New cards
3

complex conditional

A boolean expression with two or more conditions joined by a logical and “&&” or a logical or ‘||’

New cards
4

Conditional

used to execute code only if a boolean expression is true

New cards
5

DeMorgan’s Laws

rules about how to distribute a negation on a complex conditional

New cards
6

logical and (&&)

used to only execute the following statement or block of statements if both conditions are true

New cards
7

logical or (||)

used to execute the following statement or block of statements if one of the conditions are true

New cards
8

negation (!)

turns a true statement false and a false statement true

New cards
9

short circuit evaluation

the type of evaluation used for logical and ‘&&’ and logical or ‘ || ‘ expressions. If the first condition is false in a complex conditional with a logical and the second condition won’t be evaluated. If the first condition is true is a complex conditional with a logical or the second condition won’t be evaluated

New cards
10

if (Boolean expression)

used to start a conditional statement. This is followed by a statement or a block of statements that will be executed if the boolean expression is true

New cards
11

else

used to execute a statement or block of statements if the boolean expression on the if part owas false

New cards
12

else if (Boolean expression)

used to have 3 or more possible outcomes such as if x is equal, x is greater than, or x is less than some value. it will only execute if the condition in the ‘if’ was false and the condition in the else if is true

New cards

Explore top notes

note Note
studied byStudied by 31 people
Updated ... ago
4.0 Stars(2)
note Note
studied byStudied by 8 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 4 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 5 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 6 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 5 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 28 people
Updated ... ago
5.0 Stars(1)

Explore top flashcards

flashcards Flashcard41 terms
studied byStudied by 3 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard46 terms
studied byStudied by 48 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard62 terms
studied byStudied by 1 person
Updated ... ago
5.0 Stars(1)
flashcards Flashcard109 terms
studied byStudied by 8 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard67 terms
studied byStudied by 7 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard40 terms
studied byStudied by 3 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard33 terms
studied byStudied by 6 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard151 terms
studied byStudied by 45 people
Updated ... ago
5.0 Stars(1)