题目内容

The function ____ returns the common logarithm of its argument in the standard library.

A. double exp(double)
B. double log(double)
C. double log10(double)
D. double fmod(double)

查看答案
更多问题

The function ____ returns the natural logarithm of its argument in the standard library.

A. double exp(double)
B. double log(double)
C. double log10(double)
D. double fmod(double)

The ____ function can be used to generate a random number in the standard library.

A. rand()
B. srand()
C. random()
D. rnd()

____ reads the computer’s internal clock time, in seconds in the standard library.

A. stime()
B. time(SECONDS)
C. time()
D. time(NULL)

Scaling a random number as an integer value between 1 and N is accomplished using the expression ____.

A. 1 + (int)rand() / N
B. 1 + (int)rand() % N
C. (int)rand() / N
D. (int)rand() % N

答案查题题库