Question 1 of 25
Hints left: 3
Q1
The sig argument specifies the signal, which may be any signal except . . . . . . . . and . . . . . . . .
Q2
Which of the following header declares mathematical functions and macros?
Q3
Select the correct statement.
Q4
Which function is called repeatedly by bsearch() to compare search elements against the elements in the array?
Q5
If the expression in void assert(int expression) is zero then a message is printed on stderr(standard error file).
Q6
A non-zero value is returned, if setjmp() returns from a longjmp() function call.
Q7
Which function restores the environment saved by the most recent invocation of the setjmp() macro in the same invocation of the program?
Q8
Which of the following is the correct description of EXIT_FAILURE?
Q9
What will be the output of the following C code? char str[]; strcpy(str, "Hello"); res = atof(str); printf("String value = %s, Float value = %f\n", str, res);
Q10
How many times can the macro setjmp() return?
Q11
Which of the following library functions returns the time in UTC (Greenwich mean time) format?
Q12
Correct code to turn assertions ON at various places throughout a source file is . . . . . . . .
Q13
A type whose alignment requirement is at least as large as that of every data type . . . . . . . .
Q14
Which of the following format specifiers is used to represent the hours in the 24 hour clock (0-23) format?
Q15
What is the name of the macro that is referred by assert macro defined in assert .h?
Q16
What members do the structure returned by function div() contains?
Q17
The header file stdarg.h defines a variable type . . . . . . . .
Q18
In the c library function void (*signal(int sig, void (*func)(int)))(int), which statement is true with respect to func?
Q19
. . . . . . . . variable type defined in the header stdlib.h is an integer type of the size of a wide character constant.
Q20
The minimum value of CHAR_BIT is equal to . . . . . . . .
Q21
What does the given C code do? double atan2 (double y, double x);
Q22
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); }
Q23
Which of the following macros is not defined?
Q24
What will be the output of the following C code? #include<stdio.h> #include<limits.h> main() { int d; d=CHAR_MIN; printf("%d",d); }
Q25
The . . . . . . . . function is used to convert the initial portion of the string pointed to by, to unsigned long int representation.