Home > C Programming > Quizzes > C Programming Practice Test: C Library
C Programming Practice Test: C Library
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 0% Most missed: “Select the right statement with reference to malloc() and calloc().”
Quiz on mathematical functions, general utilities, diagnostics, variable argument lists, non local jumps, localization, signal handling, standard definition, implementation defined limits, date and time functions. A C library is a collection of pre-defined functions and macros that can be used to perform common tasks in C programming. These libraries are typically written in C and are available for use by any C program. There are many different C libraries available, both free and commercial. Some of the most popular C libraries include: The C Standard Library: This is the most basic C... Show more
C Programming Practice Test: C Library
Time left 00:00
25 Questions

1. A type whose alignment requirement is at least as large as that of every data type ____________
2. What does the given C code do?
double atan2 (double y, double x);
3. What error occurs if the magnitude of x is too large in sinh(double x)?
4. When we use multiple alignas specifiers in the same declaration, the ____________ one is used.
5. Select the macro that abnormally terminates the program.
6. For the given math function, an error occurs if the arguments are not in the range [-1, +1].
double acos(double x);
7. Which function searches an environmenr list that are provided by the host environment?
8. Which of the following functions decomposes the input string into three pans: an initial, possibly empty, sequence of white-space characters?
9. Which of the following is not defined under the header file stddef.h?
10. Which statement is true with respect to RAND_MAX?
11. The assert macro returns__________value.
12. Which macro affects the strftime() function?
13. The source filename and line number come from the preprocessor macros ________ and ______
14. Which function returns a pseudo-random integer?
15. Which is the correct declaration of macro assert?
16. How many times can the macro setjmp() return?
17. What is the role of the given C function?
void va_end(va_list ap)
18. void free(void *p) performs which of the following functions?
19. The C library function _____________function converts the wide character to its multibyte representation.
20. The behavior is undefined if more than one call to the exit function is executed by a program.
21. The mbstowcs() function is used to return the number of array elements modified, not including a terminating zero code, if any.
22. What is returned by the function localeconv()?
23. Choose the correct statement.
24. The sig argument specifies the signal, which may be any signal except _______ and _________
25. The abs() function computes the absolute value __________