0% found this document useful (0 votes)
1 views1 page

Cs 3353 C Programming and Data Structures

The document outlines programming tasks for a C course, including finding the second largest number in an array, calculating the sum of natural numbers recursively, performing matrix multiplication, and managing customer accounts in a banking system. It also discusses file handling concepts in C, types of files, and operations related to file management. Additionally, it covers data structures like linked lists and queues, detailing their operations and advantages over arrays.

Uploaded by

rohini7133
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)
1 views1 page

Cs 3353 C Programming and Data Structures

The document outlines programming tasks for a C course, including finding the second largest number in an array, calculating the sum of natural numbers recursively, performing matrix multiplication, and managing customer accounts in a banking system. It also discusses file handling concepts in C, types of files, and operations related to file management. Additionally, it covers data structures like linked lists and queues, detailing their operations and advantages over arrays.

Uploaded by

rohini7133
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

PART - B (5 x 16 = 80 Marks)

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:

i) Deposit Money into the Account.


ii) Withdraw Money from the Account.
iii) Display the Account Balance.

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

You might also like