File Structures Jan 2018 (2010 Scheme)
File Structures Jan 2018 (2010 Scheme)
com
rr
us ~~:Q1S63
.: ,-,J
ib
( ~
File Structures t.:/~/-)
Time: 3 hrs.
> /';
1/ 'Z
.c:
Max. Marks: 100
\t- [ote: Answer any FIVEfull questions, selecting ~)
I- ." / at least TWO questions from each part )\...
'v0-~' (
ik
. .: >: \PAR T - A (( : -.»
1 a. Explain the seekirig\~per.ation in detail with respect to C str p~ apd also C++ stream class.
. . ,,/:>' '~~\;. (08 Marks)
b. List and briefly explainth« strength and weakness of CD· ROM. (05 Marks)
c. Write a C++ program to .read.the contents of a file and i:Ji~pJaythe contents in reverse order
on the terminal. .K;· (07 Marks)
w
2 a. Differentiate between fixed length record and variableJingth record with suitable examples.
(04 Marks)
b. Explain the class hierarchy for record buffer object - IOBuffer. Also write only the class
structure with main members and methods of class IOBuffer.
ia (08 Marks)
c. Write a C++ program to pack the 'n; number of student records in a file. (Fixed length
record structure can be used) (08 Marks)
3 a. Write a C++ function or algorithm to search a record using RRN. (06 Marks)
b. List the needs of data compression. JExpla.in Run-length encoding algorithm with an
example. (08 Marks)
d
c. Explain the various placement strategies. (06 Marks)
5 a. List the B-tree properties. Explain search and insert methods with} spect to B-tree.
//.., (10 Marks)
b. Calculate the number of levels for a B-tree given 1000000 keys arid rder 512. (10 Marks)
6 a. Explain indexed sequential access. Explain block splitting and merging ill' the sequence set
with suitable examples. (10 Marks) -c
ww
Z
8 Explain the following:
a. Tries
b. Un ix directory structure
c. Field structures
d. Key sorting algorithm. (20 Marks)
*****