Exam 6: User-Defined Functions

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

A function ____________________ is a function that is not fully coded.

(Short Answer)
4.9/5
(37)

The output of the statement: cout << pow(3.0, 2.0) + 5 << endl; is ____.

(Multiple Choice)
4.9/5
(33)

A(n) ____________________ parameter s a formal parameter that receives a copy of the content of the corresponding actual parameter.

(Short Answer)
4.9/5
(36)

If a formal parameter is a nonconstant reference parameter, during a function call, its corresponding actual parameter must be a(n) ____________________.

(Short Answer)
4.8/5
(37)

Using functions greatly enhances a program's readability because it reduces the complexity of the function main.

(True/False)
4.8/5
(30)

Stream variables (for example, ifstream and ofstream) should be passed by ____________________ to a function.

(Short Answer)
4.8/5
(38)

The ____________________ of a function consists of the function name and its formal parameter list.

(Short Answer)
4.9/5
(43)

Which statement below about prototypes and headers is true?

(Multiple Choice)
4.7/5
(41)

In C++, a function prototype is the function heading without the body of the function.

(True/False)
4.8/5
(38)

Given the following function: int strange(int x, int y) { if (x > y) \quad return x + y; else \quad return x - y; } What is the output of the following statement? cout << strange(4, 5) << endl;

(Multiple Choice)
4.8/5
(35)
Showing 41 - 50 of 50
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)