Home › AKTU PYQ › Programming for Problem Solving › PYQ Questions › Unit 3

Programming for Problem Solving Unit 3 – Loops Arrays Strings and Structures: AKTU previous year questions

8 AKTU questions from Unit 3 (Loops Arrays Strings and Structures) asked in 2026, tagged by marks, year and topic. In short: about 29 marks of every paper come from this unit; the most asked topic is Iteration and Loops (33 times); 3 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 3 previous year questions

  • Predict the output of below program. #include<stdio.h> int main() { int n; for(n = 7; n!=0; n--) printf("n = %d", n--); return 0; } (2 marks, 2026, Iteration and Loops)
  • Write the output of the following code: #include<stdio.h> int main() { int a = 0, i = 0, b; for (i = 0; i < 5; i++) { a++; if (i == 3) break; } printf("%d",a); return 0; } (2 marks, 2026, Iteration and Loops)
  • Define static and dynamic array. Write a C program that uses a structure to store and display details of an employee (ID, name, salary). (7 marks, 2026, Structure Union Enumerated Types)
  • Differentiate between structure and union with suitable example. (7 marks, 2026, Structure Union Enumerated Types)
  • Write a program to print the following pattern in C: **** *** ** * (7 marks, 2026, Iteration and Loops)
  • Explain the difference between while and do while loop. Write a C program to find the second largest element in an integer array of size n. (7 marks, 2026, Arrays)
  • Explain the difference between integer and string. Also write a program in C to remove all repeated characters from a string, keeping only the first occurrence. (7 marks, 2026, Character Arrays and Strings)
  • Create a structure in C language for keeping the records of the employees of an organization about their Name, Designation, Salary, Department and City of posting. Write program to enter records of 100 employees and display the names of those with salary more than 20,000. (7 marks, 2026, Structure Union Enumerated Types)

Most asked Unit 3 topics

  • Iteration and Loops – asked 33 times
  • Arrays – asked 19 times
  • Structure Union Enumerated Types – asked 12 times

Unit 3 question pattern

  • 2-mark questions: 2 asked in 2026
  • 7-mark questions: 6 asked in 2026
  • About 29 marks from Unit 3 in every paper
  • 3 questions were asked again in a later year

Unit 3 questions year by year

  • 2026: 8 Unit 3 questions asked (46 marks across that year's papers)