Standard Library Functions MCQs

250 questionsC-ProgramPage 7 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 55easy
What will be the output of the following C code?
double x=1.8;
printf("%.2lf",floor(x));
Question 56easy
Which of the following is not defined under the header file stddef.h?
Question 57easy
Which of the following library functions is used to read location dependent information?
Advertisement
Question 58easy
The function computes the hyperbolic cosine of x.
Question 59easy
What will be the output of the following C code?
double log (double -x);
Question 60easy
What will be the output of the following C code? (By date we mean: date, month and year)
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
int main()
{
    time_t ct;
    time(&ct);
    printf("%s\n",ctime(&ct));
}
Advertisement
Question 61easy
What will be the output of the following C code?
char str[20];
str= "123546"; res= atof(str);
printf("String value = %s, Float value = %f\n", str, res);
Question 62easy
The C library function . . . . . . . . function converts the wide character to its multibyte representation.
Question 63easy
A domain error occurs if x is negative and y is not an integral value for the function pow(double x, double y).