Standard Library Functions MCQs

250 questionsC-ProgramPage 4 of 28

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 28easy
What is the purpose of the 'isalpha' function in C?
Question 29easy
Which standard library function is used to open a file in C?
Question 30easy
What does the 'abs' function in C do?
Advertisement
Question 31easy
The C library macro type . . . . . . . . retrieves the next argument in the parameter list of the function with type.
Question 32easy
What will be the output of the following C code?
char str[20]; 
strcpy(str, "123456"); 
res = atoi(str);
printf("%s  %d\n", str, res);
Question 33easy
MB_CUR_MAX is not defined in stdlib.h.
Advertisement
Question 34easy
What is the type declared by the header file signal.h?
Question 35easy
The source filename and line number come from the preprocessor macros . . . . . . . . and . . . . . . . .
Question 36easy
What will the given C code do?
#include <stdlib.h> 
_Mbsave_Mbxlen={0};
int (mblen)(const char *s ,size_t n)
{
return(_Mbtowc(NULL s,n,&_Mbxlen));
}