Chapter 6 - Quiz

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

What will the following code display? #include using namespace std; int getValue(int); int main() { int x = 2; cout << getValue(x) << endl; return 0; } int getValue(int num) { return num + 5; }

7

EXIT_FAILURE and ________ are named constants that may be used to indicate success or failure when the exit() function is called.

EXIT_SUCCESS

Which of the following causes a function to execute?

a function call

A(n) ________ is information that is passed to a function, and a(n) ________ is information that is received by a function.

argument, parameter

A function is executed when it is

called

A ________ argument is passed to a parameter when the actual argument is left out of the function.

default

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

definition

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

int

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

The value in this type of variable persists between function calls

static


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

Section One: Professional Development and Responsibility

View Set

PrepU Ch 30: Management of Patients with Hematologic Neoplasms

View Set

Google Adwords, Customer Journey, & Attribution Modeling

View Set

Name Examples for Midterm BUSN 2003

View Set

Changes in Sleep patterns over life

View Set

Practice Questions Potter and Perry

View Set