Quiz Space

Programming in C · End Term · 21 Dec 2025 · September 2025 term

Programming in C End Term 21 Dec 2025 — Question 19

Question 19

+4 marksOne correct option

What will be the output of the following program?

  1. A

    a P

  2. B

    a r

  3. C

    a e

  4. D

    e p

Show answer

Correct answer

  • B

    a r

Question 19 of 25 in the IIT Madras BS Programming in C (Programming in C) End Term paper sat on 21 Dec 2025, in the September 2025 term (Programming In C 18 Dec 25). It carries 4 marks.

More questions from this paper

  1. Q1Which of the following statements are true about the switch statement in C?
  2. Q2What will be the output of the following program?
  3. Q3What will be the output of the following program?
  4. Q4What will be the output of the following program?
  5. Q5Consider the following program. Assuming each function must complete before its result is used in the next function cal…
  6. Q6Which of the following is true about recursion in C?
  7. Q7Which of the following correctly declares and initializes a pointer to a float variable f?
  8. Q8What will be the output of the following program?
  9. Q9What will be the output of the following program?
  10. Q10Consider the following program. If the output is 450, which of the following lines could replace the missing statement?
  11. Q11Which operator is used in C for dynamic memory deallocation?
  12. Q12What will be the output of the following program?
  13. Q13What will be the output of the following program?
  14. Q14Which of the following are valid storage classes in C?
  15. Q15What will be the output of the following program?
  16. Q16What will be the output of the following program?
  17. Q17Which keyword in C prevents a variable from being modified after initialization?
  18. Q18What will be the output of the following program?
  19. Q20Which of the following are valid file handling modes in C?
  20. Q21Consider the following program. If data.txt is empty before execution, what will be printed?
  21. Q22What will be the output of the following program?
  22. Q23In macros, which operator is used to substitute the actual argument as a string?
  23. Q24What will be the output of the following program?
  24. Q25What will be the output of the following program?