Computer Science A Unit 3

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

1 / 8

flashcard set

Earn XP

Description and Tags

Boolean expressions and if statnts

9 Terms

1

If statements

will only run and execute when a certain condition is true; and will ignore the code if the statement isn’t true

one-way selection

New cards
2

Flow of control

The order in which different lines of code will run

Typically each line of code runs from top to bottom

If statements can change the sequence

New cards
3

Two-way selection

if -else statement, meaning there are 2 watts that the code could run, the if or the else

New cards
4

Multi-way selection

If-else-if statement, which only runs one of the man y different listed conditions

New cards
5

Boolean expression

logical operations that check for multiple conditions at once

combines 2 separate Boolean expressions into a single compound Boolean expression

statement or condition that evaluates to true of false

New cards
6

Truth table

used to look at all possible values of the variables, and determine the value of the whole statement

New cards
7

Short-circuit evaluation

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

New cards
8

Morgan’s first Law

If both A and B are true, them the whole expression is true

New cards
9

Morgan’s second Law

If some part of a || statement is true, then the whole expression 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
1 hour 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