题目内容

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

The function ____ returns a non-0 number if the argument is a letter or a digit; otherwise it returns a 0.

A. int isalnum(int)
B. int isalpha(int)
C. int isdigit(int)
D. int isxdigit(int)

答案查题题库