COP2000 Chapter 6

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

What will the following code display?

2 0 2

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

Function

________ functions may have the same name as long as their parameter lists are different.

Two or more

A function is executed when it is

called

These types of 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

It is good programming practice to ________ your functions by writing comments that describe what they do.

document

What is the data type of the following function prototype's parameter variable? int myFunction(double);

double

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

exit()

If a function does NOT have a prototype, default arguments may be specified in the ________.

function header

What is the data type of the following function prototype's return value? int myFunction(double);

int

Which line in the following program contains the prototype showDub function?

line 3

Which line in the following program contains a call to the showDub function?

line 7

This type of variable is defined inside a function and is NOT accessible outside the function.

local

A function can have no parameters, one parameter, or many parameters and can return ________ value(s).

only one

This is a dummy function that is called instead of the actual function it represents:

stub

Which line in the following program contains the header for the showDub function?

Line 11

If a function is called more than once in a program, the values stored in the function's local variables do NOT ________ between function calls.

persist

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

prototype

Given the following function:

1 6 3


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

Construction Materials Chapter 4 - TEST 1

View Set

Perspectives and Theories of Psychology - Multiple Choice Questions

View Set

Postoperative Nursing Management

View Set

Chapter 10: Promoting a Healthy Pregnancy

View Set

1. Speed and smarts Mark Rounding Playbook. Issue 131 & Webinar #1 Key Rounding Concepts

View Set

american federal government test 1

View Set