APCSP Unit 4 - Making Decision with Python

studied byStudied by 34 people
5.0(1)
Get a hint
Hint

algorithm

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 10 people
... ago
5.0(1)
note Note
studied byStudied by 9 people
... ago
5.0(1)
note Note
studied byStudied by 20 people
... ago
5.0(1)
note Note
studied byStudied by 7 people
... ago
5.0(1)
note Note
studied byStudied by 59 people
... ago
5.0(2)
note Note
studied byStudied by 6 people
... ago
5.0(1)
note Note
studied byStudied by 2 people
... ago
5.0(1)
note Note
studied byStudied by 3293 people
... ago
4.8(9)

Explore top flashcards

flashcards Flashcard (100)
studied byStudied by 4 people
... ago
5.0(1)
flashcards Flashcard (38)
studied byStudied by 1 person
... ago
5.0(1)
flashcards Flashcard (30)
studied byStudied by 18 people
... ago
5.0(1)
flashcards Flashcard (162)
studied byStudied by 15 people
... ago
5.0(1)
flashcards Flashcard (41)
studied byStudied by 7 people
... ago
5.0(2)
flashcards Flashcard (94)
studied byStudied by 6 people
... ago
4.0(1)
flashcards Flashcard (20)
studied byStudied by 10 people
... ago
5.0(1)
robot