APCSP Unit 4 - Making Decision with Python

studied byStudied by 30 people
5.0(1)
get a hint
hint

algorithm

1 / 21

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 9 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 6 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 5 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 10 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 73 people
Updated ... ago
4.0 Stars(2)
note Note
studied byStudied by 47 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 21 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 26 people
Updated ... ago
5.0 Stars(1)

Explore top flashcards

flashcards Flashcard51 terms
studied byStudied by 7 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard40 terms
studied byStudied by 31 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard46 terms
studied byStudied by 2 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard21 terms
studied byStudied by 14 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard90 terms
studied byStudied by 21 people
Updated ... ago
5.0 Stars(2)
flashcards Flashcard20 terms
studied byStudied by 1 person
Updated ... ago
5.0 Stars(1)
flashcards Flashcard223 terms
studied byStudied by 23 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard27 terms
studied byStudied by 12 people
Updated ... ago
5.0 Stars(1)