Programming for Problem Solving PYQ 2022-23 AKTU (BCS201)

AKTU · BTECH · Semester 1, 2 · Programming for Problem Solving · Session 2022-23 · PYQ

AKTU Programming for Problem Solving (BCS201) previous year question paper 2022-23 for B.Tech Semester 1/2. Covers Introduction to Computer System and C…

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 2022-23

  1. Q1a. Differentiate between algorithm and program. (2 marks, 2022-23)
  2. Q1b. Discuss the functions of an operating system in brief. (2 marks, 2022-23)
  3. Q1c. Write the output of following code: #include <stdio.h> int main() { int a = -10, b = 20; if(a > 0 && b < 0) a++; else if(a < 0 && b < 0) a--; else if(a < 0 && b > 0) b--; else b--; printf("%d\n",a + b); return 0; } (2 marks, 2022-23)
  4. Q1d. Compare linear search and binary search in terms of time complexity. (2 marks, 2022-23)
  5. Q1e. Differentiate between structure and union. (2 marks, 2022-23)
  6. Q1f. What do you mean by pointer arithmetic? (2 marks, 2022-23)
  7. Q1g. Discuss linked list in brief. (2 marks, 2022-23)
  8. Q2a. Explain flow chart and benefits of using the flow chart in programming. Draw a flow chart to find the sum and average of n integers. (7 marks, 2022-23)
  9. Q2b. Explain recursion in C. Write a program in C to find the factorial of a given number using recursive method. (7 marks, 2022-23)
  10. Q2c. Write a program in C to reverse a given number N having any number of digits. (7 marks, 2022-23)
  11. Q2d. Discuss the following string functions in C with suitable code snippet: i) strrev ii) strcmp iii) strcat iv) strlen v) strcpy (7 marks, 2022-23)
  12. Q2e. Explain the process of using fopen() function in C with suitable examples. Also discuss various modes of opening a file in C. (7 marks, 2022-23)
  13. Q3a. Discuss various storage classes used in C including the details of storage place, default value, scope and lifetime. (7 marks, 2022-23)
  14. Q3b. Discuss various primitive data types used in C with suitable examples including their required memory size, format specifier and range. (7 marks, 2022-23)
  15. Q4a. Write a program in C to print grades as per following criteria for obtained percentage of marks M out of 100: 90 <M≤ 100 A+ 80 <M≤ 90 A 70 <M≤ 80 B+ 60 <M≤ 70 B 50 <M≤ 60 C M≤ 50 F (7 marks, 2022-23)
  16. Q4b. Explain different types of bitwise operators used in C with suitable examples. Find the value of following expressions: i) 10 >>2 ii) 20 << 2 iii) 25 & 30 iv) 25 | 30 (7 marks, 2022-23)
  17. Q5a. Differentiate between while and do-while loop. Write a program in C to print the following pattern: 1 2 3 4 5 1 2 3 4 1 2 3 1 2 1 (7 marks, 2022-23)
  18. Q5b. Explain array in C. Write a program in C to multiply two matrices, each of order NxN and display it on console. (7 marks, 2022-23)
  19. Q6a. Explain call by value and call by reference with suitable example. (7 marks, 2022-23)
  20. Q6b. Discuss sorting. Write a program in C for selection sorting. (7 marks, 2022-23)
  21. Q7a. Explain static memory allocation and dynamic memory allocation with suitable examples. (7 marks, 2022-23)
  22. Q7b. Discuss various file handling methods used in C in brief. Write a program in C to write some text matter into a file "example.txt" and then read this text matter and display on console using file handling methods. (7 marks, 2022-23)

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