PPS 20
PPS 20
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:
P
Q no. Question 0Q Marks CO
a. Brief the Generations of the Programming languages with examples. 10 1
1
13
b. What do you mean by Operands? Discuss the operator precedence and associativity of 10 2
29
2.
0E
c. Define recursive function? Write a program to find the factorial of a number with 10 3
24
recursive function.
P2
d. Write the advantage of using array. Write the program for matrix multiplication of two 10 4
5.
matrix elements.
_Q
.5
e. Explain file handling and write a program for copying the content of one file into 17 10 5
another file.
TU
SECTION C
|1
a. Write the short notes on (i) Compiler (ii) Interpreter (iii) Linker (iv) Loader 10 1
:5
a. Write a program to find out the greatest number out of three numbers. 10 2
b. Explain different type of control statements used in c programming with example. 10 2
1
****
***
ar
**
M
*
7-
1|Page
AKTU_QP20E290QP | 17-Mar-2021 09:05:54 | 117.55.242.131
Downloaded from : uptukhabar.net