Standard Library Functions MCQs

250 questionsC-ProgramPage 18 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 154easy
What error occurs if the magnitude of x is too large in sinh(double x)?
Question 155easy
What will be the output of the following C code if the current system date is 6/22/2017?
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
typedef struct tm tm;
int main()
{
    time_t ct;
    time(&ct);
    tm *mt=localtime(&ct);
    printf("%d\n",mt-> tm_year);
}
Question 156easy
The cos function computes the cosine of x.
Advertisement
Question 157easy
Which of the following format specifiers is used to represent the name of the time zone?
Question 158easy
Which macro is used in the setlocale() function?
Question 159easy
The value returned by the library function mktime(), on failure is . . . . . . . .
Advertisement
Question 160easy
Which of the following functions decomposes the input string into three pans: an initial, possibly empty, sequence of white-space characters?
Question 161easy
Which function will return the quotient and remainder on division of numerator with denominator?
Question 162easy
What will be the output of the following C code if it is executed on 2nd January, 2017 (system date)?
#include<stdio.h>
#include<time.h>
int main()
{
    struct tm *local, *gm;
    time_t t;
    t=time(NULL);	
    local=localtime(&t);
    printf("%d",local->tm_yday);
    return 0;
}