Programming For Problem Solving-KCS-101
Programming For Problem Solving-KCS-101
BTECH
(SEM I) THEORY EXAMINATION 2021-22
PROGRAMMING FOR PROBLEM SOLVING
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
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
j. Draw the basic structure of Linked List and explain its node. 2 5
09
2
SECTION B
02
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
1
13
0
Qno. Question Marks CO
29
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
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
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