Question 1 of 25
Hints left: 3
Q1
The . . . . . . . . macro shall be invoked before any access to the unnamed arguments.
Q2
What will be the output of the following C code if the system time is 1:52 PM (Sunday)? #include<stdio.h> #include<time.h> int main() { struct tm *ptr; time_t t; char str[100]; t = time(NULL); ptr = localtime(&t); strftime(str,100,"%I",ptr); puts(str); return 0; }
Q3
What are the contents of the register?
Q4
Select the correct declaration of setjmp().
Q5
The macro definition of INT_MIN is . . . . . . . .
Q6
Which among the given function does not return a value?
Q7
Which macro saves the current environment into the variable environment for later use by the function longjmp().
Q8
size_t is of . . . . . . . . type.
Q9
The header file setjmp.h is used to . . . . . . . .
Q10
Correct code to turn assertions OFF at various places throughout a source file is . . . . . . . .
Q11
mblen() function returns 0,if a null wide character was recognized. It returns -1 if an invalid multi-byte sequence was encountered.
Q12
A function is declared as sqrt(-x) under the header file math.h, what will the function return?
Q13
The number of bytes contained in the multibyte character pointed to by a character is . . . . . . . .
Q14
What will be the output of the following C code if the value of UCHAR_MAX is 127? #include<stdio.h> #include<limits.h> int main() { int d; d=CHAR_MAX; printf("%c",d); }
Q15
Which macro can be used to detect and report exceptional conditions?
Q16
Which of the following is defined under the header file time.h?
Q17
What will the code display on compiling? void funccall() { printf("this is funccall\n"); } void main () { atexit(funccall); printf("program starts\n"); printf("program ends\n"); }
Q18
void (*signal(int sig, void (*func)(int)))(int);If the value of func is SIG_IGN then . . . . . . . .
Q19
What is the role of the given C function? void va_end(va_list ap)
Q20
Name the function that breaks a floating-point number into a normalized fraction and an integral power of 2.
Q21
Which of the following is the correct code?
Q22
double . . . . . . . . (double x, double y) computes the floating-point remainder of x/y.
Q23
Which statement is true regarding abs() and labs()?
Q24
What is the function of the void *realloc(void *str, size-t size);?
Q25
What will be the output of the following C code if the system date is 6/2/2017(Friday)? #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_wday); return 0; }