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