C - Files and Preprocessors Questions and Answers

Practice Mode
Showing 10 of 96 questions
Q41
The default setting of enumerator starts from
  • A 0
  • B 1
  • C -1
  • D any positive integer
Answer: Option C
Q42
What is the value of CAR in the following statement ? enum vehicle {BUS, SCOOTER = 2, CAR, TRAIN = 5, AEROPLANE = 6}
  • A 0
  • B 1
  • C 3
  • D 4
Answer: Option C
Q43
Identify the correct statement (s).
  • A the values of an enumerator need not be distinct in the same enumeration type.
  • B the names of an enumerator in diferentr enumeration type must be distinct.
  • C the names of an enumerator must be different from other normal variables.
  • D all the above
Answer: Option D
Q44
The qualifier const
  • A defines a constant name
  • B keeps the value of a variable constant during execution of the program
  • C both options a and b
  • D does not keep the value of a variable constant.
Answer: Option B
Q45
Identify the valid constant declaration(s);
  • A volatile unsigned int clock;
  • B volatile const unsigned int clock;
  • C float const f;
  • D both options b and c
Answer: Option A
Q46
Functions may use
  • A varying number of parameters.
  • B fixed number of parameters.
  • C no argument.
  • D at most five arguments.
Answer: Option A
Q47
va_list is
  • A a mcro defined in stdarg.h
  • B a predefined data type in stdarg.h
  • C a macro defined in stdlib.h
  • D at most five arguments.
Answer: Option A
Q48
Identify the macro (s) defined in stdarg.h.
  • A va_start
  • B va_end
  • C va_arg
  • D all the above
Answer: Option D
Q49
Identify the trigraph sequence for #.
  • A ??/
  • B ??=
  • C ??'
  • D ??;
Answer: Option A
Q50
Identify the trigraph sequence for \.
  • A ??/
  • B ??=
  • C ??'
  • D ??!
Answer: Option A
Questions and Answers for Competitive Exams Various Entrance Test