Exam 5: Functions and an Introduction to Recursion

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

Which of the following C++ Standard Library header files does not contain a C++ Standard Library container class?

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

D

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:

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

C

The function prototype Double mySqrt int x );

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

A

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

(Multiple Choice)
4.9/5
(41)

Which of the following is not a valid enumeration statement?

(Multiple Choice)
4.9/5
(47)

Recursion is to the base case as iteration is to what:

(Multiple Choice)
4.9/5
(34)

Functions can:

(Multiple Choice)
4.7/5
(37)

A function prototype can always be omitted when:

(Multiple Choice)
4.9/5
(32)

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

(Multiple Choice)
4.8/5
(42)

Overloaded functions must have:

(Multiple Choice)
4.9/5
(34)

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?

(Multiple Choice)
4.8/5
(37)

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

(Multiple Choice)
4.9/5
(32)

Recursion is memory-intensive because:

(Multiple Choice)
4.8/5
(39)

In regards to default arguments, which of the following is false?

(Multiple Choice)
4.9/5
(30)

Which of the following statements is false?

(Multiple Choice)
4.8/5
(41)

Using the following function definition, the parameter list is represented by: A B C ) { D }

(Multiple Choice)
4.9/5
(40)

Given the following function template Template < class T > T maximum T value1, T value2 ) { If value1 > value2 ) Return value1; Else Return value2; } What would be returned by the following two function calls? Maximum 2, 5 ); Maximum 2.3, 5.2 );

(Multiple Choice)
4.9/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
(41)

In the expression N = x + rand) % y;

(Multiple Choice)
4.8/5
(40)

All of the following are true of functions except:

(Multiple Choice)
4.8/5
(41)
Showing 1 - 20 of 47
close modal

Filters

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