Exam 6: Using C++ Functions

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags
Match each term with the correct statement below.
Premises:
module that performs a task or group of tasks
Responses:
black box
function prototype
ambiguity
Correct Answer:
Verified
Premises:
Responses:
module that performs a task or group of tasks
black box
(Matching)
4.8/5
(30)

What are the disadvantages of using global variables instead of local variables?

(Essay)
4.8/5
(37)

A(n) ____ parameter to a function is one for which an automatic value is supplied if you do not explicitly use one.

(Multiple Choice)
4.7/5
(39)

In different programming languages, the counterpart to a function is known as a subroutine, procedure, or ____________________.

(Short Answer)
4.9/5
(37)
Match each term with the correct statement below.
Premises:
situation in which the compiler cannot tell which version of a function to use
Responses:
function prototype
ambiguity
abstraction
Correct Answer:
Verified
Premises:
Responses:
situation in which the compiler cannot tell which version of a function to use
function prototype
(Matching)
4.9/5
(39)

The scope resolution operator (____) allows you to refer to a global variable when a local one has taken precedence.

(Multiple Choice)
4.7/5
(45)

An array name is a(n) ____________________; it holds a memory address.

(Short Answer)
4.8/5
(37)

An argument used in a function call is known as a(n) ____ parameter.

(Multiple Choice)
4.8/5
(39)

What are the benefits that you gain when you write functions that you include in other programs?

(Essay)
4.7/5
(40)

A(n) ____ is the expression used within the parentheses when you call a function.

(Multiple Choice)
4.9/5
(40)

What are some errors typically made by beginning programmers when they declare, call, and write functions?

(Essay)
4.8/5
(34)

When you want to use a value stored in a pointer, you must use the ____ to dereference the pointer, or use the value to which it points.

(Multiple Choice)
4.9/5
(43)

The ____ of a variable defines where it can be accessed in a program.

(Multiple Choice)
4.9/5
(33)
Match each term with the correct statement below.
Premises:
cost of doing business involved in calling a function
Responses:
function prototype
subfunction
function
Correct Answer:
Verified
Premises:
Responses:
cost of doing business involved in calling a function
function prototype
(Matching)
4.7/5
(34)

Encapsulation simplifies your concept of the process or object, allowing you to ignore nonessential details.

(True/False)
4.9/5
(35)
Match each term with the correct statement below.
Premises:
function used by a main() function
Responses:
subfunction
function
ambiguity
Correct Answer:
Verified
Premises:
Responses:
function used by a main() function
subfunction
(Matching)
4.7/5
(33)

A function declaration is also called a function ____.

(Multiple Choice)
4.8/5
(39)

What is name mangling?

(Short Answer)
4.8/5
(35)

____________________ helps readers of program code understand the purpose of the code.

(Short Answer)
4.9/5
(36)

Where in your program should you place include statements?

(Essay)
4.8/5
(38)
Showing 21 - 40 of 51
close modal

Filters

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