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 31 people
... ago
5.0(1)
note Note
studied byStudied by 63 people
... ago
5.0(2)
note Note
studied byStudied by 50 people
... ago
4.3(3)
note Note
studied byStudied by 24666 people
... ago
4.5(122)
note Note
studied byStudied by 12 people
... ago
5.0(1)
note Note
studied byStudied by 10 people
... ago
5.0(1)
note Note
studied byStudied by 20 people
... ago
5.0(1)
note Note
studied byStudied by 71 people
... ago
5.0(1)

Explore top flashcards

flashcards Flashcard (24)
studied byStudied by 5 people
... ago
5.0(1)
flashcards Flashcard (24)
studied byStudied by 1 person
... ago
5.0(1)
flashcards Flashcard (59)
studied byStudied by 12 people
... ago
5.0(1)
flashcards Flashcard (45)
studied byStudied by 10 people
... ago
5.0(1)
flashcards Flashcard (111)
studied byStudied by 18 people
... ago
5.0(1)
flashcards Flashcard (34)
studied byStudied by 11 people
... ago
5.0(1)
flashcards Flashcard (50)
studied byStudied by 37 people
... ago
5.0(1)
flashcards Flashcard (258)
studied byStudied by 95 people
... ago
5.0(1)
robot