Home > C Programming > Quizzes > C Programming Practice Test: Managing IO Operations
C Programming Practice Test: Managing IO Operations
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 16% Most missed: “Which of the following doesn’t require an & for the input in scanf()?”
C Programming Practice Test: Managing IO Operations
Time left 00:00
25 Questions

1. Escape sequences are prefixed with ________
2. What specifies the minimum number of characters to print after being padded with zeros or blank spaces?
3. What error will be generated on using incorrect specifier for the datatype being read?
4. Select the correct value of i from given options i=scanf('%d %d', &a, &b);
5. The type va_list in an argument list is used ________
6. What symbol is used to Left-justify within the data given field width?
7. The standard header _______ is used for variable list arguments (…) in C.
8. In a variable length argument function, the declaration “…” can _______
9. What is the return value of putchar()?
10. Which among the following is the odd one out?
11. A conversion specification %7.4f means ____________
12. What error is generated on placing an address operator with a variable in the printf statement?
13. What happens when zero flag is used with left justification?
14. Which of the following data-types are promoted when used as a parameter for an ellipsis?
15. _____ is an optional argument that gives the maximum number of characters to be read.
16. The syntax of the scanf() is scanf(“control string “, arg1,arg2,arg3,….,argn); the prototype of control string is ____________
17. What is the use of getchar()?
18. If by mistake you specify more number of arguments, the excess arguments will ____________
19. The syntax of printf() function is printf(“control string”, variable list) ;what is the prototype of the control string?
20. What is the purpose of sprintf?
21. Which of the following macro extracts an argument from the variable argument list (ie ellipsis) and advance the pointer to the next argument?
22. scanf() is a predefined function in______header file.
23. What are the Properties of the first argument of a printf() functions?
24. What is the purpose of va_end?
25. ________is used to define the type and the interpretation of the value of the corresponding argument.