OS & Networking

File Systems — Practice MCQs for CCAT

20 Questions Section B: Programming OS & Networking

Practice 20 File Systems multiple-choice questions designed for CDAC CCAT exam preparation. Click "Show Answer" to reveal the correct option with detailed explanation.

Q1.
File allocation table (FAT) uses:
ALinked allocation
BIndexed allocation
CContiguous allocation
DNone
Show Answer & Explanation

Correct Answer: A — Linked allocation

FAT uses linked allocation with a table storing links.

Q2.
Inode in UNIX contains:
AFile name
BFile metadata (permissions, pointers)
COnly data
DOnly directory info
Show Answer & Explanation

Correct Answer: B — File metadata (permissions, pointers)

Inode stores file metadata: permissions, size, pointers to data blocks.

Q3.
Directory in file system is:
ASame as file
BSpecial file containing file entries
CNot a file
DHardware
Show Answer & Explanation

Correct Answer: B — Special file containing file entries

Directory is a special file that contains entries for files and subdirectories.

Q4.
Free space management uses:
ABit vector/Linked list
BOnly arrays
CNo method
DManual counting
Show Answer & Explanation

Correct Answer: A — Bit vector/Linked list

Free space tracked using bit vector, linked list, or grouping.

Q5.
Contiguous allocation has:
ANo fragmentation
BExternal fragmentation
CInternal fragmentation only
DNo disadvantage
Show Answer & Explanation

Correct Answer: B — External fragmentation

Contiguous allocation suffers from external fragmentation.

Q6.
Indexed allocation uses:
AFAT table
BIndex block with pointers
CContiguous blocks
DLinked list only
Show Answer & Explanation

Correct Answer: B — Index block with pointers

Indexed allocation uses an index block containing pointers to data blocks.

Q7.
Disk scheduling algorithm SCAN is also called:
ALOOK
BElevator algorithm
CSSTF
DFCFS
Show Answer & Explanation

Correct Answer: B — Elevator algorithm

SCAN moves like an elevator from one end to another.

Q8.
SSTF stands for:
AShortest Seek Time First
BSimple Scan Time First
CSystem Seek Transfer First
DStandard Sequential Transfer
Show Answer & Explanation

Correct Answer: A — Shortest Seek Time First

SSTF services request closest to current head position.

Q9.
Hard link vs Soft link:
ASame thing
BHard link shares inode, soft link is pointer
CSoft link shares inode
DNo difference
Show Answer & Explanation

Correct Answer: B — Hard link shares inode, soft link is pointer

Hard link shares inode (same file). Soft link is pointer to file path.

Q10.
Journaling file system:
AHas no recovery
BLogs changes for crash recovery
CIs slow only
DCannot recover
Show Answer & Explanation

Correct Answer: B — Logs changes for crash recovery

Journaling logs transactions to recover from crashes.

Q11.
File access methods include:
ASequential access only
BSequential, Direct, and Indexed
CRandom only
DNo access methods exist
Show Answer & Explanation

Correct Answer: B — Sequential, Direct, and Indexed

Files can be accessed sequentially, directly (random), or through indexed methods.

Q12.
RAID stands for:
ARandom Array of Independent Disks
BRedundant Array of Independent Disks
CRapid Access to Integrated Disks
DRedundant Access to Indexed Disks
Show Answer & Explanation

Correct Answer: B — Redundant Array of Independent Disks

RAID combines multiple disks for redundancy and/or performance improvement.

Q13.
RAID 0 provides:
ARedundancy only
BStriping without redundancy
CMirroring
DParity
Show Answer & Explanation

Correct Answer: B — Striping without redundancy

RAID 0 stripes data across disks for performance but provides no redundancy.

Q14.
RAID 1 provides:
AStriping
BMirroring for redundancy
CParity
DNo protection
Show Answer & Explanation

Correct Answer: B — Mirroring for redundancy

RAID 1 mirrors data across disks for redundancy.

Q15.
Boot block contains:
AUser files
BCode to boot the operating system
CApplication data
DTemporary files
Show Answer & Explanation

Correct Answer: B — Code to boot the operating system

Boot block contains the code needed to start and load the operating system.

Q16.
C-LOOK disk scheduling:
AScans in both directions
BScans in one direction only, jumps back
CUses random access
DIs same as FCFS
Show Answer & Explanation

Correct Answer: B — Scans in one direction only, jumps back

C-LOOK services requests in one direction, then jumps to start without servicing.

Q17.
Disk seek time is:
ATime to rotate disk
BTime to move head to correct track
CTime to transfer data
DTime to find file
Show Answer & Explanation

Correct Answer: B — Time to move head to correct track

Seek time is the time taken to move the disk head to the correct track.

Q18.
Rotational latency is:
ATime for head movement
BTime for disk sector to rotate under head
CData transfer time
DFile access time
Show Answer & Explanation

Correct Answer: B — Time for disk sector to rotate under head

Rotational latency is the time for the desired sector to rotate under the head.

Q19.
Free block list is maintained using:
AOnly linked list
BBit vector or linked list
COnly arrays
DNo data structure
Show Answer & Explanation

Correct Answer: B — Bit vector or linked list

Free blocks are tracked using bit vectors, linked lists, or grouping methods.

Q20.
Superblock in Unix contains:
AUser data only
BFile system metadata (size, block count, etc.)
COnly file names
DProcess information
Show Answer & Explanation

Correct Answer: B — File system metadata (size, block count, etc.)

Superblock contains file system metadata like size, number of blocks, and inodes.