Cs 3353 C Programming and Data Structures
Cs 3353 C Programming and Data Structures
11. (a) i) Write a C Program to find the second largest number in an (8) CO1 L5
Array.
ii) Write a C Program that calculates the sum of the first N Natural (8) CO1 L5
Numbers using a Recursive Function.
(OR)
11. (b) i) Write a C Program that performs Matrix Multiplication using (8) CO1 L5
Function.
ii) Write a C Program that find the sum of the digits of the given (8) CO1 L5
number (Eg. if input is 123 output should be 1+2+3 = 6).
12. (a) A Bank needs a simple system to manage Customer Accounts. Each (16) CO2 L5
Customer has a Name, Account Number and Balance. The program
should allow the following actions:
Write a C Program that allows a user to perform the above actions for
one or more Customers using Structures.
(OR)
12. (b) Explain the concepts of file handling in C. Describe the Types of Files, (16) CO2 L5
File Operations and various Functions used in File Handling.
Illustrate with examples how to Create, Read, Write and Close Files.
13. (a) Elucidate the Concept of a Linked List in Data Structures. Describe the (16) CO3 L3
various types of linked lists, their operations (Insertion, Deletion,
Traversal), and the advantages/disadvantages over other linear data
structures like arrays.
(OR)
13. (b) Demonstrate the Concept of a Queue in Data Structures. Implement a (16) CO3 L3
Queue using an Array with enqueue and dequeue operations.
Page 2 of 3 08101