Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Tests  >  Operating System  >  Test: File Allocation - Computer Science Engineering (CSE) MCQ

Test: File Allocation - Computer Science Engineering (CSE) MCQ


Test Description

10 Questions MCQ Test Operating System - Test: File Allocation

Test: File Allocation for Computer Science Engineering (CSE) 2024 is part of Operating System preparation. The Test: File Allocation questions and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus.The Test: File Allocation MCQs are made for Computer Science Engineering (CSE) 2024 Exam. Find important definitions, questions, notes, meanings, examples, exercises, MCQs and online tests for Test: File Allocation below.
Solutions of Test: File Allocation questions in English are available as part of our Operating System for Computer Science Engineering (CSE) & Test: File Allocation solutions in Hindi for Operating System course. Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free. Attempt Test: File Allocation | 10 questions in 30 minutes | Mock test for Computer Science Engineering (CSE) preparation | Free important questions MCQ to study Operating System for Computer Science Engineering (CSE) Exam | Download free PDF with solutions
Test: File Allocation - Question 1

Which of the following is not a type of file allocation system.

Detailed Solution for Test: File Allocation - Question 1

File allocation methods:

The major file allocation technique is
i. Contiguous allocation
ii. Linked allocation/chain allocation
iii. Index allocation

So non-contiguous is not a type of file allocation methods

Test: File Allocation - Question 2

Which of the following is dense index

Detailed Solution for Test: File Allocation - Question 2

Indexing
Indexing is a way to optimize the performance of a database by minimizing the number of disk accesses required when a query is processed.
It is a data structure technique that is used to quickly locate and access the data in a database
There are the following type of Indexes

Primary index
It is maintained for the anchor value of block i,e one key-value per block maintained in Index file.

Clustering index
It is basically a mixed sort of Indexing i,e Dense as it is maintained for unique value (key)  and Sparse as it is not maintained for every value.

1 Crore+ students have signed up on EduRev. Have you? Download the App
Test: File Allocation - Question 3

What is compaction refers to

Detailed Solution for Test: File Allocation - Question 3
  • In memory management, swapping creates multiple fragments in the memory because of the processes moving in and out.
  • Compaction refers to combining of all the empty spaces together and processes.
  • Compaction helps to solve the problem of fragmentation, but it requires a lot of CPU time.
  • It moves all the occupied areas of storage to one end and leaves one large free space for incoming jobs, instead of numerous small ones.
  • In compaction, the system also maintains relocation information and it must be performed on each new allocation of job to the memory or completion of job from memory.
Test: File Allocation - Question 4

Dak bearing a security grading confidential, secret etc is known as?

Detailed Solution for Test: File Allocation - Question 4

Dak:
All communication received/issued by an office/department through dak.

Classified dak:  
Dak bearing security grading confidential, secret, etc. is called Classified dak.

Test: File Allocation - Question 5

The FAT is used much as a _______.

Detailed Solution for Test: File Allocation - Question 5

The FAT system stores the list of all files in the system and the locations in which they are allocated. A single file may not be allocated in continous memory blocks. Instead it is stored as a linked list, as a result the FAT is also implemented as a linked list.

Test: File Allocation - Question 6

A programmer handles the file allocation in such a way that n+1 blocks are utilized if a file needs n blocks, with the first block including index information. Which file allocation method is used?

Detailed Solution for Test: File Allocation - Question 6

Indexed file allocation:
In Indexed file allocation, If a file requires n blocks then n+1 blocks are used where the first block contains index information(pointers to data blocks).

  • The Indexed file allocation table contains a separate one-level index for each file.
  • The index has one entry for each portion allocated to the file.
  • The file allocation table contains the block number for the index.

Hence the correct answer is Indexed file allocation.

Test: File Allocation - Question 7

Which table is used in MS DOS for linked list allocation?

Detailed Solution for Test: File Allocation - Question 7
  • At the time of formatting, the FAT is statically allocated. The table is a linked list of entries for each cluster, a contiguous area of disk storage.
  • FAT table is used in MSDOS for linked list allocation
  • The File Allocation Table is used by the file system to define chains of data storage areas associated with a file (FAT). At the time of formatting, the FAT is assigned statically. Each cluster, or contiguous area of disc storage, is represented by a linked list of entries in the table.

Hence the correct answer is FAT.

Test: File Allocation - Question 8

Which of the following addressing modes, facilitates access to an operand whose location is defined relative to the beginning of the data structure in which it appears?

Detailed Solution for Test: File Allocation - Question 8

Index addressing modes:
Index addressing modes
facilitates access to an operand whose location is defined relative to the beginning of the data structure in which it appears.

  • In the indexed addressing mode, the content of a particular index register is appended to the address component of an instruction to obtain the effective address.
  • The index register refers to a particular CPU register that contains an index value. The address field of an instruction specifies the starting address of any data array in memory.
  • Using the index addressing mode, we get flexibility for specifying several locations of the memory.

Hence the correct answer is Index.

*Answer can only contain numeric values
Test: File Allocation - Question 9

Consider a FAT based file system. On a disk of 750 GB, the FAT file system is stored, the data block size is 25000 bytes. The total overhead in each entry is 10 bytes in size. The maximum size of a file that can be stored on this disk is ________ MB


*Answer can only contain numeric values
Test: File Allocation - Question 10

Consider two files systems A and B , that use contiguous allocation and linked allocation, respectively. A file of size 100 blocks is already stored in A and also in B. Now, consider inserting a new block in the middle of the file (between 50th and 51st block), whose data is already available in the memory. Assume that there are enough free blocks at the end of the file and that the file control blocks are already in memory. Let the number of disk accesses required to insert a block in the middle of the file in A and B are nA and nB respectively, then the value of nA + nB is_________.


Detailed Solution for Test: File Allocation - Question 10

Contiguous allocation:
Contiguous allocation occurs when the blocks are allocated to the file in such a way that all of the file's logical blocks are assigned to the same physical block on the memory.
For contiguous allocation,
we have 100 blocks, in contiguous allocation first, we push the 100th block to 101 th block (we need two access), then we push the 99 th block to the 100 th block (we need two access again) and so on up to 51 th block. Now, 51 block is empty, then we push new block to 51 position list need one access).
So, Total access are= 50 read operations+ 50 write operations+1 operation to write the newly inserted block.
Total access are=101 operations (nA)

Linked allocation:
In this scheme, each file is a linked list of disc blocks that do not have to be contiguous. Disk blocks can be placed anywhere on the disc. The directory entry includes a reference to the beginning and end of the file block. Each block carries a reference to the next block occupied by the file.

For linked allocation,
we need to access the block from 1 to 50, new block access that should insert between 50 and 51 blocks, and access 51 blocks. So, the total access is 52.

Total access are= 50 read operations+ 1 operation delete next pointer of 50 th element +1 operation to connect it to the 51 th element.

Total access are=52 operations (nB)
Total operations are required= nA+ nB
Total operations are required= 101+52
Total operations are required= 153.
Hence the correct answer is 153.

10 videos|99 docs|33 tests
Information about Test: File Allocation Page
In this test you can find the Exam questions for Test: File Allocation solved & explained in the simplest way possible. Besides giving Questions and answers for Test: File Allocation, EduRev gives you an ample number of Online tests for practice

Top Courses for Computer Science Engineering (CSE)

10 videos|99 docs|33 tests
Download as PDF

Top Courses for Computer Science Engineering (CSE)