Btech 1 Sem Programming For Problem Solving kcs101 2022
Btech 1 Sem Programming For Problem Solving kcs101 2022
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
#include<stdio.h>
int main()
{ int a = 5;
a = 1, 2, 3;
printf("%d", a);
return 0;
}
e. Write the use of continue statement. 2 3
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
h. Why is sorting process required? 2 4
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
SECTION B
2. Attempt any three of the following: 3x10 = 30
Qno. Question Marks CO
a. Differentiate between Compiler and Interpreter. Draw the flow chart of 10 1
swapping of two numbers.
b. What do you mean by Operands? Discuss the operator precedence and 10 2
associatively of all the operators.
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
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
2|Page