wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

MCQ on CO4 Disk Storage and File Systems

Total questions: 100

Worksheet time: 50mins

Name
Class
Date
1.

A file is updated 5 times in 5 minutes, and each update causes the entire segment (1 MB) to be rewritten. What total disk space is used after 5 updates?

a)

1 MB

b)

5 MB

c)

500 KB

d)

2 MB

2.

To optimize performance, which of the following should be scheduled during low system load in LFS?

a)

Checkpoint writing

b)

Segment cleaning

c)

Inode table compression

d)

Log truncation

3.

After a power failure, the LFS system appears to have lost recent file changes. Which component might not have updated in time?

a)

Segment summary

b)

Inode map

c)

Checkpoint region

d)

Directory cache

4.

You observe that your LFS file system is using disk space inefficiently. What is the likely cause?

a)

Infrequent checkpointing

b)

Overwritten inodes

c)

High number of partially full segments

d)

File read bottlenecks

5.

Why does an LFS require more RAM compared to traditional file systems?

a)

It loads all file contents into RAM

b)

It stores directory entries in memory

c)

It caches inode maps and segment usage tables

d)

It performs compression in RAM

6.

You design a system using LFS but experience high memory usage. What is a practical solution?

a)

Increase inode size

b)

Cache only recent parts of the inode map

c)

Remove the log structure

d)

Use swap space

7.

You need to reduce the garbage collection overhead in an LFS-based file system. Which approach would be most effective?

a)

Decrease the segment size

b)

Use a better segment cleaning policy

c)

Increase the number of inodes

d)

Enable journaling

8.

Distributed file systems store data across multiple nodes to ensure availability. Which system is an example?

a)

Ceph

b)

NTFS

c)

FAT32

d)

ext3

9.

In HDFS, data is divided into fixed-size blocks and distributed. What is the default block size?

a)

64 MB

b)

128 MB

c)

256 MB

d)

512 MB

10.

Contiguous allocation stores files in consecutive blocks. What is the main drawback of this method?

a)

Fast access

b)

External fragmentation

c)

Simplified bookkeeping

d)

No fragmentation

11.

Sequential allocation is best suited for which type of files?

a)

Random access files

b)

Sequential access files

c)

Database files

d)

Executable files

12.

Indexed allocation uses an index block to store pointers. What advantage does it have over sequential allocation?

a)

Supports direct access

b)

Uses less disk space

c)

Faster sequential access

d)

No need for index blocks

13.

Which type of allocation allows random access without external fragmentation?

a)

Contiguous

b)

Sequential

c)

Indexed

d)

Linked

14.

Ceph uses an algorithm to distribute data evenly across disks. What is this algorithm called?

a)

RAID

b)

CRUSH

c)

Consistent Hashing

d)

Replication

15.

In a distributed computing environment, systems often need access to shared data. NFS allows multiple machines to access files from a common location. Identify the key benefit provided by NFS.

a)

Faster local storage access

b)

Data redundancy

c)

Centralized file access over a network

d)

Improved CPU performance

16.

High-speed data access is crucial for real-time applications. Some storage technologies are designed for ultra-low latency. Select the technology optimized for fastest access.

a)

SATA SSD

b)

NVMe SSD

c)

HDD

d)

Tape storage

17.

Operating systems provide a consistent way for applications to interact with files, regardless of underlying storage types. This logical layer abstracts file operations. Identify this component.

a)

File system interface

b)

I/O scheduler

c)

Disk controller

d)

Virtual memory

18.

Organizations using AWS need scalable, shared file storage across multiple instances. One service in AWS supports elastic file systems with POSIX compliance. Choose the correct AWS service.

a)

Google Filestore

b)

Azure Blob Storage

c)

Amazon EFS

d)

Dropbox

19.

Unix systems maintain metadata like ownership, timestamps, and access permissions in a special structure. This structure does not store file data directly. Identify the structure used.

a)

Directory entry

b)

Inode

c)

File descriptor

