Basic C Programming MCQ

Basic C Programming MCQ
21. If y is of integer type then the expressions 3 * (y - 8) / 9 and (y - 8) / 9 * 3 yield the same value if
  • y is an even number
  • y is an odd number
  • y - 8 is an integer multiple of 9
  • y - 8 is an integral multiple of 3
Show Answer
22. Integer division results in
  • truncation
  • rounding
  • overflow
  • none of the above
Show Answer
23. Which of the following comments about EOF are true ?
  • Its value is defined within stdio.h.
  • Its value is implementation depend
  • Its value can be negative
  • Its value should not equal the integer equivalent of any character
Show Answer
24. The value of an automatic variable that is declared but not initialized will be
  • 0
  • -1
  • unpredictable
  • none of the above
Show Answer
25. Choose the correct statements.
  • An identifier may start with an underscore.
  • An identifier may end with an underscore
  • IF is a valid identifier.
  • The number of significant characters in an identifier is implementation dependent
Show Answer
26. Choose the correct statements
  • Constant expressions are evalutated at compile time
  • String constants can be concatendated at compile time.
  • Size of array must be known at compile time.
  • None of the above
Show Answer
27. The const feature can be applied to
  • an identifier
  • an array
  • an array argument
  • none of the above
Show Answer
28. Which of the following operators takes only integer operands ?
  • +
  • *
  • /
  • %
Show Answer
29. In an expression involving II operator, evaluation
  • will be stopped if one of its components evaluates to false
  • will be stopped if one of its components evaluates to true
  • takes place from right to left
  • takes place from left to right
Show Answer
30. Pick the operators that associate from the left
  • +
  • ,
  • =
  • <
Show Answer
Questions and Answers for Competitive Exams Various Entrance Test