Programming for Problem Solving PYQ 2025-26 AKTU Question Paper

AKTU · BTECH · Semester 1, 2 · Programming for Problem Solving · Session 2025-26 · PYQ

AKTU Programming for Problem Solving previous year question paper 2025-26 for B.Tech Semester 1/2. Covers Introduction to Computer System and C Basics…

Open the interactive reader to study this resource on AcademicArk.

Programming for Problem Solving AKTU syllabus

  1. Unit 1: Introduction to Computer System and C Basics
  2. Unit 2: Operators Expressions and Conditional Branching
  3. Unit 3: Loops Arrays Strings and Structures
  4. Unit 4: Functions and Searching Sorting Algorithms
  5. Unit 5: Pointers File Handling and Preprocessors

Questions in Programming for Problem Solving AKTU PYQ 2025-26

  1. Q1a. Write the fundamental data types used in C Programming, along with their range, byte size and format specifier. (2 marks, 2025-26)
  2. Q1a. What is the purpose of a linker and loader in program execution? (2 marks, 2025-26)
  3. Q1b. Draw the memory hierarchy of a computer. (2 marks, 2025-26)
  4. Q1b. Explain Syntax and Logical errors with suitable example. (2 marks, 2025-26)
  5. Q1c. What are logical operators? (2 marks, 2025-26)
  6. Q1c. 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, 2025-26)
  7. Q1d. Differentiate between implicit and explicit type conversion in C. (2 marks, 2025-26)
  8. Q1d. State the difference between call by value and call by reference. (2 marks, 2025-26)
  9. Q1e. 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, 2025-26)
  10. Q1e. What is a macro? Give an example of a simple macro definition. (2 marks, 2025-26)
  11. Q1f. What is a recursive function? Explain with an example. (2 marks, 2025-26)
  12. Q1f. Name any four fundamental data types in C. (2 marks, 2025-26)
  13. Q1g. List various file opening modes. (2 marks, 2025-26)
  14. Q1g. Define Explicit type conversion with suitable code. (2 marks, 2025-26)
  15. Q2a. Differentiate between compiler and interpreter. Also differentiate between syntax error and logical error. (7 marks, 2025-26)
  16. Q2a. Describe the four storage classes in C. Explain their scope and lifetime with suitable examples. (7 marks, 2025-26)
  17. Q2b. Write an algorithm to calculate sum of digits of a number entered by the user. (7 marks, 2025-26)
  18. Q2b. 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, 2025-26)
  19. Q2c. Differentiate between structure and union with suitable example. (7 marks, 2025-26)
  20. Q2c. 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… (7 marks, 2025-26)
  21. Q2d. Differentiate between call by value and call by reference parameter passing in C using example. (7 marks, 2025-26)
  22. Q2d. Write a detailed note on the stages of program execution: Preprocessing, Compilation, Assembly, Linking, and Loading. Mention the role of each tool involved (7 marks, 2025-26)
  23. Q2e. Explain the use of command-line arguments (argc, argv) and show with an example how to access them in C. (7 marks, 2025-26)
  24. Q2e. Explain the concept of dynamic memory allocation. Write a C program that dynamically allocates memory for one integer using malloc (), assigns a value, prints it, and then frees the memory. (7 marks, 2025-26)
  25. Q3a. Discuss various storage classes used in C with examples. (7 marks, 2025-26)
  26. Q3a. Explain different types of errors in C language. Also draw a flowchart and write an algorithm to calculate the factorial of a given number. (7 marks, 2025-26)
  27. Q3b. Write an algorithm to find the greatest of three numbers. Also draw the flowchart for the algorithm. (7 marks, 2025-26)
  28. Q3b. Explain the basic structure of a computer system. Describe the functions of CPU, memory, input devices, and output devices. (7 marks, 2025-26)
  29. Q4a. Write a program to discuss the use of break in a switch case statement. (7 marks, 2025-26)
  30. Q4a. Explain the different types of operators in C. Write a C program that checks whether an entered character is a vowel or a consonant using a switch-case statement. (7 marks, 2025-26)
  31. Q4b. What do you mean by operator precedence and associativity in C. Explain with suitable example. (7 marks, 2025-26)
  32. Q4b. What is meant by operator precedence and associativity? Evaluate the following expression step by step, clearly showing the order of operations: x = 5 * 2 - 8 / 4 + 3 > 6 && 1 (7 marks, 2025-26)
  33. Q5a. Write a program to print the following pattern in C: **** *** ** * (7 marks, 2025-26)
  34. Q5a. 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, 2025-26)
  35. Q5b. 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, 2025-26)
  36. Q5b. 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, 2025-26)
  37. Q6a. What is recursion? Write a program to find factorial of n numbers using recursion. (7 marks, 2025-26)
  38. Q6a. Define recursive function. Write a recursive function to compute the GCD of two numbers. Trace the function call for gcd(48, 18) and show the intermediate recursion steps. (7 marks, 2025-26)
  39. Q6b. Write a program in C to implement selection sort. (7 marks, 2025-26)
  40. Q6b. Write a C program to implement Binary Search on a sorted array. Explain why the array must be sorted for binary search to work and mention its complexity. (7 marks, 2025-26)

AKTU paper codes: BCS101, BCS201, KCS101, KCS101T, KCS201, KCS201T

Programming for Problem Solving previous year papers

More Programming for Problem Solving resources

More versions of this resource

Browse all notes · Semester 1 notes · Semester 2 notes · Programming for Problem Solving notes