d)

Superblock

20.

When creating a file in Unix, the system must reserve a metadata structure for it. A specific system call handles this allocation. Choose the call responsible for inode reservation.

a)

alloc

b)

namei

c)

ialloc

d)

ifree

21.

Cloud-based applications require scalable storage for images, logs, and unstructured data. Microsoft Azure provides an object storage solution optimized for this. Select the suitable service.

a)

Azure Files

b)

Blob Storage

c)

Google Cloud Storage

d)

Amazon Glacier

22.

Disk scheduling manages order of disk I/O requests.

a)

FCFS

b)

Round Robin

c)

LRU

d)

SSTF

23.

Block device drivers handle:

a)

Byte-by-byte data

b)

Fixed-size blocks

c)

Network packets

d)

Interrupt requests

24.

SCAN scheduling moves disk head:

a)

Randomly

b)

In one direction only

c)

Back and forth

d)

Only forward

25.

The elevator algorithm in disk scheduling is also known as:

a)

SSTF

b)

SCAN

c)

C-SCAN

d)

FIFO

26.

Character device drivers provide access to:

a)

Random access files

b)

Sequential data streams

c)

Block data

d)

System logs

27.

Device drivers act as an interface between:

a)

Hardware and applications

b)

Kernel and user

c)

Hardware and kernel

d)

User and file system

28.

AI-enhanced disk scheduling improves efficiency by:

a)

Predicting requests

b)

Increasing buffer size

c)

Encrypting data

d)

Reducing disk size

29.

Kernel-bypass I/O frameworks like io_uring use shared queues to manage multiple I/O requests without kernel switches. Which data structure manages these requests?

a)

Submission & completion queues

b)

Blocking calls

c)

Polling

d)

Synchronous I/O

30.

RDMA allows direct memory access between computers bypassing the OS. How does RDMA reduce CPU overhead?

a)

Kernel bypass

b)

More interrupts

c)

Kernel threads

d)

Buffer copying

31.

DPDK achieves high throughput by avoiding kernel networking stack. Which technique does it use?

a)

Poll mode drivers

b)

Interrupt-driven I/O

c)

Kernel modules

d)

File buffering

32.

RDMA requires specific hardware for zero-copy transfers. Which hardware enables this?

a)

RDMA-enabled NICs

b)

Standard NICs

c)

CPUs

d)

Disk controllers

33.

DPDK processes packets in user space. How are packets received from NIC hardware?

a)

Poll mode drivers

b)

Interrupt-driven I/O

c)

Kernel modules

d)

Buffers

34.

RDMA uses certain transport protocols for data transfer. Which is commonly used?

a)

InfiniBand

b)

TCP

c)

UDP

d)

HTTP

35.

Kernel-bypass I/O like io_uring reduces latency by minimizing what?

a)

Context switches

b)

Memory usage

c)

Disk writes

d)

File descriptor access

36.

A system using LFS writes 5 small files in rapid succession. What performance benefit can be expected compared to a traditional file system?

a)

Lower memory usage

b)

Reduced read latency

c)

Improved sequential write throughput

d)

Increased file fragmentation

37.

An LFS writes a new version of a file every minute. Each version takes 4 KB. How many versions can fit in a 1 MB segment before the segment becomes full?

a)

64

b)

256

c)

128

d)

512

38.

A flash-based embedded system uses LFS. You notice system slowdowns during heavy writes. What would be the most effective optimization?

a)

Increase segment size

b)

Run garbage collection during idle times

c)

Disable segment cleaning

d)

Decrease checkpoint interval

39.

If each inode is 128 bytes and you need to manage 10,000 files, how much space is needed for just the inodes in LFS?

a)

1.28 MB

b)

128 KB

c)

10 MB

d)

512 KB

40.

An LFS has 10 segments with the following live data percentages: [90, 10, 20, 80, 40, 30, 15, 95, 60, 50]. Which segments should the cleaner target first to reclaim space efficiently?

a)

Segments with > 50% live data

