Standard Library Functions MCQs
Practice free Standard Library Functions multiple-choice questions with instant answer feedback and step-by-step solutions. Click an option to check yourself, reveal the full explanation, and work through all 250 questions — no login required.
Question 190easy
For the given math function, an error occurs if the arguments are not in the range [-1, +1].
double acos(double x);Question 191easy
Which of the following macros is defined under the header limits.h?
Question 192easy
A range error occurs if the result of the function cannot be represented as a value.
Advertisement
Question 193easy
Choose the correct statement.
Question 194easy
What will be the output of the following C code, given that the maximum value of signed char is 127 and that of unsigned char is 255.
#include<stdio.h>
#include<limits.h>
#define SCHAR_MAX
main()
{
printf("%d",SCHAR_MAX+1);
}Question 195easy
The . . . . . . . . function returns no value.
Advertisement
Question 196easy
What will be the output of the following C code?
char str[] ;
strcpy(str, "Hello");
res = atoi(str);
printf(" %s %d\n", str, res);Question 197easy
What will be the output of the following C code?
void main()
{
div_t res;
res = div(34, 4);
printf("quotient part = %d\n", res.quot);
printf("remainder part = %d\n", res.rem);
}Question 198easy
Which function returns a pseudo-random integer?