Programming For Problem Solving KCS101T
Programming For Problem Solving KCS101T
B TECH
(SEM-I) THEORY EXAMINATION 2020-21
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. 2 x 10 = 20
Q no. Question Marks CO
a. Write the fundamental data type in C Programming and its range. 2 1
b. Write the algorithm for addition of two numbers. 2 1
c. Define all Arithmetic operators. 2 2
d. Explain the need of break in switch statement with example. 2 2
e. Write the syntax of continue statement. 2 3
f. What is the difference between while and do-while loop? 2 3
g. Difference between structure and union. 2 4
h. Define Sorting Algorithm with example. 2 4
i. Define preprocessor and its usage in programming. 2 5
j. Write the advantage for the use of Linked list. 2 5
SECTION B
2. Attempt any three of the following:
i
Q no. Question
ha Marks CO
a. Brief the Generations of the Programming languages with examples. 10 1
b. What do you mean by Operands? Discuss the operator precedence and associativity of 10 2
ad
recursive function.
d. Write the advantage of using array. Write the program for matrix multiplication of two 10 4
matrix elements.
or
e. Explain file handling and write a program for copying the content of one file into 10 5
another file.
SECTION C
Po
www.pooripadhai.com 1|Page