GATE / CS ARCHIVE

GATE CSE 1998 / QUESTION 1.35

Identifying a sorted index

Database Management Systems · Indexing, Storage & Query Processing · Full GATE CSE 1998 paper

GATE 1998, Q1.35 1 mark · MCQ
Report issue

Indexing, Storage & Query Processing

Question 1.35, GATE 1998: Records 1–5 are Rama 27CON A, Abdul 22ENG A, Jennifer 28DOC B, Maya 32SER D, Dav 24MUS C. Index pointers are 1, 3, 2, 5, 4. Which field is sorted?
Tap to enlarge
Your answer
Answer & solution

Answer: C: occupation (no official key was published)

Read occupations in pointer order: CON, DOC, ENG, MUS, SER. They are alphabetically increasing, so the index is on occupation. Ages in that order are 27, 28, 22, 24, 32 and are not sorted. Names start Rama, Jennifer, Abdul and likewise are not alphabetical; categories are A, B, A, C, D, also not ordered. Thus C is the matching field. The pointer sequence denotes record positions, not the index-key values themselves.

Original paper, page 3