Basic C Programming MCQ Questions and Answers

Take Exam

Basic C Programming MCQ questions with answers help candidates master the fundamentals of C language — one of the most popular programming languages for beginners and interview aspirants. These programming questions and answers focus on syntax, operators, loops, functions, and data handling. Practicing C programming MCQs strengthens logic and helps students perform better in technical assessments by TCS, Infosys, HCL, and other top recruiters. Each question is designed to test conceptual understanding and problem-solving skills, making it ideal for both practice and revision before coding interviews or placement exams.

Basic C Programming MCQ

Showing 10 of 198 questions

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 Report

22. Integer division results in

  • truncation
  • rounding
  • overflow
  • none of the above
Show Answer Report

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 Report

24. The value of an automatic variable that is declared but not initialized will be

  • 0
  • -1
  • unpredictable
  • none of the above
Show Answer Report

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 Report

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 Report

27. The const feature can be applied to

  • an identifier
  • an array
  • an array argument
  • none of the above
Show Answer Report

28. Which of the following operators takes only integer operands ?

  • +
  • *
  • /
  • %
Show Answer Report

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 Report

30. Pick the operators that associate from the left

  • +
  • ,
  • =
  • <
Show Answer Report
Questions and Answers for Competitive Exams Various Entrance Test