b)

Segments with < 50% live data

c)

Segments with 100% live data

d)

Segments in sequential order

41.

You are evaluating LFS and ext4 for a mobile OS. The workload is 90% writes and runs on NAND flash. Which system offers better long-term performance and endurance?

a)

ext4

b)

LFS

c)

Both are equal

d)

Depends on RAM size

42.

In indexed allocation, what data structure is crucial for fast access to file blocks?

a)

Index block

b)

File descriptor

c)

Directory entry

d)

Inode

43.

Analyze fragmentation: Which allocation type suffers the most from internal fragmentation?

a)

Contiguous

b)

Indexed

c)

Sequential

d)

None

44.

What is the effect of replication factor in distributed file systems like Ceph and HDFS?

a)

Improves performance

b)

Reduces storage usage

c)

Increases fault tolerance

d)

Lowers latency

45.

In distributed file systems, which layer typically handles client requests for file operations?

a)

Metadata server

b)

Data node

c)

Client node

d)

Network interface

46.

Evaluate the impact of contiguous allocation on file deletion and creation speed.

a)

Faster

b)

Slower

c)

No effect

d)

Depends on file size

47.

Ceph uses a distributed hash table. What is the primary purpose of this structure?

a)

Data encryption

b)

Data location and lookup

c)

File compression

d)

Data replication

48.

Which allocation method is most space-efficient for small files with random access?

a)

Contiguous

b)

Sequential

c)

Indexed

d)

Linked

49.

Network file access can be achieved through several protocols. One major benefit of NFS compared to FTP is its design to maintain no client state. Identify this feature.

a)

Secure login

b)

Stateless communication

c)

File compression

d)

Authentication

50.

Operating systems may support different file systems like ext4, FAT32, or NTFS. One abstraction layer allows uniform access across them. Identify this layer.

a)

Implements disk I/O

b)

Manages CPU registers

c)

Provides abstraction over multiple FS

d)

Handles process scheduling

51.

Data-intensive applications such as machine learning benefit from a particular memory type that combines speed and persistence. Identify the suitable storage medium.

a)

HDD

b)

Optical Disk

c)

Persistent Memory

d)

Tape

52.

A fully managed service in Google Cloud Platform provides scalable file storage compatible with NFS. It is used with VMs and containers. Choose the correct service.

a)

Azure Files

b)

Google Filestore

c)

Dropbox

d)

Box

53.

Buffer cache in Unix stores frequently accessed file blocks in memory to improve system performance.

a)

Speeds up file system access

b)

Increases CPU speed

c)

Reduces network traffic

d)

Caches DNS queries

54.

Object storage manages data as discrete units with metadata. What key advantage does it have over block storage?

a)

Better metadata handling

b)

Lower cost

c)

Higher read/write speed

d)

More complex file system

55.

Driver buffering improves performance by:

a)

Reducing CPU cycles

b)

Minimizing disk seeks

c)

Avoiding deadlocks

d)

Lowering power usage

56.

The main limitation of SSTF is:

a)

Starvation

b)

Long wait times

c)

High CPU usage

d)

Excessive buffering

57.

Which disk scheduling algorithm guarantees fairness by processing requests in arrival order?

a)

SSTF

b)

FCFS

c)

SCAN

d)

C-SCAN

58.

Device drivers provide hardware abstraction by:

a)

Hiding hardware details

b)

Increasing latency

c)

Direct memory access

d)

Network management

59.

Block device drivers handle I/O in:

a)

Bytes

b)

Fixed-size blocks

c)

Variable-sized packets

d)

Packets

60.

Batching I/O in io_uring affects syscall overhead by?

a)

Reducing it

b)

Increasing it

c)

Causing latency

d)

No change

61.

Which RDMA protocol supports lossless Ethernet?

a)

RoCE

b)

TCP

c)

UDP

d)

HTTP

62.

Kernel bypassing in DPDK impacts security by requiring?

a)

User space security

b)

Same kernel protections

