1/20
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai | Chat |
|---|
No analytics yet
Send a link to your students to track their progress
function
A ___ is a group of statements that exists within a program for the purpose of performing a specific task
divide and conquer
A large task is divided into several smaller tasks that are easier to perform. This technique is known as ___
true
T/F: If a specific operation is performed in several places in a program, a function can be written once to perform that operation, and then be reused any time it is needed
void function
When you call a ___, it simply executes the statements it contains and then terminates
value-returning function
When you call a ___, it executes the statements that it contains, then returns a value back to the statement that called it
code reuse
Writing the code once to perform a task, and then reusing that code each time you need to perform the task
a function header and a block
A function definition has two parts: ___
function definition
the code for a function is known as a ___
definition
To create a function, you write its ___
function header
the first line of a function definition
block
a set of statements that belong together as a group
call
to execute a function you must ___ it
mainline logic
the overall logic of the program
execute
to call a function means to ___ it
false
T/F: When the end of a function is reached, the computer returns control back to the beginning of the program.
true
T/F: The Python interpreter uses indentation to determine where a block begins and ends.
top-down design
a design process in which an algorithm is broken into functions
hierarchy charts
a chart that shows the relationships between functions
true
T/F: In top-down design, tasks are broken down into subtasks until no more subtasks can be identified.
code the subtasks
what is the last step in top-down design?