PROGRAMMING IN C AND DATA STRUCTURES
(14PCD13/14PCD23)
Time: 3 hrs. Max. Marks: 100
Note: Answer any FIVE full questions, choosing one full question from each module.
MODULE 1
1) a. What is pseudo code? How it is used as a problem-solving tool. (6 Marks)
b. What is an operator? Explain the arithmetic, relational, logical, and (10 Marks)
assignment operators in C language.
c. Write a program in C to print the numbers from 4 to 9 and their squares. (4 Marks)
OR
2) a. Write and explain the basic concepts of a C program. (8 Marks)
b. Write the guidelines to use printf() function in C language. (8 Marks)
c. Write a program in C to find the area and perimeter of a circle. (4 Marks)
MODULE 2
3) a. Explain the two way selection (if, if-else, nested if-else, cascaded if- (8 Marks)
else) in C language with syntax .
b. Explain the switch statement with syntax and example. (8 Marks)
c. Design and develop a C program to read a year as an input and find (4 Marks)
whether it is leap year or not. Also consider end of the centuries.
OR
4) a. Explain the different types of loops in C with syntax and example. (8 Marks)