Exam 7: Modularity Using Functions: Part II
Exam 1: Introduction to Computer Programming44 Questions
Exam 2: Getting Started in C Programming46 Questions
Exam 3: Processing and Interactive Input48 Questions
Exam 4: Selection44 Questions
Exam 5: Repetition47 Questions
Exam 6: Modularity Using Functions: Part I51 Questions
Exam 7: Modularity Using Functions: Part II49 Questions
Exam 8: Arrays48 Questions
Exam 9: Character Strings51 Questions
Exam 10: Data Files50 Questions
Exam 11: Arrays, Addresses, and Pointers49 Questions
Exam 12: Structures48 Questions
Exam 13: Dynamic Data Structures49 Questions
Exam 14: Additional Capabilities55 Questions
Exam 15: A Brief Introduction to C++49 Questions
Select questions type
A variable that can store an address is known as a(n) ____ variable.
Free
(Multiple Choice)
4.9/5
(42)
Correct Answer:
B
Self-referential functions are also called recursive functions.
Free
(True/False)
4.9/5
(34)
Correct Answer:
True
Once created, local static variables remain in existence for the life of the program.
Free
(True/False)
4.9/5
(36)
Correct Answer:
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)
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
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)