SET - A
Roll No: -
B. TECH (SEM-I)
Sessional TestI (Odd Semester 2025-26)
Programming For Problem Solving (BCS-101)
Time: 3:00Hrs Max. Marks: 70
Note: (i) No student will be allowed to leave the examination room before end of exam.
(ii) Be precise in your answer.
(iii) All questions are compulsory.
Course Outcomes:
Following are the course outcomes of the subject: -
CO’s Codes COURSE OUTCOMES Blooms Level
BCS101.1 To Develop Simple algorithms and Logical Problems K2,K3
BCS101.2 To Translate the Algorithms to Programs & Execution (in C language) K3
BCS101.3 To Implement Conditional Branching, Iteration, and Recursion. K3
BCS101.4 To decompose a problem into functions and synthesize a complete program using
K4
divide and conquer approach.
BCS101.5 To use arrays, pointers and structures to develop algorithms and programs. K2,K3
SECTION A
Q. N.-1 Attempt all parts. Marks CO’s BL
(a) Draw memory hierarchical structure of a computer system. 2 CO.1 K2
(b) Differentiate between implicit and explicit type conversion. 2 CO.2 K3
(c) Write a difference between while and do while. 2 CO.3 K3
(d) Find the Output of below code:: 2 CO.4 K4
#include<stdio.h>
int fun(int n)
{int i, j, sum = 0;
for(i = 1; i<=n; i++)
for(j = 1; j<=i; j++ )
sum = sum + j;
return(sum);
}
int main()
{
printf(“%d”, fun(5));
return 0;
}
(e) find the output of the following C code, and why? 2 CO.5 K2
Void main() {
char a[] = "hell";
char b[] = "hello";
strcpy(b, a);
strcpy(a, b);
SET - A
printf("%s, %s", a, b);
}
SECTION B
Q. N.-2 Attempt all parts. Marks CO’s BL
(a) State desirable characteristics of an algorithm. Write an algorithm to calculate sum of 7 CO.1 K2
three digits of a number entered by user.
(b) Explain various bitwise operators in C Language with help of an example. When prece- 7 CO.2 K3
dence of two operators in an expression is same, how associativity helps in identifying
which operator will be evaluated first. Illustrate it with an example.
(c) Write a program and draw flaw chart to check whether the enter number is prime or not. 7 CO.3 K3
(d) Discuss the following string functions in C with suitable code for:- 7 CO.4 K4
i) strrev ii) strcmp iii) strcat iv) strlen v) strcpy
(e) Explain array in C. Write a program in C to multiply two matrices, each of order NxN 7 CO.5 K3
and display it on console
SECTION C
Q. N.-3 Attempt any one parts. Marks CO’S BL
(a) Explain Digital Computer with proper architecture. 5 CO.1 K2
(b) Define translator? Differentiate in between compiler & interpreter. 5 CO.1 K3
Q. N.-4 Attempt any one parts. Mark CO’S BL
s
(a) Differentiate Pseudo Code and Algorithms. Draw the flow chart to find greatest of three 5 CO.2 K3
numbers.
(b) Draw a flowchart to print the grades & give input as examination mark and test it for the 5 CO.2 K3
award of a grade. The mark is a whole number between 1 and 100. Grades are awarded
according to the following criteria:
>= 80 Distinction
>= 60 Merit
>= 40 Pass
< 40 fail
Q. N.-5 Attempt any one part. Mark CO’S BL
s
(a) Write a Program and draw a flow chart to check whether the number entered by user is 5 CO.3 K3
palindrome or not.
(b) Write a program in C to print the given pattern 5 CO.3 K3
*
***
*****
*******
*********
SET - A
Q. N.-6 Attempt any one part. Mark CO’S BL
s
(a) Explain call by value and call by reference with suitable program. 5 CO.4 K4
(b) Explain the concept of sorting. Also, write a C program to implement the Bubble Sort 5 CO.4 K4
technique on an array of integers
Q. N.-7 Attempt any one part. Mark CO’S BL
s
(a) Explain memory representation of 2-D array. Write a program in C to find multiplication 5 CO.5 K3
of two matrices of which order is entered by user.
(b) Write a program to print the number odd and even in an array. 5 CO.5 K3
Course Outcome wise Marks Distribution
70
60
L5
50 100%
40
30
20 14 14 14 14 14 Blooms Level Distribution
10
0
CO1 CO2 CO3 CO4 CO5