Standard Library Functions MCQs

250 questionsC-ProgramPage 14 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 118easy
Which of the following is the correct description of EXIT_FAILURE?
Question 119easy
. . . . . . . . variable type defined in the header stdlib.h is an integer type of the size of a wide character constant.
Question 120easy
What will be the output of the following C code?
#include <assert.h> 
#include <stdio.h>  
void main() 
{ 
   int n=12; 
   char str[50]="";
   assert(n >= 10); 
   printf(" output: %d\n", n); 
   assert(str != NULL); 
   printf("output: %s\n", str); 
}
Advertisement
Question 121easy
What does the given C code do?
double atan2 (double y, double x);
Question 122easy
A type whose alignment requirement is at least as large as that of every data type . . . . . . . .
Question 123easy
Select the correct statement.
Advertisement
Question 124easy
If the expression in void assert(int expression) is zero then a message is printed on stderr(standard error file).
Question 125easy
Correct code to turn assertions ON at various places throughout a source file is . . . . . . . .
Question 126easy
The . . . . . . . . function is used to convert the initial portion of the string pointed to by, to unsigned long int representation.
Standard Library Functions MCQs with Answers & Solutions — C-Program | GrabStudy