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

Test: File Systems-2 - Computer Science Engineering (CSE) MCQ


Test Description

20 Questions MCQ Test Operating System - Test: File Systems-2

Test: File Systems-2 for Computer Science Engineering (CSE) 2024 is part of Operating System preparation. The Test: File Systems-2 questions and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus.The Test: File Systems-2 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 Systems-2 below.
Solutions of Test: File Systems-2 questions in English are available as part of our Operating System for Computer Science Engineering (CSE) & Test: File Systems-2 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 Systems-2 | 20 questions in 60 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 Systems-2 - Question 1

In __________ disk scheduling algorithm, the disk head moves from one end to other end of the disk, serving the requests along the way. When the head reaches the other end, it immediately returns to the beginning of the disk without serving any requests on the return trip.

Detailed Solution for Test: File Systems-2 - Question 1

In C-SCAN disk scheduling algorithm, the disk head serve the request from ine end to other end but when it reaches to other end it immediately returns to the starting of the disk without serving any request. Refer:Disk Scheduling Algorithms So option (D) is correct.

Test: File Systems-2 - Question 2

Suppose there are six files F1, F2, F3, F4, F5, F6 with corresponding sizes 150 KB, 225 KB, 75 KB, 60 KB, 275 KB and 65 KB respectively. The files are to be stored on a sequential device in such a way that optimizes access time. In what order should the files be stored ?

Detailed Solution for Test: File Systems-2 - Question 2

For access time optimization sort the files in incresing order of file size. So, option (B) is correct.

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

A system uses FIFO policy for page replacement. It has 4 page frames with no pages loaded to begin with. The system first accesses 50 distinct pages in some order and then accesses the same 50 pages in reverse order. How many page faults will occur?

Detailed Solution for Test: File Systems-2 - Question 3

Access to 50 pages will cause 50 page faults. When these pages are accessed in reverse order, the first four accesses will not cause page fault. All other access to pages will cause page faults. So total number of page faults will be 50 + 46 = 96. Option (A) is correct.

Test: File Systems-2 - Question 4

A virtual memory system uses FIFO page replacement policy and allocates a fixed number of frames to the process. Consider the following statements

M : Increasing the number of page frames allocated to a process sometimes increases the page fault rate

N : Some programs do not exhibit locality of reference Which one of the following is true?

Detailed Solution for Test: File Systems-2 - Question 4

First In First Out Page Replacement Algorithms: This is the simplest page replacement algorithm. In this algorithm, operating system keeps track of all pages in the memory in a queue, oldest page is in the front of the queue. When a page needs to be replaced page in the front of the queue is selected for removal.

FIFO Page replacement algorithms suffers from Belady’s anomaly :

Belady’s anomaly states that it is possible to have more page faults when increasing the number of page frames.

Test: File Systems-2 - Question 5

Consider a disk sequence with 100 cylinders. The request to access the cylinder occur in the following sequence : 4, 34, 10, 7, 19, 73, 2, 15, 6, 20 Assuming that the head is currently at cylinder 50, what is the time taken to satisfy all requests if it takes 2 ms to move from one cylinder to adjacent one and shortest seek time first policy is used?

Detailed Solution for Test: File Systems-2 - Question 5

4, 34, 10, 7, 19, 73, 2, 15, 6, 20 Since shortest seek time first policy is used, head will first move to 34. This move will cause 16*2 ms. After 34, head will move to 20 which will cause 14*1 ms. And so on. So cylinders are accessed in following order 34, 20, 19, 15, 10, 7, 6, 4, 2, 73 and total time will be (16 + 14 + 1 + 4 + 15 + 3 + 1 + 1 + 1 + 71)*2 = 238 ms. So option (B) is correct.

Test: File Systems-2 - Question 6

Match the following w.r.t. Input/Output management

37

Detailed Solution for Test: File Systems-2 - Question 6
  1. Device controller performs data transfer.
  2. Device driver process I/O request.
  3. Inturrupt handler Extracts information from the controller register and store it in data buffer
  4. Kernel I/O subsystem performs I/O scheduling./li> So, option (A) is correct.
Test: File Systems-2 - Question 7

