Exam 6: Functions and an Introduction to Recursion

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

A variable that can have values only in the range 0 to 65535 is a:

(Multiple Choice)
4.7/5
(31)

A function prototype does not have to:

(Multiple Choice)
4.8/5
(34)

[C++11] Which of the following statements about scoped enumerations is false?

(Multiple Choice)
4.9/5
(34)

All of the following are true of functions except:

(Multiple Choice)
4.8/5
(31)

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

(Multiple Choice)
4.9/5
(36)

Overloaded functions must have:

(Multiple Choice)
4.9/5
(41)

Labels are the only identifiers with:

(Multiple Choice)
4.8/5
(28)

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

(Multiple Choice)
4.8/5
(34)

Call-by-reference can achieve the security of call-by-value when:

(Multiple Choice)
4.8/5
(28)

A function prototype can always be omitted when:

(Multiple Choice)
4.7/5
(31)

The inline keyword:

(Multiple Choice)
4.9/5
(38)

Assuming the following pseudocode for the Fibonacci series, what is the value of the 5th Fibonacci number (fibonacci (5))? fibonacci(0) = 0 Fibonacci(1) = 1 Fibonacci(n) = fibonacci(n - 1) + fibonacci(n - 2)

(Multiple Choice)
4.8/5
(40)

To make numeric literals more readable, C++14 allows you to insert between groups of digits in numeric literals the digit separator ' (a single-quote character).

(Multiple Choice)
4.7/5
(38)

Type-safe linkage is ensured by:

(Multiple Choice)
4.9/5
(38)

Given the following function template template <typename 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.8/5
(33)

If a set of functions have the same program logic and operations and differ only in the data type(s) each receives as argument(s) then a(n) __________ should be used.

(Multiple Choice)
4.9/5
(38)

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

(Multiple Choice)
4.9/5
(35)

An activation record will be popped off the function call stack whenever:

(Multiple Choice)
4.8/5
(39)

A recursive function is a function that:

(Multiple Choice)
4.8/5
(31)

Functions can:

(Multiple Choice)
4.7/5
(38)
Showing 21 - 40 of 48
close modal

Filters

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