c)

Reduced security

d)

No change

63.

io_uring signals I/O completion through?

a)

Completion queue polling

b)

Blocking waits

c)

Interrupts

d)

Signals

64.

Hardware ensures RDMA transfers do not interfere with system by?

a)

Memory protection

b)

Software locks

c)

Kernel mediation

d)

Polling

65.

Binding NICs to DPDK drivers causes?

a)

NIC unavailable to kernel stack

b)

NIC available everywhere

c)

System instability

d)

No effect

66.

io_uring instance is created with which syscall?

a)

io_uring_setup()

b)

epoll()

c)

select()

d)

read()

67.

A Log-Structured File System writes data in segments of 16 MB each. If a disk has a write bandwidth of 200 MB/s and the cleaning efficiency is 80%, how much time will it take to write 1 GB of new data including cleaning overhead?

a)

5.0 seconds

b)

6.25 seconds

c)

8.0 seconds

d)

10.0 seconds

68.

If a file system using Copy-on-Write (CoW) has a disk bandwidth of 300 MB/s and snapshot creation takes 0.5 s, what is the maximum size of the snapshot data that can be created without impacting ongoing writes assuming writes take 3 seconds for 900 MB?

a)

100 MB

b)

150 MB

c)

200 MB

d)

250 MB

69.

In an HDFS cluster with 5 data nodes, each with 4 TB storage, and a replication factor of 3, what is the effective usable storage?

a)

6.67 TB

b)

12.5 TB

c)

20 TB

d)

60 TB

70.

A file system uses contiguous allocation on a disk of 1 TB with block size 4 KB. If a file is 100 MB, how many contiguous blocks does it occupy?

a)

25600 blocks

b)

25000 blocks

c)

26000 blocks

d)

20000 blocks

71.

A disk with 1000 cylinders is at cylinder 200, and requests arrive for cylinders 100, 350, 600, and 900. Using SCAN (elevator) scheduling towards higher cylinders first, calculate total head movement.

a)

1200 cylinders

b)

1100 cylinders

c)

1300 cylinders

d)

No Match

72.

An RDMA device transfers data at 10 Gbps. How many megabytes per second does this correspond to?

a)

1250 MB/s

b)

1000 MB/s

c)

1024 MB/s

d)

800 MB/s

73.

A Log-Structured File System segment size is 32 MB. Cleaning reclaims 70% of the segment. If writing a 1 GB file requires cleaning 5 segments, how much extra write overhead (in MB) does cleaning cause?

a)

48 MB

b)

96 MB

c)

112 MB

d)

160 MB

74.

If a Btrfs snapshot copies 20% of a 500 MB file system, how much additional storage is needed?

a)

100 MB

b)

200 MB

c)

400 MB

d)

20 MB

75.

A Ceph cluster uses replication factor 3 with 15 TB raw storage. What is the effective storage?

a)

10 TB

b)

5TB

c)

45TB

d)

15TB

76.

If a file system uses single-level index blocks of 4 KB, block pointers 4 bytes, how many data blocks can it point to?

a)

4096

b)

1024

c)

2048

d)

512

77.

Maximum File Size (Direct + Single Indirect + Double Indirect) Given: 12 direct blocks, 1 single indirect block, 1 double indirect block, block size 4 KB, pointer size 4 bytes. Calculate max file size.

a)

64 MB

b)

260 MB

c)

4 GB

d)

16 MB

78.

Cache size 64 buffers of 4 KB. A 1 MB file is accessed repeatedly 5 times. How many cache hits after first read?

a)

960

b)

2560

c)

1024

d)

1280

79.

NVMe device has 15 µs latency and throughput 350,000 IOPS. What is the max throughput in MB/s (block size 4 KB)?

a)

1.4 GB/s

b)

1.3 GB/s

c)

1.2 GB/s

d)

1.1 GB/s

80.

Azure charges $0.0184 per GB per month. Using 750 GB for 4 months, what's the cost?

a)

