MCQOPTIONS
Bookmark
Saved Bookmarks
→
Pseudorandom Number Generators Multiple Choice
→
General
→
What is the range of rand()?
1.
What is the range of rand()?
A.
0 to RAND_MAX
B.
0 to infinity
C.
0 to 2147483647
D.
0 to 32767
Answer» B. 0 to infinity
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
Which header file contains the function rand() in C language?
Pseudo random number generators can be used for data encryption.
What is the default value of seed if function rand() is called before srand()?
Function rand() generates unique random numbers every time.
What is the minimum value of RAND_MAX possible in any implementation?
Which of the following will generate random numbers in the range 1-100 (both inclusive)?
5.What is the correct formula for generating random numbers in the range (lower,upper) using rand()?
What is the range of rand()?
What is the purpose of using function srand()?
What should be the return type of rand() function?
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply
Your experience on this site will be improved by allowing cookies. Read
Cookie Policy
Reject
Allow cookies