Programming for Problem Solving Unit 5 – Pointers File Handling and Preprocessors: AKTU previous year questions
63 AKTU questions from Unit 5 (Pointers File Handling and Preprocessors) asked in 2019–2026, tagged by marks, year and topic. In short: about 28 marks of every paper come from this unit; the most asked topic is Pointers (33 times); 56 questions came back in a later year. The latest ones are listed below; on the page you can filter them by 2-mark or long questions, topic and repeats.
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)
- Discuss dynamic memory allocation. Explain calloc(), malloc(), realloc() and free() functions with suitable example. (7 marks, 2026, Pointers)
- 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)
- Explain the use and importance of Linked list in Programming. (7 marks, 2025, Pointers)
- Write a C program to reverse a string entered by the user. (7 marks, 2025, String Functions)
- Write a C program to read and display contents of a file. (7 marks, 2025, File Handling)
- Define DMA. Write a program to allocate the run time memory and find the sum of all the numbers entered by the user within that memory. (7 marks, 2025, Pointers)
- Explain self-referential structures and their use in linked list. (7 marks, 2025, Pointers)
- Define Pointer. Discuss the self referential pointer with example. (7 marks, 2025, Pointers)
Most asked Unit 5 topics
- Pointers – asked 33 times
- File Handling – asked 18 times
- C Preprocessors and Macros – asked 10 times
Unit 5 question pattern
- 2-mark questions: 23 asked in 2019–2026
- 7-mark questions: 22 asked in 2019–2026
- 10-mark questions: 18 asked in 2019–2026
- About 28 marks from Unit 5 in every paper
- 56 questions were asked again in a later year
Unit 5 questions year by year
- 2026: 4 Unit 5 questions asked (23 marks across that year's papers)
- 2025: 8 Unit 5 questions asked (46 marks across that year's papers)
- 2024: 10 Unit 5 questions asked (50 marks across that year's papers)
- 2023: 11 Unit 5 questions asked (57 marks across that year's papers)
- 2022: 15 Unit 5 questions asked (102 marks across that year's papers)
- 2021: 5 Unit 5 questions asked (34 marks across that year's papers)
- 2020: 5 Unit 5 questions asked (34 marks across that year's papers)
- 2019: 5 Unit 5 questions asked (34 marks across that year's papers)