There are 200 tracks on a disc platter and the pending requests have come in the order - 36, 69, 167, 76, 42, 51, 126, 12 and 199. Assume the arm is located at the 100 track and moving towards track 199. If sequence of disc access is 126, 167, 199, 12, 36, 42, 51, 69 and 76 then which disc access scheduling policy is used?

Detailed Solution for Test: File Systems-2 - Question 7

The algorithm looks similar to C- Scan.

Option (C) is correct.

 

Test: File Systems-2 - Question 8

Consider a file currently consisting of 50 blocks. Assume that the file control block and the index block is already in memory. If a block is added at the end (and the block information to be added is stored in memory), then how many disk I/O operations are required for indexed (single-level) allocation strategy?

Detailed Solution for Test: File Systems-2 - Question 8

According to question file control block and the index block is already in memory. So, we don't need to transfer them from anywhere else for further operation. If a block is added at the end (and the block information to be added is stored in memory), this is a single operation. So we need only one I/O operation required for indexed (single-level) allocation strategy. So, option (A) is correct.

Test: File Systems-2 - Question 9

In case of a DVD, the speed of data transfer is mentioned in multiples of?

Detailed Solution for Test: File Systems-2 - Question 9

In case of a DVD, the speed of data transfer in a DVD is typically 1,385,000 bytes per second i.e. equal to 1.38 MB / sec Option (B) is correct.

Test: File Systems-2 - Question 10

The primary purpose of an operating system is

Detailed Solution for Test: File Systems-2 - Question 10

An operating system has three main functions: (1) manage the computer's resources, such as the central processing unit, memory, and other input - output sources

(2) establish a user interface, and

(3) execute and provide services for applications software. OS provides an interface between the user and the hardware and thus making the computer easy to use for the user but the primary function of OS is to manage the hardware in the most efficient way. So, option (A) is correct.

Test: File Systems-2 - Question 11

Consider a disk pack with 16 surfaces, 128 tracks per surface and 256 sectors per track. 512 bytes of data are stores in a bit serial manner in a sector. The capacity of the disk pack and the number of bits required to specify a particular sector in the disk are respectively

Detailed Solution for Test: File Systems-2 - Question 11

Capacity of the disk = 16 surfaces X 128 tracks X 256 sectors X 512 bytes = 256 Mbytes. To calculate number of bits required to access a sector, we need to know total number of sectors. Total number of sectors = 16 surfaces X 128 tracks X 256 sectors = 2^19 So the number of bits required to access a sector is 19. Option (A) is correct.

Test: File Systems-2 - Question 12

The total time to prepare a disk drive mechanism for a block of data to be read from it is

Detailed Solution for Test: File Systems-2 - Question 12

Seek time is the time taken by the head to move to the correct track and Rotational latency is the time taken by the disk to rotate until the head is over the desired block to read So, the total time to prepare a disk drive mechanism for a block of data to be read from is the sum of both the seek time and the latency. Option (C) is correct.

Test: File Systems-2 - Question 13

Special software to create a job queue is called a

Detailed Solution for Test: File Systems-2 - Question 13

Spooler is a software which works on creating a typical request queue where data, instructions and processes from multiple sources are accumulated for execution later on. Generally, it is maintained on computer’s physical memory, buffers or the I/O device-specific interrupts. The spool is processed in FIFO manner i.e. whatever first instruction is there in the queue will be popped and executed. Option (B) is correct.

Test: File Systems-2 - Question 14

Which of the following is an example of spooled device?

Detailed Solution for Test: File Systems-2 - Question 14

Spooling works like a typical request queue where data, instructions and processes from multiple sources are accumulated for execution later on. Generally, it is maintained on computer’s physical memory, buffers or the I/O device-specific interrupts. The spool is processed in FIFO manner i.e. whatever first instruction is there in the queue will be popped and executed. Example: printer Option (A) is correct.

Test: File Systems-2 - Question 15

Disk requests are received by a disk drive for cylinder 5, 25, 18, 3, 39, 8 and 35 in that order. A seek takes 5 msec per cylinder moved. How much seek time is needed to serve these requests for a Shortest Seek First (SSF) algorithm? Assume that the arm is at cylinder 20 when the last of these requests is made with none of the requests yet served

Detailed Solution for Test: File Systems-2 - Question 15

