Lab Manual For Exp No 01
Lab Manual For Exp No 01
Experiment No.01
PART A
(PART A : TO BE REFERRED BY STUDENTS)
A.1 Aim:
Introduction to Data Structures. Select and implement appropriate data structure to solve the
given problem.
A.2 Prerequisite:
1. Knowledge of different types of data structures.
A.3 Outcome:
After successful completion of this experiment students will be able to
A.4 Theory:
A.4.1. Introduction of Data structure
● The data may be organized into many different ways. The logical
and mathematical model of a particular organization of data is called
data structure.
● A data structure helps you to understand the relationship of one
data element with the other and organize it within the memory.
● Data structure specified following:
o Organization of data
o Accessing methods
o Degree of associativity
o Processing alternatives for information
● Classification of data structure:
TASK 1:
TASK 2:
A program has to be written that takes in student data like roll number, name and grade. It
displays the same in the order of entry. It should have a function to provide the user option to
choose to display a particular student's details given the name or the roll number.
TASK 3:
Identify suitable data structure for given scenarios. Specify the reason for it.
**********************
PART B
(PART B : TO BE COMPLETED BY STUDENTS)
Date of Grading:
Task 1:
Task 2:
B.2 Input and Output:
Task 1:
Task 2:
B.3 Identified data structure with reason: (Task 3)
B.4 Conclusion:
Q2. What if the number of elements in an array are less than or greater
than the length specified?
Ans: When the number of elements are less than the number of
elements specified at the initialization then the other elements have
a null value or value is zero, and when the number of elements are
more than the number of elements specified at the start of the array
then the program shows a segmentation error.
************************