Printed Page: 1 of 2
Subject Code: KCS101
0Roll No: 0 0 0 0 0 0 0 0 0 0 0 0 0
BTECH
(SEM I) THEORY EXAMINATION 2021-22
PROGRAMMING FOR PROBLEM SOLVING
Time: 3 Hours Total Marks: 100
Note: 1. Attempt all Sections. If require any missing data; then choose suitably.
SECTION A
1. Attempt all questions in brief. 2x10 = 20
Qno. Question Marks CO
a. Draw the Memory hierarchy representation. 2 1
b. Why is RAM called a Volatile memory? 2 1
c. Write down the output of following code. 2 2
#include <stdio.h>
int main()
{ int a=23;
;
;printf("%d",a);
;
return 0;
}
d. Write down the output of following code. 2 2
1
#include<stdio.h>
13
0
29
int main()
2.
{ int a = 5;
2_
24
a = 1, 2, 3;
2P
printf("%d", a);
5.
return 0;
.5
P2
}
17
Q
e. Write the use of continue statement. 2 3
|1
f. What is the difference between entry control loop and exit control loop? 2 3
g. How the size of the structure defined in c programming? 2 4
6
:5
h. Why is sorting process required? 2 4
04
i. Write the advantages of using macro in C programming. 2 5
:
j. Draw the basic structure of Linked List and explain its node. 2 5
09
2
SECTION B
02
2. Attempt any three of the following: 3x10 = 30
Qno. Question Marks CO
-2
a. Differentiate between Compiler and Interpreter. Draw the flow chart of 10 1
ar
swapping of two numbers.
M
b. What do you mean by Operands? Discuss the operator precedence and 10 2
8-
associatively of all the operators.
|2
c. Write the advantage of recursive function? Write a program to print the 10 3
Fibonacci series up to n number with recursive function.
d. Write short note on array. Write the program for matrix multiplication of 10 4
two matrix elements.
e. Explain the concept of pointer in self-referential structure with proper 10 5
example.
1|Page
www.pooripadhai.com
QP22P2_290 | 28-Mar-2022 09:04:56 | 117.55.242.131
Printed Page: 2 of 2
Subject Code: KCS101
0Roll No: 0 0 0 0 0 0 0 0 0 0 0 0 0
BTECH
(SEM I) THEORY EXAMINATION 2021-22
PROGRAMMING FOR PROBLEM SOLVING
SECTION C
3. Attempt any one part of the following: 1x10=10
Qno. Question Marks CO
a. Differentiate between High level and Low-Level Programming. Draw 10 1
and explain the diagram of Digital computer.
b. Explain the different kind of storage classes used in C programming 10 1
with proper syntax.
4. Attempt any one part of the following: 1x10=10
Qno. Question Marks CO
a. Write the use of Break statement in switch case. Write a program to find 10 2
out the greatest number out of three numbers.
b. Explain different type of operators in C programming. Which concept 10 2
makes the difference between operators when precedence is same?
5. Attempt any one part of the following: 1x10=10
1
13
0
Qno. Question Marks CO
29
a. Write a program to print the pattern 10 3
2.
2_
24
23
2P
5.
456
.5
P2
7 8 9 10 17
b. Write a Program to find the entered number is Armstrong number or not. 10 3
Q
|1
6. Attempt any one part of the following: 1x10=10
6
Qno. Question Marks CO
:5
a. Write a program two find out the odd place and even place numbers 10 4
04
from the array elements and print the sum of these numbers respectively.
:
b. Write the program for bubble sorting an explain it with example list 5, 7, 10 4
09
2, 1, 3, 6.
2
02
7. Attempt any one part of the following: 1x10=10
Qno. Question Marks CO
-2
a. Write the importance of free () function in Dynamic memory allocation. 10 5
ar
Explain dynamic memory allocation with the functions use in it.
M
b. Difference between read and write mode in file handling. Write a 10 5
8-
program to copy the content from file to another file and count the
|2
characters.
2|Page
www.pooripadhai.com
QP22P2_290 | 28-Mar-2022 09:04:56 | 117.55.242.131