Question 1 of 25
Hints left: 3
Q1
Initial seed is . . . . . . . . for the function srand(unsigned int seed).
Q2
Which of the following statement is correct? double x, y, z; x = 5.123456; z= modf(x, *y);
Q3
Which macro retrieves the next argument in the parameter list of the function with type type?
Q4
If the result overflows, the function returns the value of the macro HUGE_VAL, carrying the same sign except for the . . . . . . . . function as the correct value of the function.
Q5
The macro void assert(int expression) allows the diagnostic information to be written in which of the following files?
Q6
void assert(int expression) when the expression is evaluated to true?
Q7
Is this right explanation to the given code? void *calloc(size_t n, size_t size) #n -- This is the number of elements to be allocated. #size -- This is the size of elements.
Q8
sqrt(x) function is not faster than the apparent equivalent pow(x,0.5).
Q9
The function computes the exponential function of x.
Q10
What will be the output of the following C code? #include <stdio.h> #include <limits.h> int main() { printf("The minimum value of LONG = %lf\n", LONG_MIN); return 0; }
Q11
Which of the following header file defines one function longjmp(), and one variable type jmp_buf?
Q12
The value of tm_isdst is . . . . . . . . when DST( Daylight Savings Time) is in effect, . . . . . . . . when DST is not in effect and . . . . . . . . when the DST status is unknown.
Q13
What will be the output of the following C code? char word[20 ] = "1.234555 WELCOME"; char *w; double dis; dis= strtod(word, &w); printf("The number is %lf\n", dis); printf("String is |%s|", w);
Q14
What will be the output of the following C code? int main(void) { int rc; rc = system("time"); exit(0); }
Q15
What will be the output of the following C code if the system time is 4:27 PM? #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,"%H %p %M minutes",ptr); puts(str); return 0; }
Q16
Which function returns the arc sine in the range [-pi/2, +pi/2] radians?
Q17
If the result underflow, the function returns zero.
Q18
Some types and macros defined under the header file stddef.h may be defined under other header files too.
Q19
The behavior is undefined if more than one call to the exit function is executed by a program.
Q20
Which header file should be included if a function has to be defined such that it can accept variable number of arguments?
Q21
The mbstowcs() function is used to return the number of array elements modified, not including a terminating zero code, if any.
Q22
RAND_MAX macro is the maximum value returned by the rand function.
Q23
What is returned by the function localeconv()?
Q24
longjmp() function is the only function defined under the header file setjmp.h?
Q25
Which of the following functions returns a pointer to a string representing the date and time stored in a structure?