functions Flashcards
a group of statements that exist within a program for the purpose of performing a specific task is a …….
function
a design technique that helps to reduce the duplication of code within a program is ……..
code reuse
the first line of a function is known as the ………
header
you ……. a function to execute it
call
a design technique that programmers use to break down an algorithm into functions is known as …….
top-down design
a ……. is a diagram that gives a visual representation of the relationships between functions in a program
hierarchy chart
a ……… is a variable that is created inside a function
local variable
a ……… is the part of a program in which a variable may be accessed
scope
an ………. is a piece of data that is sent into a function
argument
a ………… is a special variable that receives a piece of data when a function is called
parameter
a variable that is visible to every function in a program file is a ……..
global variable
when possible you should avoid using …….. variables in a program
global
library function
this is a pre-written function that is built into a programming language
‘random()’
this standard library function returns a random integer within a specified range of values
and/or
this standard library function returns a random floating-point number in the range of 0.0 up to but not including 1.0
‘uniform()’
this standard library function returns a random floating-point number within a specified range of values