Exam 6: Modularity Using Functions: Part I

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

Parameters are sometimes referred to as formal arguments.

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

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:
Verified

A

To return a value, a function must use a(n) ____ statement.

Free
(Multiple Choice)
4.7/5
(38)
Correct Answer:
Verified

D

The parentheses in a return statement are required.

(True/False)
4.9/5
(44)

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)

In C, it is permitted to nest one function inside another.

(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)

In earlier versions of C, function prototypes were required.

(True/False)
4.8/5
(36)

____ reads the computer's internal clock time, in seconds.

(Multiple Choice)
4.9/5
(30)

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
close modal

Filters

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