C - Files and Preprocessors Questions and Answers
C Files and Preprocessors Questions with Answers are essential for mastering file handling, macros, and directives in C programming. As part of programming questions and answers for placement exams, this topic helps students understand real-world input/output operations and code optimization techniques. Frequently asked in TCS, Wipro, and Capgemini tests, these questions assess how well you manage data files and preprocess instructions efficiently. Practicing these C programming MCQs with solutions improves your coding proficiency and exam accuracy. Access free C file handling and preprocessor aptitude questions with explanations in PDF or attempt our online mock test.
C - Files and Preprocessors
Showing 10 of
96 questions
42. What is the value of CAR in the following statement ? enum vehicle {BUS, SCOOTER = 2, CAR, TRAIN = 5, AEROPLANE = 6}
- 0
- 1
- 3
- 4
43. Identify the correct statement (s).
- the values of an enumerator need not be distinct in the same enumeration type.
- the names of an enumerator in diferentr enumeration type must be distinct.
- the names of an enumerator must be different from other normal variables.
- all the above
44. The qualifier const
- defines a constant name
- keeps the value of a variable constant during execution of the program
- both options a and b
- does not keep the value of a variable constant.
45. Identify the valid constant declaration(s);
- volatile unsigned int clock;
- volatile const unsigned int clock;
- float const f;
- both options b and c
46. Functions may use
- varying number of parameters.
- fixed number of parameters.
- no argument.
- at most five arguments.
47. va_list is
- a mcro defined in stdarg.h
- a predefined data type in stdarg.h
- a macro defined in stdlib.h
- at most five arguments.
48. Identify the macro (s) defined in stdarg.h.
- va_start
- va_end
- va_arg
- all the above