Exam 7: Modularity Using Functions: Part II

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

A variable that can store an address is known as a(n) ____ variable.

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

B

Self-referential functions are also called recursive functions.

Free
(True/False)
4.9/5
(34)
Correct Answer:
Verified

True

Once created, local static variables remain in existence for the life of the program.

Free
(True/False)
4.9/5
(36)
Correct Answer:
Verified

True

Variables created inside a function are available only to other functions in the same C file.

(True/False)
4.9/5
(41)

The default in C is to make calls by reference to limit a called function's ability to alter variables in the calling function.

(True/False)
4.8/5
(31)

When using a pointer variable, the value that is obtained is always found by first going to the pointer for an address; this is called indirect addressing.

(True/False)
4.8/5
(39)

____ variables have the same time duration as automatic variables.

(Multiple Choice)
4.8/5
(39)

Using global variables except in very restricted and well-defined situations is a sign of extremely bad programming.

(True/False)
4.9/5
(38)

Initialization within an extern declaration statement is not allowed and causes a compilation error.

(True/False)
4.9/5
(46)

The declaration statement ____ declares milesAddr to be a pointer variable that can store the address of (that is, will point to) an integer variable.

(Multiple Choice)
4.8/5
(33)

Passing an address is referred to as a function pass by reference, because the called function can reference, or access, the variable using the passed address.

(True/False)
4.9/5
(35)

The purpose of the ____ storage class is to extend the scope of a global variable declared in one source code file into another source code file.

(Multiple Choice)
4.9/5
(32)

The initialization of static variables (both local and global) is done only once, when the program is first compiled.

(True/False)
4.9/5
(41)

In ____ initialization, initialization occurs each time the declaration statement is encountered.

(Multiple Choice)
4.8/5
(38)

When a function invokes itself, the process is called ____ recursion.

(Multiple Choice)
4.8/5
(42)

C functions are constructed to be independent modules.

(True/False)
4.8/5
(43)

Unlike automatic variables that can be initialized by either constants or expressions using both constants and previously initialized variables, static variables can only be initialized using constants or constant expressions.

(True/False)
4.8/5
(44)

To use a stored address, C provides us with an indirection operator, ____.

(Multiple Choice)
4.7/5
(32)

While a function is executing, only the storage area for the variables and parameters created by this function are automatically accessed.

(True/False)
4.8/5
(30)

A function can invoke a second function, which in turn invokes the first function; this type of recursion is referred to as ____ recursion.

(Multiple Choice)
4.7/5
(33)
Showing 1 - 20 of 49
close modal

Filters

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