Programming for Problem Solving (BCS101) AKTU previous year questions 2019–2026
Every Programming for Problem Solving question from 14 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)
- What is the purpose of a linker and loader in program execution? (2 marks, 2026, Language Processors)
- Draw the memory hierarchy of a computer. (2 marks, 2026, Components of Computer System)
- Explain Syntax and Logical errors with suitable example. (2 marks, 2026, Structure of C Program)
- Name any four fundamental data types in C. (2 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)
- Define Explicit type conversion with suitable code. (2 marks, 2026, Type Conversion Mixed Operands)
- Give the difference between else if and switch case statement. Also convert the following program by switch statement #include <stdio.h> int main() { int i ; scanf(“%d”,&i) if (i == 10) printf("Not Eligible"); else if (i == 15) printf("wait for three years"); else if (i == 20) printf("You can vote"); else printf("Not a valid age"); return 0; } (7 marks, 2026, Conditional Branching)
- Write a program to discuss the use of break in a switch case statement. (7 marks, 2026, Conditional Branching)
Unit 3: Loops Arrays Strings and Structures – AKTU PYQs
- 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)
Unit 4: Functions and Searching Sorting Algorithms – AKTU PYQs
- State the difference between call by value and call by reference. (2 marks, 2026, Functions)
- 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)