A data file consisting of 1,50,000 student-records is stored on a hard disk with block size of 4096 bytes. The data file is sorted on the primary key RollNo. The size of a record pointer for this disk is 7 bytes. Each student-record has a candidate key attribute called ANum of size 12 bytes. Suppose an index file with records consisting of two fields, ANum value and the record pointer corresponding student-record is built and stored on the same disk. Assume that the records of data file and index file are not split across disk blocks. The number of blocks in the index file is ___________.
Asked in GPSC Assistant Director (IT), Class-1 2025
Answer under review: our editors are checking this question. Try the other GPSC Prelims previous year questions questions meanwhile.
More GPSC Prelims previous year questions questions
- In a file which contains 1 million records and the order of the tree is 100, then what is the maximum number of nodes to be accessed if B+ tree index is used?
- Which of these is a characteristic of RAID 5?
- The physical location of a record determined by a formula that transforms a file key into a record location is
- Calculate the order of leaf (Pleaf) and non-leaf (P) nodes of a B+ tree based on the information given below. Search key field = 12 field Record pointer = 10 bytes Block pointer = 8 bytes Block size = 1KB
- A file is organized so that the ordering of data records is the same as or close to the ordering of data entries in some index, that index is called
- Let S be the following schedule of operations of three transactions T1, T2 and T3 in a relational database system. R2(Y),R1(X),R3(Z),R1(Y)W1(X),R2(Z),W2(Y),R3(X),W3(Z)R2 (Y),R1 (X),R3 (Z),R1 (Y), W1 (X),R2 (Z),W2 (Y),R3 (X),W3 (Z) Consider the statements P and Q below. P: S is conflict-serializable. Q: If T3 commits before T1 finishes, then S is recoverable. Which one of the above choices is/are correct?
- Let ri(z) and wi(z) denote read and write operations respectively on a data item z by a transaction Ti. Consider the following two schedules. S1: r1(x)r1(y)r2(x)r2(y)w2(y)w1(x) S2: r1(x)r2(x)r2(y)w2(y)r1(y)w1(x) Which one of the following options is correct?
- Suppose a database system crashes again while recovering from a previous crash. Assume checkpointing is not done by the database either during the transactions or during recovery. Which of the following statements is/are correct?