$55.20

b)

$60.30

c)

$45.20

d)

$50.00

81.

Google Filestore reports 10,000 IOPS on a 1 TB instance. If block size is 8 KB, what is throughput in MB/s?

a)

80 MB/s

b)

78 MB/s

c)

90 MB/s

d)

85 MB/s

82.

Using FCFS, Requests at cylinders: 45, 180, 10, 90, current at 50, calculate total head movement.

a)

275

b)

300

c)

330

d)

295

83.

Using SSTF, Requests at cylinders: 45, 180, 10, 90, current at 50, calculate total head movement.

a)

300

b)

400

c)

330

d)

No Match

84.

If AI reduces average seek time by 20% from 8 ms to what?

a)

6.0 ms

b)

7.0 ms

c)

5.5 ms

d)

6.4 ms

85.

Block device with block size 512 bytes does 1000 IOPS, throughput?

a)

2 MB/s

b)

0.5 MB/s

c)

0.6 MB/s

d)

1 MB/s

86.

Character device transmits 115,200 baud with 8 data bits, 1 stop bit, no parity. Effective data rate in bytes per second?

a)

12,800 B/s

b)

14,400 B/s

c)

11,520 B/s

d)

10,000 B/s

87.

If io_uring reduces latency by 30% from 50 µs, what is new latency?

a)

30 µs

b)

40 µs

c)

38 µs

d)

35 µs

88.

10 Gbps link with 80% utilization, effective bandwidth MB/s?

a)

800 MB/s

b)

1250 MB/s

c)

1000 MB/s

d)

1024 MB/s

89.

If ialloc takes 0.2 ms and ifree 0.1 ms, time for 500 allocations and 300 frees?

a)

140 ms

b)

150 ms

c)

130 ms

d)

160 ms

90.

If NFS adds 5 ms latency per operation and local FS latency is 1 ms, total for 100 ops?

a)

700 ms

b)

400 ms

c)

500 ms

d)

600 ms

91.

Persistent memory write bandwidth 3 GB/s, file size 600 MB, write time?

a)

0.6 s

b)

0.2 s

c)

0.3 s

d)

0.5 s

92.

Disk with queue depth 32 and avg service time 10 ms, max IOPS?

a)

2500

b)

3000

c)

3200

d)

2800

93.

AWS EFS throughput 100 MB/s per TB, with 3 TB used, throughput?

a)

250 MB/s

b)

200 MB/s

c)

350 MB/s

d)

300 MB/s

94.

If disk I/O wait is 5 ms and CPU runs at 2 GHz with 1 instruction per cycle, how many instructions lost during wait?

a)

10 million

b)

5 million

c)

7 million

d)

15 million

95.

Doubling block size from 4 KB to 8 KB decreases number of blocks by?

a)

100%

b)

75%

c)

50%

d)

25%

96.

If DPDK transfers 8 million packets/sec at avg packet size 512 bytes, throughput?

a)

3 GB/s

b)

4 GB/s

c)

5 GB/s

d)

6 GB/s

97.

A Unix file system allocates 1 inode per 4 KB. If a disk has 40 GB usable space, how many inodes can be created?

a)

20,480

b)

10,240

c)

102,400

d)

40,960

98.

A file uses 10 direct blocks, 1 single indirect block (holds 256 addresses), and 1 double indirect ( 2562256^2 ). What is max file size with 4 KB blocks?

a)

268 MB

b)

300 MB

c)

264 MB

d)

270 MB

99.

A disk request queue is optimized by AI-based scheduling, reducing average seek time from 9 ms to 4 ms. If 5000 operations are processed, how much time is saved?

a)

22 seconds

b)

20 seconds

c)

30 seconds

d)

25 seconds

100.

Azure Blob storage charges 0.02perGB/monthand0.02 per GB/month and 0.05 per 1000 transactions. You store 500 GB and perform 100,000 operations/month. What's total cost?

a)

$10.50

b)

$15

c)

$11

d)

$13