Exam 5: Functions and an Introduction to Recursion

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

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

(Multiple Choice)
5.0/5
(34)

Depending on the circumstances, the compiler may ignore the storage class specifier:

(Multiple Choice)
4.7/5
(40)

Which of the following is false about the following function prototype? Void functionA void );

(Multiple Choice)
4.8/5
(34)

An identifier's storage class:

(Multiple Choice)
4.9/5
(38)

If a set of functions have the same program logic and operations and differ only in the data types) each receives as arguments) then an) __________ should be used.

(Multiple Choice)
4.9/5
(34)

Type-safe linkage is ensured by:

(Multiple Choice)
4.9/5
(36)

Enumeration constants:

(Multiple Choice)
4.9/5
(31)

A reference parameter:

(Multiple Choice)
4.7/5
(48)

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

(Multiple Choice)
4.9/5
(39)

Srand:

(Multiple Choice)
4.7/5
(35)

What happens when two blocks, one nested inside of the other, both declare variables with the same identifier? Assume that the outer block declares its variable before the opening left-brace of the inner block.)

(Multiple Choice)
4.9/5
(28)

Each standard library has a corresponding:

(Multiple Choice)
4.8/5
(35)

Which of the following is not true of static local variables?

(Multiple Choice)
4.8/5
(27)

Which of the following is not included in a function's activation record?

(Multiple Choice)
4.9/5
(30)

Labels are the only identifiers with:

(Multiple Choice)
4.9/5
(41)

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.7/5
(43)

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

(Multiple Choice)
4.7/5
(34)

The inline keyword:

(Multiple Choice)
4.8/5
(37)

The rand function generates a data value of the type:

(Multiple Choice)
4.8/5
(43)

The unary scope resolution operator is used:

(Multiple Choice)
4.9/5
(45)
Showing 21 - 40 of 47
close modal

Filters

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