Chapter 6 vocab c++

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

Stub

A dummy function that is called instead of the actual function it represents. (Used for testing & debugging).

Driver

A program that tests a function by simply calling it.

Parameters

A special variable that holds a value being passed into a function.

Exit Function

Causes a program to terminate, regardless of which function or control mechanism is executing.

Function Definition

Contains statements that make up a function. Such as return type, name, parameter list & body.

Function Header

Declares the function's return type, name, and parameter list.

Void Function

Function that lacks a return statement. Performs some action, but does not return a value to the main function.

Value Returning Function

Functions that return a value.

Global Variables

Is a variable defined outside all functions and is accessible to all functions in its scope.

What must NOT be included in a function call?

The data types of the actual parameters

Body

The series of statements that executes the purpose of a function

Return Statement

This statement causes a function to end immediately.

Argument

Values that are sent into a function.

Local Variables

Variables that are defined inside a function and are not accessible outside the function.

Divide and Conqure

When a large problem is divided into several smaller problems that are easily solved.

Reference Variable

When used as a function parameter, this allows access to the original argument. An alias for another variable.

Scope

Where in a program an identifier can be accessed

Code Reuse

Writing code to perform a task once and then reusing it each time you need to perform a task.

Return Statement

line at the end of a function that causes it to send a value back to the main function.

Prototype

looks similar to the function header, except there is a semicolon at the end. They are usually placed near the top of a program so the compiler will encounter them before any function calls.

Function Call

statement that causes a function to run in a program. Consists of the function name and the actual parameter list


संबंधित स्टडी सेट्स

ANTH 2302 chapter 8 quiz questions

View Set

Ch. 7 bone Elongation, Zones of Metaphysis

View Set

Federal Rules of Civil Procedure

View Set