C Multiple Choice General Utilities Online Exam Quiz
C Multiple Choice General Utilities GK Quiz. Question and Answers related to C Multiple Choice General Utilities. MCQ (Multiple Choice Questions with answers about C Multiple Choice General Utilities
Select the right statement with reference to malloc() and calloc().
Options
A : malloc() does not set the memory to zero whereas calloc() sets allocated memory to zero
B : malloc() sets the memory to zero whereas calloc() does not set allocated memory to zero
C : malloc() sets the memory to zero whereas calloc() sets allocated memory to zero
D : malloc() does not set the memory to zero whereas calloc() does not set allocated memory to zero
Which function returns a pseudo-random integer?
Options
A : srand()
B : rand()
C : malloc()
D : alloc()
Which of the following functions decomposes the input string into three pans: an initial, possibly empty, sequence of white-space characters?
Options
A : strtod()
B : atof()
C : atol()
D : strtol()
The______function is used to convert the initial portion of the string pointed to by, to unsigned long int representation.
Options
A : strtod()
B : atol()
C : strtoul()
D : strtol()
Which among the given function does not return a value?
Options
A : strtoul()
B : strtol()
C : rand()
D : srand()
The calloc() function allocates space for an array of n objects, each of whose size is defined by size. Space is initialized to all bits zero.
Options
A : true
B : false
C :
D :
Which of the following is the correct syntax of the function strtoul()?
Options
A : unsigned long int strtoul(const char *n, char **ptr, int base)
B : unsigned long int strtoul(const char *n, char **ptr)
C : unsigned long int strtoul(const char *n)
D : int strtoul(const char *n)
Chemical Engineering Basics - Part 1 more Online Exam Quiz
C Multiple Choice Conditional Preprocessor Directives
C Multiple Choice Date Time Function
C Multiple Choice File Operations
C Multiple Choice Implementation Defined Limits
C Multiple Choice Mathematical Functions