Question 1 of 25
Hints left: 3
Q1
Which of the given function is used for searching?
Q2
MB_CUR_MAX is not defined in stdlib.h.
Q3
Which standard library function is used to open a file in C?
Q4
Which of the given C function can be used instead of the apparent identity pointed to by y? int x=1; double y= 0.5 * (exp (x) + exp (-x));
Q5
What will be the output of the following C code? #include <assert. h> #include <stdio . h> #include <stdlib.h> void -Assert (char *mesg) { fputs (mesg, stderr); fputs (" -- assertion failed\n" , stderr); abort () ; }
Q6
The ldexp() function multiplies a floating-point number by an integral power of 2.
Q7
Which is the correct declaration of macro assert?
Q8
Which line from the given code is the passive form? #undef assert #ifdef NDEBUG #define assert (test) ( (void) 0) #else #define assert (test) #endif
Q9
The library function clock() returns the number of . . . . . . . . elapsed since the start of the program.
Q10
Which among the given header file is used to handle different signals reported during program execution?
Q11
The C library macro type . . . . . . . . retrieves the next argument in the parameter list of the function with type.
Q12
Which of the given statement is true with respect to the function atexit()?
Q13
. . . . . . . . defines the minimum value for a short integer.
Q14
Which is the true statement with respect to the function longjmp()?
Q15
What will the given C code do? #include <stdlib.h> _Mbsave_Mbxlen={0}; int (mblen)(const char *s ,size_t n) { return(_Mbtowc(NULL s,n,&_Mbxlen)); }
Q16
What is the purpose of the 'isalpha' function in C?
Q17
What will be the output of the following C code? char str[20]; strcpy(str, "123456"); res = atoi(str); printf("%s %d\n", str, res);
Q18
What is the type declared by the header file signal.h?
Q19
setjmp takes a jmp_buf type and different other type variables as input.
Q20
The header file assert.h of the C Standard Library defines . . . . . . . . macro.
Q21
The . . . . . . . . function converts the initial portion of the string pointed to by, to int representation.
Q22
What does the 'abs' function in C do?
Q23
The source filename and line number come from the preprocessor macros . . . . . . . . and . . . . . . . .
Q24
Select the right statement with reference to malloc() and calloc().
Q25
What is the name of the function that is used to convert multibyte character to wide character?