The arm is at cylinder 20, so the service order = 18, 25, 35, 39, 8, 5, 3. Seek time = (20−18) + (25−18) + (35−25) + (39−35) + (39−8) + (8−5) + (5−3) = 2 + 7 + 10 + 4 + 31 + 3 + 2 = 59 Total seek time = 59 * 5 = 295 Option (B) is correct.

Test: File Systems-2 - Question 16

A read bit can be read

Detailed Solution for Test: File Systems-2 - Question 16

The read and write functionality depends on the type of microcontroller peripheral. Generally, the status bits have a read only status and can be modified by peripherals only. So, read bit can be read by CPU and written by the peripheral. Option (D) is correct.

Test: File Systems-2 - Question 17

A particular disk unit uses a bit string to record the occupancy or vacancy of its tracks, with 0 denoting vacant and 1 for occupied. A 32-bit segment of this string has hexadecimal value D4FE2003. The percentage of occupied tracks for the corresponding part of the disk, to the nearest percentage is

Detailed Solution for Test: File Systems-2 - Question 17

D4FE2003 = 1101 0100 1111 1110 0010 0000 0000 0011 Total bits = 32 Total bits which are occupied, i.e. with value 1 = 14 Percentage of occupied tracks = 14/32 * 100 = 43.75 = 44 So, option (D) is correct.

Test: File Systems-2 - Question 18

Disk requests come to a disk driver for cylinders in the order 10, 22, 20, 2, 40, 6, and 38 at a time when the disk drive is reading from cylinder 20. The seek time is 6 ms/cylinder. The total seek time, if the disk arm scheduling algorithms is first-come-first-served is

Detailed Solution for Test: File Systems-2 - Question 18

FCFS Total seek time in FCFS Scheduling when the disk drive is reading from cylinder 20 for cylinders in the order 10, 22, 20, 2, 40, 6, and 38 :
= (10 + 12 + 2 + 18 + 38 + 34 + 32)*6
= 146*6
= 876 ms
As no other option matches the answer, option (D) is correct.

Test: File Systems-2 - Question 19

A computer has 1000 K of main memory. The jobs arrive and finish in the sequence Job 1 requiring 200 K arrives Job 2 requiring 350 K arrives Job 3 requiring 300 K arrives Job 1 finishes Job 4 requiring 120 K arrives Job 5 requiring 150 K arrives Job 6 requiring 80 K arrives Among best fit and first fit, which performs better for this sequence?

Detailed Solution for Test: File Systems-2 - Question 19

Main memory = 1000K Job 1 requiring 200 K arrives Job 2 requiring 350 K arrives Job 3 requiring 300 K arrives and assuming continuous allocation: Free memory = 1000 − 850(200 + 350 + 300) = 150 K (till these jobs first fit and best fit are same) Since, job 1 finishes, Free memory = 200 K and 150 K Case 1: First fit Job 4 requiring 120 K arrives Since 200 K will be the first slot, so Job 4 will acquire this slot only. Remaining memory = 200 - 120 = 80 K Job 5 requiring 150 K arrives It will acquire 150 K slot Job 6 requiring 80 K arrives It will occupy 80 K slot, so, all jobs will be allocated successfully. Case 2: Best fit Job 4 requiring 120 K arrives It will occupy best fit slot which is 150 K. So, remaining memory = 150 − 120 = 30 K Job 5 requiring 150 K arrives It will occupy 200 K slot. So, free space = 200 − 150 = 50 K Job 6 requiring 80 K arrives There is no continuous 80 K memory free. So, it will not be able to allocate. So, first fit is better. Option (A) is correct.

Test: File Systems-2 - Question 20

Consider the following five disk five disk access requests of the form (request id, cylinder number) that are present in the disk scheduler queue at a given time.

(P, 155), (Q, 85), (R, 110), (S, 30), (T, 115)

Assume the head is positioned at cylinder 100. The scheduler follows Shortest Seek Time First scheduling to service the requests. Which one of the following statements is FALSE ?

Detailed Solution for Test: File Systems-2 - Question 20

According to Shortest Seek Time First (SSTF) is a disk scheduling algorithm:

Therefore, option (B) is False.

10 videos|99 docs|33 tests
Information about Test: File Systems-2 Page
In this test you can find the Exam questions for Test: File Systems-2 solved & explained in the simplest way possible. Besides giving Questions and answers for Test: File Systems-2, 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)