0% found this document useful (0 votes)
52 views

Programming For Problem Solving KCS101T

Uploaded by

arush patel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
52 views

Programming For Problem Solving KCS101T

Uploaded by

arush patel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Printed Page: 1 of 1

Subject Code: KCS101T


Roll No:

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

all the operators.


c. Define recursive function? Write a program to find the factorial of a number with 10 3
iP

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

3. Attempt any one part of the following:


Q no. Question Marks CO
a. Write the short notes on (i) Compiler (ii) Interpreter (iii) Linker (iv) Loader 10 1
b. Brief the storage classes in C with proper example. 10 1
4. Attempt any one part of the following:
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
5. Attempt any one part of the following:
a. Write a program to print the pattern: 10 3
****
***
**
*
b. Write a Program to find the entered number is Palindrome number or not. 10 3
6. Attempt any one part of the following:
a. Write a program two find out the odd and even number from the array elements and its 10 4
count.
b. Explain the Selection sort with example. 10 4
7. Attempt any one part of the following:
a. Explain dynamic memory allocation concept with proper example. 10 5
b. Explain the different type of modes and I/O function in file handling. 10 5

www.pooripadhai.com 1|Page

You might also like