Exam 6: Modularity Using Functions: Part I
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
Parameters are sometimes referred to as formal arguments.
Free
(True/False)
4.9/5
(39)
Correct Answer:
True
The method for adjusting the random numbers produced by a random-number generator to reside within a specified range is called ____.
Free
(Multiple Choice)
4.9/5
(40)
Correct Answer:
A
To return a value, a function must use a(n) ____ statement.
Free
(Multiple Choice)
4.7/5
(38)
Correct Answer:
D
A function returning a value must specify, in its header line, the data type of the value that will be returned.
(True/False)
4.9/5
(33)
Pseudorandom numbers are numbers which are not really random, but are sufficiently random for the task at hand.
(True/False)
4.8/5
(38)
The getcharacter() function can be used for single character input.
(True/False)
4.9/5
(38)
When a function simply receives copies of the values of the arguments and must determine where to store these values before it does anything else, this is known as a ____.
(Multiple Choice)
4.9/5
(37)
The minimum requirement of a ____ is that it compile and link with its calling module.
(Multiple Choice)
5.0/5
(39)
Placing the appropriate #include statement at the bottom of the program ensures proper access to the library functions whose prototypes are contained in the header file.
(True/False)
4.9/5
(36)
Each C function is a separate and independent entity with its own parameters and variables.
(True/False)
4.9/5
(39)
The function ____ returns the absolute value of its double-precision argument.
(Multiple Choice)
4.8/5
(35)
When you write a function, you are formally creating a function definition.
(True/False)
4.8/5
(37)
Many C compilers have a randomize() routine that is defined using the srand() function.
(True/False)
4.9/5
(43)
Scaling a random number as an integer value between 1 and N is accomplished using the expression ____.
(Multiple Choice)
4.9/5
(33)
The rand() function produces a series of random numbers in the range 0 < rand() < RAND_MAX, where the constant RAND_MAX is a compiler-dependent symbolic constant that is defined in the stdlib.h header file.
(True/False)
4.9/5
(35)
___ is the correct way to include a header file in your program.
(Multiple Choice)
4.7/5
(37)
Showing 1 - 20 of 51
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)