Font size
WorksheetsITCC 113 Chapter 9 - Value Returning Functions
Total questions: 21
Worksheet time: 21mins
an item of information passed (sent) to a function when the function is called (invoked)
(a)
blocks of code that perform a task and are included in libraries that come with the C++ language; examples include the pow, sqrt, rand, srand, and time functions
(a)
the process of raising a number to a power
(a)
the memory locations listed in a functions header's parameterList; a formal parameter stores an item of information passed to a function when the function is invoked (called)
(a)
a statement that specifies the function's name, the data type of its return value (if any), and the data type and (optionally) name of each of its formal parameters (if any); required for every function that is defined below the main function in a program
(a)
variables that are declared outside of any function in a program; global variables can be used by any statement below their variable declaration in the program, and they remain in memory until the program ends; you should avoid using global variables in a program
(a)
indicates how long an item, such as a variable, remains in the computer's internal memory
(a)
variables that are declared within a statement block, a function's parameterList, or a for clause; local variables can be used only by the statement block, function, or for loop in which they are declared; local variables remain in memory until the end of the statement block, function, or for loop
(a)
refers to the process of passing a variable's address to a function
(a)
refers to the process of passing a copy of a variable's value to a function
(a)
a built in C++ function that raises a number to a power and then returns the result as a double number
(a)
functions created by the programmer and whose definitions typically reside in the current program
(a)
a function that produces a sequence of numbers that meet certain statistical requirements for randomness; the rand function is the pseudo-random number generator in C++
(a)
a built in C++ function returns a random integer that is greater than or equal to 0 but less than or equal to the value stored in the RAND_MAX constant; the pseudo-random number generator in C++
(a)
a C++ built-in-constant that represents the largest integer generated by the rand function; its value is always at least 32.767
(a)
in most cases, the last statements in a value-returning function; it returns a value to the statement that called the functions and then alerts the computer that the function has completed its task
(a)
indicates where in the program an item, such as an item, such as a variable, can be used
(a)
a C++ built-in-function whose purpose is to return the square root of a real number; returns the square root as a double number
(a)
a C++ built-in function used to initialize the rand function
(a)
a C++ built-in function that returns the current time (according to your computer system's clock) as seconds elapsed since midnight since January 1. 1970; often used as the seed argument in the srand function
(a)
functions that return precisely one value after they complete their assigned task
(a)
