HSC Science (Computer Science) 12th Board ExamMaharashtra State Board
Share
Notifications

View all notifications

Explain How Records Are Represented in Memory Using Array ? - HSC Science (Computer Science) 12th Board Exam - Computer Science 1

Login
Create free account


      Forgot password?

Question

Explain how records are represented in memory using an array?

Solution

Each data item is termed as a field. A file is a collection of similar records. Each data item may be a group item composed of sub items.

Consider a record, whose structure is given below

1. Employee

2. Name

3. First name

3. Last name

2. sex

2. Address

3. City

3. Pincode

2. Phone no

To present this record in memory, linear arrays are used.

One separate linear array is used for each elementary item of record such as First name, Last name, Sex, City, Pincode, Phone no

Following figure shows representation of above record using parallel linear arrays.

The records are stored in memory using parallel linear arrays, such that for an index K of all records, First name [K], Last name [K], Sex [K], .... belong to the same record in a file. (i.e. Kth record in the file).

  Is there an error in this question or solution?

APPEARS IN

 2017-2018 (March) (with solutions)
Question 4.2.1 | 4.00 marks
Solution Explain How Records Are Represented in Memory Using Array ? Concept: Basic Data Structures (Stack, Queue, Dequeue).
S
View in app×