Exam 6: Functions and an Introduction to Recursion

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

Enumeration constants:

Free
(Multiple Choice)
5.0/5
(34)
Correct Answer:
Verified

C

Which of the following expressions returns the trigonometric sine of x?

Free
(Multiple Choice)
4.8/5
(35)
Correct Answer:
Verified

A

If the function int volume(int x = 1, int y = 1, int z = 1); is called by the expression volume(3), how many default arguments are used?

Free
(Multiple Choice)
4.9/5
(31)
Correct Answer:
Verified

C

Which of the following is true?

(Multiple Choice)
4.7/5
(24)

In the expression n = x + rand() % y;

(Multiple Choice)
4.8/5
(38)

The argument list of a function call must match, or be consistent with, the parameter list of the called function in all of the following details, except:

(Multiple Choice)
4.9/5
(29)

For which of the following operators does C++ not specify the order of evaluation of its operands?

(Multiple Choice)
4.8/5
(38)

Which of the following is not a valid enumeration?

(Multiple Choice)
4.9/5
(31)

Which of the following is false?

(Multiple Choice)
4.8/5
(29)

Converting from type ________ to type ________ will result in the loss of data.

(Multiple Choice)
4.9/5
(35)

What value does function mystery return when called with a value of 4? int mystery (int number) { If (number <= 1) { Return 1; } Else { Return number * mystery(number - 1); } }

(Multiple Choice)
4.8/5
(37)

When an argument is passed-by-value, changes in the called function __________ affect the original variable's value; when an argument is passed call-by-reference, changes in the called function __________ affect the original variable's value.

(Multiple Choice)
4.9/5
(35)

Recursion is memory-intensive because:

(Multiple Choice)
4.8/5
(28)

A reference parameter:

(Multiple Choice)
4.7/5
(37)

Which of the following is true of function templates?

(Multiple Choice)
4.8/5
(32)

Which of the following does the C++ compiler not examine in order to select the proper overloaded function to call?

(Multiple Choice)
4.9/5
(32)

The rand function generates a data value of the type:

(Multiple Choice)
4.8/5
(29)

Each standard library has a corresponding:

(Multiple Choice)
4.7/5
(39)

C++11's unsigned long long int type (which can be abbreviated as unsigned long long) enables you to store values in at least ________, which can hold numbers as large as 18,446,744,073,709,551,615.

(Multiple Choice)
4.8/5
(32)

Which of the following is not included in <cmath>?

(Multiple Choice)
4.7/5
(35)
Showing 1 - 20 of 48
close modal

Filters

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