APCSP Unit 4 - Making Decision with Python

studied byStudied by 34 people
5.0(1)
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 / 21

flashcard set

Earn XP

22 Terms

1

algorithm

a process or set of rules to be followed in calculations or other problem solving operations; a set of instructions

New cards
2

sequencing algorithm

an algorithm that executes statements one at a time - in order, one after another, not skipping or repeating any statements

New cards
3

selection algorithm

a type of algorithm that uses conditions -- which can be true or false -- to control the flow of a program; uses if, if-else, or if-elif-else

New cards
4

iterative algorithm

a type of algorithms that loops or repeats code

New cards
5

Iterative Development Process

a software development approach where a project is divided into smaller iterations or cycles; each iteration involves the completion of a set of tasks, including planning, designing, coding, testing, and documentation

New cards
6

flowchart

a graphical representation of the steps involved in a computer algorithm

New cards
7

parameter

extra information sent in between the parentheses of a function

New cards
8

if statement

a structure used to determine if a condition is true or false; if true, it executes a block of code; if false, it skips that block of code

New cards
9

relational operators

a symbol that is used to compare two values; the result is either true or false

New cards
10

==

equal to

New cards
11

!=

not equal to

New cards
12

>

greater than

New cards
13

>=

greater than or equal to

New cards
14

<

less than

New cards
15

<=

less than or equal to

New cards
16

logical operator

a keyword that allows us to check more than one condition at a time; usually uses and, or, not

New cards
17

and

a logical operator that requires both conditions to be true for the overall condition to be true

New cards
18

or

a logical operator that requires only one condition to be true for the overall condition to be true

New cards
19

not

a logical operator that causes a condition to evaluate to the opposite

New cards
20

truth table

a breakdown of all the possible truth values returned by a logical expression

New cards
21

if-else statement

a structure used in order to have a program choose between two different sets of code; if the condition is true, the if section will execute; if the condition is false, the else section will execute

New cards
22

else-if statement

a structure used to check a series of conditions; when Python locates the first true condition, it executes that portion of the code and ignores the other conditions

New cards

Explore top notes

note Note
studied byStudied by 29 people
854 days ago
5.0(2)
note Note
studied byStudied by 11 people
979 days ago
5.0(1)
note Note
studied byStudied by 5 people
42 days ago
5.0(1)
note Note
studied byStudied by 5 people
826 days ago
5.0(1)
note Note
studied byStudied by 7 people
685 days ago
5.0(1)
note Note
studied byStudied by 1 person
48 days ago
5.0(1)
note Note
studied byStudied by 7 people
46 days ago
5.0(2)
note Note
studied byStudied by 59 people
831 days ago
5.0(2)

Explore top flashcards

flashcards Flashcard (104)
studied byStudied by 42 people
327 days ago
5.0(1)
flashcards Flashcard (67)
studied byStudied by 7 people
127 days ago
5.0(1)
flashcards Flashcard (45)
studied byStudied by 3 people
683 days ago
5.0(1)
flashcards Flashcard (92)
studied byStudied by 1 person
667 days ago
5.0(1)
flashcards Flashcard (120)
studied byStudied by 3 people
273 days ago
5.0(1)
flashcards Flashcard (95)
studied byStudied by 7 people
685 days ago
5.0(1)
flashcards Flashcard (46)
studied byStudied by 24 people
783 days ago
5.0(3)
flashcards Flashcard (54)
studied byStudied by 13 people
701 days ago
5.0(2)
robot