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 29 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 34 times in 2019, 2020, 2021, 2022, 2023, 2024, 2025, 2026
  • File Handling (Unit 5: Pointers File Handling and Preprocessors) – asked 20 times in 2019, 2020, 2021, 2022, 2023, 2024, 2025, 2026
  • C Preprocessors and Macros (Unit 5: Pointers File Handling and Preprocessors) – asked 12 times in 2019, 2020, 2021, 2022, 2023, 2024, 2025, 2026

Most asked Unit 5 topics

  • Pointers – asked 34 times
  • File Handling – asked 20 times
  • C Preprocessors and Macros – asked 12 times

More Unit 5 previous year questions

  • What is a macro? Give an example of a simple macro definition. (2 marks, 2026, C Preprocessors and Macros)
  • 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)
  • Explain the concept of dynamic memory allocation. Write a C program that dynamically allocates memory for one integer using malloc (), assigns a value, prints it, and then frees the memory. (7 marks, 2026, Pointers)
  • Explain the different file opening modes in C (r, w, a, r+, w+, a+). What is the difference between text files and binary files? Give one example of opening a file in “append” mode. (7 marks, 2026, File Handling)

Unit 5 syllabus topics

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