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

Programming for Problem Solving (BCS101) AKTU previous year questions 2020–2026

Every Programming for Problem Solving question from 12 AKTU papers, tagged by unit, topic and marks. A few recent questions from each unit are listed below; open the page to filter by unit, topic or mark type.

Unit 1: Introduction to Computer System and C Basics – AKTU PYQs

  • Write the fundamental data types used in C Programming, along with their range, byte size and format specifier. (2 marks, 2026, Data Types Variables Storage)
  • Draw the memory hierarchy of a computer. (2 marks, 2026, Components of Computer System)
  • Differentiate between compiler and interpreter. Also differentiate between syntax error and logical error. (7 marks, 2026, Language Processors)
  • Write an algorithm to calculate sum of digits of a number entered by the user. (7 marks, 2026, Algorithm Representation)
  • Discuss various storage classes used in C with examples. (7 marks, 2026, Data Types Variables Storage)

Unit 2: Operators Expressions and Conditional Branching – AKTU PYQs

  • What are logical operators? (2 marks, 2026, Operators and Expressions)
  • Differentiate between implicit and explicit type conversion in C. (2 marks, 2026, Type Conversion Mixed Operands)
  • Write a program to discuss the use of break in a switch case statement. (7 marks, 2026, Conditional Branching)
  • What do you mean by operator precedence and associativity in C. Explain with suitable example. (7 marks, 2026, Operators and Expressions)
  • Write the significance of Operators in Programming language. (2 marks, 2025, Operators and Expressions)

Unit 3: Loops Arrays Strings and Structures – AKTU PYQs

  • 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)
  • 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)
  • 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)
  • Mention the use of break and continue in loops. (2 marks, 2025, Iteration and Loops)

Unit 4: Functions and Searching Sorting Algorithms – AKTU PYQs

  • What is a recursive function? Explain with an example. (2 marks, 2026, Functions)
  • Differentiate between call by value and call by reference parameter passing in C using example. (7 marks, 2026, Functions)
  • What is recursion? Write a program to find factorial of n numbers using recursion. (7 marks, 2026, Functions)
  • Write a program in C to implement selection sort. (7 marks, 2026, Sorting Algorithms)
  • Define recursion with an example. (2 marks, 2025, Functions)

Unit 5: Pointers File Handling and Preprocessors – AKTU PYQs

  • 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)