Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Test  >  GATE Computer Science Engineering(CSE) 2027 Mock Test Series  >  Test: File Structures- 1 - Computer Science Engineering (CSE) MCQ

GATE Computer Science Engineering(CSE) 2027 Test: File Structures- 1 Free


MCQ Practice Test & Solutions: Test: File Structures- 1 (12 Questions)

You can prepare effectively for Computer Science Engineering (CSE) GATE Computer Science Engineering(CSE) 2027 Mock Test Series with this dedicated MCQ Practice Test (available with solutions) on the important topic of "Test: File Structures- 1". These 12 questions have been designed by the experts with the latest curriculum of Computer Science Engineering (CSE) 2026, to help you master the concept.

Test Highlights:

  • - Format: Multiple Choice Questions (MCQ)
  • - Duration: 35 minutes
  • - Number of Questions: 12

Sign up on EduRev for free to attempt this test and track your preparation progress.

Test: File Structures- 1 - Question 1

Suppose we have a block-addressable disk drive. With such block-organized disk nondata overhead of subblocks and interblock gaps have to be accounted for. There are 40000 bytes per track and the amount of space taken up/by subblocks and interblocks gaps equivalent to 250 bytes per block. A file contains records and record size is 200 bytes to be stored on the disk, if a total of 32 blocks can be stored per track then what is the blocking factor? The term "blocking factor” is used to indicate the number of records that are to the stored in each block in a file. A block is organized to hold an integral number of logical records.

Test: File Structures- 1 - Question 2

Which allocation scheme would work best for a file system implemented on a device that can only be accessed sequentially, a tape drive, for instance?

Detailed Solution: Question 2

Contiguous allocation scheme would work best for a file system implementation on a device that can only be accessed sequentially, a tape drive.

Test: File Structures- 1 - Question 3

Consider the following statements:
S1 : Anchor block contains first records of chain.
S2:  Anchor record is first record of a block.

Which of the above statements is/are true?

Detailed Solution: Question 3

  • Anchor block contains first records of chain, while overflow block contains records other than those that are 1st records of a chain.
  • Anchor record is first record of a block.

Test: File Structures- 1 - Question 4

Which statement is false?

Test: File Structures- 1 - Question 5

Which indices search key defines the sequential order of file and which indices search key specifies an order different from sequential order of file?

Detailed Solution: Question 5

Primary indices search key defines the sequential order of fill while secondary indices search key defines an order different from sequential order of fills.

Test: File Structures- 1 - Question 6

Which of the following is correct?

Detailed Solution: Question 6

Most database systems use indexes built on some form of a B+ tree due to its many advantages, in particular its support for range queries. Leaf nodes are linked together in B* trees hence range queries are faster.

Test: File Structures- 1 - Question 7

The order of an internal node in a B+ tree index is the maximum number of children it can have. Suppose that a child pointer takes 6 bytes, the search field value takes 14 bytes, and the block size is 512 bytes. What is the order of the internal node?

Detailed Solution: Question 7

Size of child pointer = 6 byte
Size of search field value takes 14 bytes Block size = 512 

Test: File Structures- 1 - Question 8

A B tree used as an index for a large database table has four levels including the root node. If a new key is inserted in this index, then the maximum number of nodes that could be newly created in the process are

Detailed Solution: Question 8

Suppose all nodes are completely full that means every node has n - 1 keys.
Tree has 4 levels. If a new key is inserted then at every level new node will be created.
In worst case root node will also be broken into two parts and we have 4 levels.
So answer should be 5 because tree will be increased with one more level.

Test: File Structures- 1 - Question 9

In a database file structure, the search key field is 9 bytes long, the block size is 512 bytes, a record pointer is 7 bytes and a block pointer is 6 bytes. The largest possible order of a non- leaf node in a B+ tree implementing this file structure is

Detailed Solution: Question 9

From the structure of B+ tree we can get the following equation:

In B+ tree, non leaf node has no record pointer: (by putting q = 0) 

Largest possible order of a non-leaf node = 34.

Test: File Structures- 1 - Question 10

With respect to the B+ tree index method, select the true statements

Detailed Solution: Question 10

In B+ tree index method records are physically stored in primary key order.

Test: File Structures- 1 - Question 11

Given a block can hold either 3 records or 10 key pointers. A database contains n records, then how many blocks do we need to hold the data file and the dense index.

Detailed Solution: Question 11

For storing the records no. of blocks required =n/3
and For storing the keys in dense index no. of blocks required =n/10
So total blocks required 

Test: File Structures- 1 - Question 12

Which is the best suitable for sequential access of data?

Detailed Solution: Question 12

B+ tree is best suitable for sequential acess of data.

56 docs|215 tests
Information about Test: File Structures- 1 Page
In this test you can find the Exam questions for Test: File Structures- 1 solved & explained in the simplest way possible. Besides giving Questions and answers for Test: File Structures- 1, EduRev gives you an ample number of Online tests for practice
Download as PDF