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

Btech 1 Sem Programming For Problem Solving kcs101 2021

This document is a question paper for the B Tech Programming for Problem Solving exam. It contains 7 sections with multiple choice and long answer questions. Section A contains 10 short answer questions worth 2 marks each related to basic C programming concepts. Section B contains 3 long answer questions worth 10 marks each related to programming language generations, operators, and recursion. Section C contains 4 long answer questions worth 10 marks each related to compilers, storage classes, control statements, and patterns. Sections D and E each contain 2 long answer questions worth 10 marks each related to arrays, sorting, dynamic memory allocation, and file handling. The exam is worth a total of 100 marks and tests fundamental C programming concepts and techniques.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
94 views

Btech 1 Sem Programming For Problem Solving kcs101 2021

This document is a question paper for the B Tech Programming for Problem Solving exam. It contains 7 sections with multiple choice and long answer questions. Section A contains 10 short answer questions worth 2 marks each related to basic C programming concepts. Section B contains 3 long answer questions worth 10 marks each related to programming language generations, operators, and recursion. Section C contains 4 long answer questions worth 10 marks each related to compilers, storage classes, control statements, and patterns. Sections D and E each contain 2 long answer questions worth 10 marks each related to arrays, sorting, dynamic memory allocation, and file handling. The exam is worth a total of 100 marks and tests fundamental C programming concepts and techniques.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Printed Page: 1 of 1

Subject Code: KCS101


0Roll No: 0 0 0 0 0 0 0 0 0 0 0 0 0

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:
Q no. Question 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
all the operators.
c. Define recursive function? Write a program to find the factorial of a number with 10 3
recursive function.
d. Write the advantage of using array. Write the program for matrix multiplication of two 10 4
matrix elements.
e. Explain file handling and write a program for copying the content of one file into 10 5
another file.
SECTION C
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 10 4
its 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

1|Page

You might also like