C - Files and Preprocessors Questions and Answers

Take Exam

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

41. The default setting of enumerator starts from

  • 0
  • 1
  • -1
  • any positive integer
Show Answer Report

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
Show Answer Report

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
Show Answer Report

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.
Show Answer Report

45. Identify the valid constant declaration(s);

  • volatile unsigned int clock;
  • volatile const unsigned int clock;
  • float const f;
  • both options b and c
Show Answer Report

46. Functions may use

  • varying number of parameters.
  • fixed number of parameters.
  • no argument.
  • at most five arguments.
Show Answer Report

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.
Show Answer Report

48. Identify the macro (s) defined in stdarg.h.

  • va_start
  • va_end
  • va_arg
  • all the above
Show Answer Report

49. Identify the trigraph sequence for #.

  • ??/
  • ??=
  • ??'
  • ??;
Show Answer Report

50. Identify the trigraph sequence for \.

  • ??/
  • ??=
  • ??'
  • ??!
Show Answer Report
Questions and Answers for Competitive Exams Various Entrance Test