Question 1 of 25
Hints left: 3
Q1
What will be the output of the following C code, if the system date is 6/24/2017? #include<stdio.h> #include<stdlib.h> #include<time.h> int main() { time_t ct; time(&ct); printf("%s\n",(&ct)); }
Q2
How many macros are defined in the header file stdarg.h?
Q3
The C library function . . . . . . . . function converts the wide character to its multibyte representation.
Q4
A domain error occurs if x is negative and y is not an integral value for the function pow(double x, double y).
Q5
A less common use of setjmp.h is to create syntax similar to . . . . . . . .
Q6
What will be the output of the following C code? double x=1.2 printf("%.1lf", ceil(x));
Q7
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);
Q8
Which of the following is the correct syntax of the function strtoul()?
Q9
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)); }
Q10
Which function is called by macro assert to terminate the execution?
Q11
Which statement is correct work reference to endptr? double strtod(const char *nptr, char **endptr);
Q12
The macro which is used to find the maximum value of an unsigned integer is . . . . . . . .
Q13
Which of the following is not defined under the header file stddef.h?
Q14
The macro offset expands to a constant of type . . . . . . . .
Q15
What will be the output of the following C code? double log (double -x);
Q16
Which of the given function differs from the statement'errno is not neccessarily set on conversion error'?
Q17
The macro MB_LEN_MAX is used to find . . . . . . . .
Q18
Which of the following library functions is used to read location dependent information?
Q19
Which of the given statement is not true with respect to void longjmp( jmp-buf env, int val)?
Q20
The function computes the hyperbolic cosine of x.
Q21
void free(void *p) performs which of the following functions?
Q22
What will be the output of the following C code? double x=1.8; printf("%.2lf",floor(x));
Q23
LC_COLLATE affects strcoll() and strxfrm() functions.
Q24
atol(const char *str) Converts the string pointed to, by the argument str.
Q25
The pointer used in the mblen() function points to the . . . . . . . .