1/19
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 group of statements that exist within a program for the purpose of performing a specific task.
Code reuse
A design technique that helps with reduce the duplication of code within a program and is a benefit of using functions.
Header
The first line of a function definition.
Call it
In order to use a function you have to do this.
Top down design
A design technique that programmers use to break down an algorithm into functions.
Hierarchy chart
A diagram that gives a visual representation of the relationships between functions in a program.
Local variable
A variable that us created inside a function.
Scope
The part of the program in such a variable may be accessed.
Argument
A piece of data that is sent to a function.
Parameter
A special variable that receives a piece of data when a function is called.
Global variable
A variable that is visible to every function in a program file.
Global variable
You should avoid using these variables when possible.
Library function
A prewritten function that is built into the language.
Randint
This standard library function returns a random integer within a specified range of values.
Random
This standard library function returns a random floating point number in the rang of 0.0 up to 1.0 but not including 1.0.
Uniform
This standard library function returns a random float number in a specified range of values.
Return
This statement causesva function to end and sends a value back to the part of the program that called the function.
IPO
This is a design tool that describes the input, peocessing, and output of a function.
Boolean
This type of function returns either true or falsem
Sqrt
Example of a math module function.