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 29 people
666 days ago
5.0(1)
note Note
studied byStudied by 25 people
544 days ago
5.0(1)
note Note
studied byStudied by 3 people
82 days ago
5.0(1)
note Note
studied byStudied by 235 people
698 days ago
5.0(3)
note Note
studied byStudied by 32 people
131 days ago
5.0(1)
note Note
studied byStudied by 85 people
308 days ago
5.0(1)
note Note
studied byStudied by 1958 people
694 days ago
4.9(7)

Explore top flashcards

flashcards Flashcard (38)
studied byStudied by 3 people
283 days ago
5.0(1)
flashcards Flashcard (60)
studied byStudied by 18 people
531 days ago
5.0(1)
flashcards Flashcard (65)
studied byStudied by 27 people
686 days ago
5.0(1)
flashcards Flashcard (31)
studied byStudied by 8 people
80 days ago
5.0(1)
flashcards Flashcard (37)
studied byStudied by 252 people
446 days ago
5.0(2)
flashcards Flashcard (23)
studied byStudied by 3 people
504 days ago
5.0(1)
flashcards Flashcard (38)
studied byStudied by 6 people
357 days ago
5.0(1)
flashcards Flashcard (25)
studied byStudied by 112 people
706 days ago
5.0(8)
robot