Posts

Showing posts with the label data structures

Data Structures Chapter 2 Exercise Solutions

Short forms used DS -> Data structure 1. Explain the features of a good program. A good program is one that has the following points covered 1. Runs Correctly 2. Easy to read and undersand  3. is easy to modify A good program that runs correctly but runs efficiently, that's important. So a program that takes less time to execute and occupies minimum storage space is a good program. And also meets other points mentioned above. 2. Define the terms: data, file, record, and primary key.  Data : The term data means values or data sets  Record : It is a collection of data items like name, address, phone number, etc.. File : File is a collection of related records. File may be of school students attendance records, or marks records etc Primary Key : In a record that contains data items like name , id , phone number, age , etc.. , A primary key is the id field which is unique for each data item and cannot repeat , therefore using this as a key will serve identification of reco...