Code: CS20AES101 R 20
B.Tech I Year I Semester (R20) Regular Examinations August 2021
PROBLEM SOLVING USING C
(Common to AI&ML, CSE & IT)
Time: 3 hours. Max Marks: 60
PART-A
(Compulsory Question)
1. Answer the following 05x02=10 Marks
a) What is an algorithm? 2M
b) What are the uses of control structures? 2M
c) What are the uses of an Array? 2M
d) What is dynamic memory allocation? 2M
e) What is a Union? 2M
PART-B
Answer All five Units 05 x 10 = 50 Marks
UNIT-I
2. a) Define Flow Chart. Explain the use of flowchart to find biggest of three numbers. 5M
b) Give the basic structure of a C language program. 5M
OR
3. a) Write an algorithm to find sum of digit of a natural number. 5M
b) What is an operator? Explain the use of arithmetic and relational operators. 5M
UNIT-II
4. a) Write a C program to find biggest of three numbers. 5M
b) Give the syntax and semantics of for loop. 5M
OR
5. a) Write a C program to find sum of digits of a natural number. 5M
b) Give the syntax and semantics of switch statement. 5M
UNIT-III
6. a) Differentiate between a single-dimensional array and a two-dimensional array. 5M
b) Write a C Program to find maximum element of a list of numbers using a single 5M
dimensional array.
OR
7. a) What is a Function? What are the advantages of a Function? 5M
b) Write a C Program with a Function to find factorial of a number. 5M
UNIT-IV
8. a) What is a Pointer? What are the advantages of Pointers in C Language? 6M
b) Write a C Program with a function to swap two numbers. 4M
OR
9. a) What is a C String? Explain how a C string works. 5M
b) Write a C Program with a Function to copy a string to another string. 5M
Page 1 of 2
Code: CS20AES101 R 20
UNIT-V
10. a) What is a structure? Write its advantages. 4M
b) Write a C program to read employee details, in an office of 10 employees, along 6M
with their salary.
OR
11. Write a C Program to copy a File to another. 10 M
*****
Page 2 of 2