Programming for Problem Solving (BCS101 / BCS201) Important Questions
AKTU B.Tech · 1st Year · Exam 2026-27. Worked out from 16 real papers, 2018-19 to 2025-26.
- 16AKTU papers analysed
- 15must-do topics
- 17repeated 2-mark questions
The PDF has every topic with the years it came, a unit-wise plan and the sources. Free. Share it with your class.
Most likely question in each unit
| Unit | Most likely | Backup topics |
|---|---|---|
| 1Computer basics, algorithms, flowcharts, data types, storage classes | Storage classes (11/16) | Computer block diagram (10/16) · Algorithm + flowchart for greatest of 3 |
| 2Operators, expressions, type conversion, if-else, switch | Switch case & break: calculator / vowel program (13/16) | Operator precedence & associativity (9/16) · Types of operators / bitwise (13/16) |
| 3Loops, arrays, strings, structures & unions | Pattern printing (12/16) | Matrix multiplication (11/16, due) · Structure records program |
| 4Functions, recursion, searching & sorting | Recursion: factorial / Fibonacci / GCD (13/16) | Bubble or selection sort · Call by value vs reference |
| 5Pointers, dynamic memory, linked list, file handling, macros | Dynamic memory allocation (14/16) | File handling: copy file / count words (15/16) |
Must-do topics
These came in most of the 16 papers. Prepare them first.
Algorithm + flowchart (greatest of 3, sum/reverse of digits, factorial, palindrome)
came in 15 of 16 papersUnit 1 · 2018-19 to 2025-26
How to answer: Learn flowchart symbols (oval, parallelogram, rectangle, diamond, arrows), characteristics of an algorithm, and algorithm vs flowchart vs pseudocode. Practise 5 flowcharts: greatest of 3, sum of digits, reverse number, factorial, prime.
Last asked (2025-26 (carry-over), Section C): How do we convert an algorithm into a program; relation between source code, object code and executable code?
File handling (modes + copy / count / read-write programs)
came in 15 of 16 papersUnit 5 · 2018-19 to 2025-26
How to answer: Modes r, w, a, r+, w+, a+ (table). Functions fopen, fclose, fgetc, fputc, fprintf, fscanf, fgets, fputs, feof. Programs: copy one file to another, count characters/words/lines, read & display a file, write lines to a file.
Last asked (2025-26 (carry-over), Section B): Explain file handling in C and list important file I/O functions with their uses.
Dynamic memory allocation (malloc, calloc, realloc, free)
came in 14 of 16 papersUnit 5 · 2018-19 to 2025-26
How to answer: Static vs dynamic allocation. Syntax of all 4 functions; malloc vs calloc (garbage vs 0, 1 vs 2 args). Program: allocate n integers, read them, print sum, free().
Last asked (2025-26, Section B): Explain DMA. Program: allocate memory for one integer using malloc(), assign, print and free it.
Types of operators (arithmetic, relational, logical, bitwise, ternary)
came in 13 of 16 papersUnit 2 · 2020-21 to 2025-26
How to answer: List all operator types with one example each. Bitwise: &, |, ^, ~, > - practise 10>>2 = 2, 20b) ? a : b.
Last asked (2025-26 (carry-over), Section C): What are logical operators and bitwise operators in C, and how are they used?
Switch case & break (calculator / vowel / even-odd programs)
came in 13 of 16 papersUnit 2 · 2018-19 to 2025-26
How to answer: Syntax of switch with break and default. Show what happens WITHOUT break (fall-through). Programs: menu-driven calculator (+ - * /), vowel or consonant, even/odd. Also: if-else-if ladder vs switch.
Last asked (2025-26 (carry-over), Section C): How does the switch statement work, and what is the role of break and default?
Recursion (factorial, Fibonacci, GCD)
came in 13 of 16 papersUnit 4 · 2018-19 to 2025-26
How to answer: Define recursion + base case importance + recursion vs iteration. Programs: factorial, Fibonacci (nth term & series), GCD (trace gcd(48,18) -> gcd(18,12) -> gcd(12,6) -> gcd(6,0) = 6), sum/product of digits.
Last asked (2025-26, Section C): Define recursive function. Write a recursive function to compute GCD; trace gcd(48, 18).
Pattern printing programs (star pyramid / diamond / number triangle)
came in 12 of 16 papersUnit 3 · 2018-19 to 2025-26
How to answer: Master nested loops: outer loop = rows, inner loops = spaces then stars. Practise: right triangle, pyramid, inverted pyramid, diamond, number triangle (1, 12, 123), Floyd's triangle.
Last asked (2025-26, Section C): Write a program to print the following pattern in C.
Storage classes in C (auto, register, static, extern)
came in 11 of 16 papersUnit 1 · 2020-21 to 2025-26
How to answer: Make a table: storage class | storage place | default value | scope | lifetime. Give one small code example for each (static counter example is the favourite).
Last asked (2025-26, Section B): Describe the four storage classes in C. Explain their scope and lifetime with suitable examples.
Matrix multiplication (2-D arrays)
came in 11 of 16 papersUnit 3 · 2018-19 to 2024-25 · DUE: missing in last 3 papers
How to answer: Read r1,c1,r2,c2, check c1 == r2, triple loop: c[i][j] += a[i][k]*b[k][j]. Also learn transpose and matrix addition (same loops, easier). Not asked in last 3 papers = DUE.
Last asked (2024-25, Section C): Write a Program to find the multiplication of two n*n matrix.
Call by value vs call by reference (swap program)
came in 11 of 16 papersUnit 4 · 2018-19 to 2025-26
How to answer: Table of differences + swap program twice: with values (no change in main) and with pointers *a, *b (values swapped). Also learn function types, prototype, syntax.
Last asked (2025-26 (carry-over), Section A): Explain call by value and call by reference.
Macros & preprocessor directives
came in 11 of 16 papersUnit 5 · 2018-19 to 2025-26
How to answer: #include, #define, #ifdef/#ifndef, #undef. Macro as constant (#define PI 3.14) and as function (#define SQUARE(x) ((x)*(x))). Macro vs function. Program: area of circle using macro.
Last asked (2025-26 (carry-over), Section C): What are preprocessors in C, and how are macros and command-line arguments used?
Block diagram / architecture of a digital computer
came in 10 of 16 papersUnit 1 · 2018-19 to 2025-26
How to answer: Draw Input -> CPU (ALU + CU + registers) -> Output with Memory (primary/secondary) below. Explain each block in 2-3 lines. Add a line on the Operating System's role.
Last asked (2025-26 (carry-over), Section B): What are the main components of a computer system, and how do they interact with each other?
Self-referential structures & linked list (concept)
came in 10 of 16 papersUnit 5 · 2018-19 to 2025-26
How to answer: struct node { int data; struct node *next; }; Draw nodes with arrows ending in NULL. Advantages of linked list over array. Know singly vs doubly linked list diagram. (No implementation needed as per syllabus.)
Last asked (2025-26 (carry-over), Section A): What are self-referential structures?
Operator precedence & associativity
came in 9 of 16 papersUnit 2 · 2018-19 to 2025-26
How to answer: Precedence table (unary > * / % > + - > relational > logical > ternary > assignment). Associativity = direction (L->R or R->L) used when precedence is SAME. Solve one expression step by step, e.g. x = 5*2 - 8/4 + 3.
Last asked (2025-26, Section C): What is meant by operator precedence and associativity? Evaluate the expression step by step.
Bubble sort
came in 8 of 16 papersUnit 4 · 2018-19 to 2024-25
How to answer: Program + dry run on a given list (show each pass). Time complexity: O(n^2) worst/avg, O(n) best. Compare with selection & insertion sort.
Last asked (2024-25, Section C): Explain bubble sort with example and write its C implementation.
High-chance topics
- Array programs (largest, second largest, average, odd/even count)Unit 3 · came in 10 of 16 papers
- Compiler, interpreter, assembler, linker, loader & program execution stagesUnit 1 · came in 9 of 16 papers
- Data types: size, range & format specifierUnit 1 · came in 8 of 16 papers
- Type conversion vs type casting (implicit vs explicit)Unit 2 · came in 8 of 16 papers
- Number programs (prime, palindrome, Armstrong, reverse, sum of digits, series)Unit 3 · came in 8 of 16 papers
- Structure programs (records of employees / customers / books / students)Unit 3 · came in 8 of 16 papers
- Selection sort / insertion sortUnit 4 · came in 8 of 16 papers
- Pointers (declaration, pointer to pointer, pointer arithmetic)Unit 5 · came in 8 of 16 papers
- while vs do-while / entry vs exit controlled loopsUnit 3 · came in 7 of 16 papers
- Linear search vs binary searchUnit 4 · came in 7 of 16 papers
- If-else programs (greatest of 3/4, leap year, grades, bill, insurance)Unit 2 · came in 6 of 16 papers
- Strings & string functionsUnit 3 · came in 5 of 16 papers
- Structure vs union (and enum)Unit 3 · came in 5 of 16 papers
- Syntax error vs logical error (types of errors)Unit 1 · came in 4 of 16 papers
- Command-line arguments (argc, argv)Unit 5 · came in 3 of 16 papers
Repeated 2-mark questions (Section A)
- while vs do-while / entry vs exit controlled loopasked 6 times
- Draw the memory hierarchy of a computerasked 5 times
- Implicit vs explicit type conversionasked 4 times
- Linear vs binary search complexityasked 4 times
- Algorithm vs flowchart vs pseudocodeasked 4 times
- Define recursion / importance of base caseasked 4 times
- Structure of a linked list nodeasked 4 times
- Structure vs unionasked 3 times
- List file opening modesasked 3 times
- Define a macro with an exampleasked 3 times
- Fundamental data types with range & format specifierasked 3 times
- Use of break and continueasked 3 times
- Syntax error vs logical errorasked 3 times
- malloc() vs calloc() / use of free()asked 2 times
- Tokens / identifiers vs keywordsasked 2 times
- Pointer to pointer / pointer arithmeticasked 2 times
- Compiler vs interpreter / linker & loaderasked 2 times
The 10 programs to practise by hand
- Pyramid / diamond star pattern
- Matrix multiplication
- Factorial & Fibonacci using recursion
- GCD using recursion
- Bubble sort (with dry run) & selection sort
- Swap using call by reference
- Calculator using switch
- Sum of n numbers using malloc/calloc
- Copy one file to another / count words & lines
- Structure: N employee records, print those with salary > X
Get the Programming for Problem Solving PDF
Not official AKTU material. The important questions are based on 16 previous year papers (2018-19 to 2025-26). The real paper can differ. Syllabus cross-checked with the BCS101/BCS201 unit-wise syllabus and MIET's CO-wise AKTU question bank. Research date: 20 Nov 2026.
More subjects: all B.Tech papers. Practise coding for free on Kinetic CodeGuide.