Home › AKTU PYQ › Programming for Problem Solving › Important Questions › Unit 5

Programming for Problem Solving Unit 5 – Pointers File Handling and Preprocessors: important questions for AKTU

Unit 5 (Pointers File Handling and Preprocessors) questions that AKTU repeats most often. This unit carries about 28 marks per paper. Start with the repeated questions, then the most asked topics.

Most repeated Unit 5 questions

  • Discuss dynamic memory allocation. Explain calloc(), malloc(), realloc() and free() functions with suitable example. (7 marks, 2026, Pointers) – also asked in 2019, 2020, 2022, 2023, 2024, 2025
  • Explain the importance of pointers in C. Write a program in C to swap the values of two numbers entered by user using function call by reference method. (10 marks, 2019, Pointers) – also asked in 2020, 2021, 2022, 2023, 2024, 2025, 2026
  • Define various file operations in C. Write a program in C to count and print the number of characters in a file. (10 marks, 2019, File Handling) – also asked in 2020, 2021, 2022, 2023, 2024, 2025, 2026

Most important Unit 5 topic

  • Pointers (Unit 5: Pointers File Handling and Preprocessors) – asked 33 times in 2019, 2020, 2021, 2022, 2023, 2024, 2025, 2026

Most asked Unit 5 topics

  • Pointers – asked 33 times
  • File Handling – asked 18 times
  • C Preprocessors and Macros – asked 10 times

More Unit 5 previous year questions

  • List various file opening modes. (2 marks, 2026, File Handling)
  • Explain the use of command-line arguments (argc, argv) and show with an example how to access them in C. (7 marks, 2026, C Preprocessors and Macros)
  • List out various file operations and modes in C. Write a 'C' program to copy the content from one file to another file. (7 marks, 2026, File Handling)
  • Differentiate between malloc() and calloc(). (2 marks, 2025, Pointers)
  • Define Macros and its use in C Programming. (2 marks, 2025, C Preprocessors and Macros)

Unit 5 syllabus topics

  • Pointers
  • String Functions
  • File Handling
  • C Preprocessors and Macros