functions

¡Supera tus tareas y exámenes ahora con Quizwiz!

Values that are sent to a function are called [a] (a.k.a. [b]).

arguments (a.k.a. actual parameters).

The ___ of a function is the set of statements that perform the functionâ s operation.

body

A function ___ is a statement that causes a function to execute.

call

Enclosing a group of statements inside a set of braces creates a(n) ___.

codeblock

In computer programming, ___ code is part of the source code of a program which can never be executed because there exists no control flow path to the code from the rest of the program.

dead or unreachable

___ arguments are passed to parameters automatically if no argument is provided in the function call.

default

A function ___ contains the statements that make up the function.

definition

___ is code that tests a function by simply calling it.

driver code

The order in which statements are executed in a program is referred to as the program's ___.

flow of execution

The list of parameters indicated in the function definition are called ___ parameters.

formal

A(n) ___ is a collection of statements that performs a specific task.

function

A(n) ___ is a programming construct that allows a programmer to associate a given set of instructions with a specific name.

function

A(n) ___ constant is a named constant that is available to every function in a program.

global

A(n) ___ variable is defined outside all functions and is accessible to all functions in its scope.

global

The very first line of a function is the function ___.

header

___ involves writing and testing small portions of a program repeatedly until the program is complete.

incremental developement

A(n) ___ is a collection of precompiled routines that a program can use.

library

A(n) ___ is a package of code that is meant to be reused by many programs.

library

A(n) ___ variable is defined inside a function and is not accessible outside the function.

local

Variables that are defined inside a function are called ___ variables.

local

Instead of writing one long function that contains all of the statements necessary to solve a problem, several small functions that each solve a specific part of the problem can be written. A program of this type is called a ___ program.

modular

Function ___ is a programming concept that allows programmers to define two or more functions with the same name as long as each of the functions has a unique signature.

overloading

A(n) ___ is a special variable that holds a value being passed into a function.

parameter

When a reference variable is used as a parameter, it is said that the\\[4pt] argument is ___.

passed by reference

When a copy of an argument is passed to a function, it is said to be ___.

passed by value

In programming, a function is a named section of a program that performs a specific task. In this sense, a function is a type of [a] or [b]. Some programming languages make a distinction between a function, which returns a value, and a procedure, which performs some operation but does not return a value.

procedure or subroutine

A function ___ eliminates the need to place a function definition before all calls to the function.

prototype

When used as parameters, ___ variables allow a function to access the parameter's original argument. Changes to the parameter are also made to the argument.

reference

A function can send a value to the part of the program that executed it. This value is called a ___ value.

return

Variables that are defined inside a function that remain in memory after the function has finished executing are called ___ variables.

static

___ local variables exist for the lifetime of the program, even though their scope is only the function in which they are defined.

static

A(n) ___ is a dummy function that is called instead of the actual function it represents. It usually displays a test message acknowledging that it was called, and nothing more.

stub

A(n) ___ function is a function does not return a value to the part of the program that executed it.

void


Conjuntos de estudio relacionados

Micro Economics Chapter 25 Test Review

View Set

quzlet final exam study guide from tests answers and questions

View Set

APUSH Celebration of Knowledge Chapter 34 and 35

View Set

Project Management Milestones Payton +6

View Set

Option G: Urban Environments Key Words

View Set

PrepU Karch 57 Drugs Affecting Gastrointestinal Secretions

View Set

Research Design and Statistics Citi Program 2

View Set