CS Awesome - Unit 3 Vocabulary

studied byStudied by 0 people
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

Block of statements

1 / 11

12 Terms

1

Block of statements

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 was 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 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