Programming For Problem Solving (BCS201) - AKTU Question Paper 2022-23
B.Tech · Semester 2 · Free PDF Download
This is the official AKTU Programming For Problem Solving Previous Year Question Paper for B.Tech Semester 2, academic session 2022-23. Published by Dr. A.P.J. Abdul Kalam Technical University (AKTU/UPTU), Lucknow. Free PDF download — no login required.
Course:B.Tech
Semester:Semester 2
Session:2022-23
University:AKTU / UPTU
Rate this paper
Questions Asked in 2022-23
Programming For Problem Solving (BCS201) — extracted question text
Section AAttempt all questions in brief. 2 x 7 = 14
- aDifferentiate between algorithm and program
- bDiscuss the functions of an operating system in brief
- cWrite the output of following code:
#include <stdio.h> int main() { int a = -10, b = 20; a++; else if(a < 0 && b < 0) a--; else if(a < 0 && b > 0) b--; else b--; printf("%d\n",a + b); return 0; } - dCompare linear search and binary search in terms of time complexity
- eDifferentiate between structure and union
- fWhat do you mean by pointer arithmetic?
- gDiscuss linked list in brief
Section BAttempt any three of the following: 7 x 3 = 21
- aExplain flow chart and benefits of using the flow chart in programming. Draw a flow chart to find the sum and average of n integers
- bExplain recursion in C. Write a program in C to find the factorial of a given number using recursive method
- cWrite a program in C to reverse a given number N having any number of digits
- dDiscuss the following string functions in C with suitable code snippet: i) strrev ii) strcmp iii) strcat iv) strlen v) strcpy
- eExplain the process of using fopen() function in C with suitable examples. Also discuss various modes of opening a file in C
Section CAttempt any one part of the following: 7 x 1 = 7
- aDiscuss various storage classes used in C including the details of storage place, default value, scope and lifetime
- bDiscuss various primitive data types used in C with suitable examples including their required memory size, format specifier and range
- aWrite a program in C to print grades as per following criteria for obtained percentage of marks M out of 100: Obtained Percent Marks (M) Grade 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
- aDifferentiate between while and do-while loop. Write a program in C to print the following pattern
- bExplain array in C. Write a program in C to multiply two matrices, each of order NxN and display it on console
- aExplain call by value and call by reference with suitable example
- bDiscuss sorting. Write a program in C for selection sorting
- aExplain static memory allocation and dynamic memory allocation with suitable examples
- bDiscuss 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
Question text is extracted from the official AKTU question paper PDF above. Check the original PDF for equations, diagrams and complete wording. Extracted: 2026-08-23.
Programming For Problem Solving — Other Year Papers
AKTU Programming For Problem Solving PYQs from other sessions
More B.Tech Semester 2 (2022-23) Papers
Other subjects from same semester and session
Engineering Mathematics Ii2022-23Soft Skills2022-23Human Values Professional Ethics2022-23Fundamentals Of Mechanical Engineering2022-23Environment And Ecology2022-23Engineering Chemistry2022-23Fundamentals Of Electronics Engineering2022-23Engineering Physics2022-23
View all B.Tech Semester 2 2022-23 papers →Syllabus & More PYQs
Paper solve karne se pehle unit-wise syllabus dekh lo