Q#1: A file is:
(A) A collection of related information stored on secondary storage
(B) CPU register
(C) Cache line
(D) Memory block
Answer: (A) A collection of related information stored on secondary storage
Q#2: File attributes include:
(A) Name, type, size, location, protection, timestamps
(B) CPU registers
(C) Cache line
(D) Memory block
Answer: (A) Name, type, size, location, protection, timestamps
Q#3: File operations include:
(A) Create, delete, open, close, read, write, append, rename
(B) Only CPU scheduling
(C) Memory allocation
(D) Cache management
Answer: (A) Create, delete, open, close, read, write, append, rename
Q#4: File types include:
(A) Text, binary, executable, directory
(B) CPU registers
(C) Memory blocks
(D) Cache lines
Answer: (A) Text, binary, executable, directory
Q#5: Sequential access file allows:
(A) Reading/writing data in a linear order
(B) Random access
(C) CPU registers
(D) Cache access
Answer: (A) Reading/writing data in a linear order
Q#6: Direct (random) access file allows:
(A) Accessing data at any location directly
(B) Linear access only
(C) CPU registers
(D) Cache lines
Answer: (A) Accessing data at any location directly
Q#7: File operations are requested using:
(A) File descriptors or file handles
(B) CPU registers
(C) Cache lines
(D) Memory blocks
Answer: (A) File descriptors or file handles
Q#8: File opening involves:
(A) Checking access permissions and returning a file descriptor
(B) CPU register allocation
(C) Cache management
(D) Memory allocation
Answer: (A) Checking access permissions and returning a file descriptor
Q#9: File closing involves:
(A) Releasing file descriptor and updating file metadata
(B) CPU idle
(C) Cache replacement
(D) Memory allocation
Answer: (A) Releasing file descriptor and updating file metadata
Q#10: File pointer indicates:
(A) Current location for read/write operations
(B) CPU register
(C) Cache line
(D) Disk block
Answer: (A) Current location for read/write operations
Q#11: File system provides:
(A) Logical view of files and directories
(B) CPU scheduling
(C) Memory allocation
(D) Cache management
Answer: (A) Logical view of files and directories
Q#12: Directory is:
(A) A file containing names and pointers to other files
(B) CPU register
(C) Memory block
(D) Cache line
Answer: (A) A file containing names and pointers to other files
Q#13: Directory operations include:
(A) Create, delete, rename, list contents, search
(B) CPU registers
(C) Cache lines
(D) Memory blocks
Answer: (A) Create, delete, rename, list contents, search
Q#14: Absolute path name specifies:
(A) Complete path from root directory
(B) Current directory only
(C) CPU register
(D) Cache line
Answer: (A) Complete path from root directory
Q#15: Relative path name specifies:
(A) Path relative to current working directory
(B) Root directory only
(C) CPU register
(D) Cache line
Answer: (A) Path relative to current working directory
Q#16: File protection ensures:
(A) Only authorized access to files
(B) CPU scheduling
(C) Memory allocation
(D) Cache replacement
Answer: (A) Only authorized access to files
Q#17: File permission types include:
(A) Read, write, execute
(B) CPU registers
(C) Cache lines
(D) Memory blocks
Answer: (A) Read, write, execute
Q#18: File system call is:
(A) Interface for programs to request file operations from OS
(B) CPU register
(C) Memory block
(D) Cache line
Answer: (A) Interface for programs to request file operations from OS
Q#19: Examples of file system calls include:
(A) open(), read(), write(), close(), unlink()
(B) CPU instructions
(C) Memory allocation calls
(D) Cache management calls
Answer: (A) open(), read(), write(), close(), unlink()
Q#20: File system maintains:
(A) Metadata such as size, timestamps, pointers to blocks
(B) CPU registers only
(C) Cache lines only
(D) Memory blocks only
Answer: (A) Metadata such as size, timestamps, pointers to blocks
Q#21: Contiguous allocation stores file:
(A) In consecutive blocks on disk
(B) Random blocks
(C) CPU registers
(D) Cache lines
Answer: (A) In consecutive blocks on disk
Q#22: Linked allocation stores file:
(A) As linked list of disk blocks
(B) Contiguous blocks
(C) CPU registers
(D) Cache lines
Answer: (A) As linked list of disk blocks
Q#23: File allocation table (FAT) keeps:
(A) List of disk blocks and links for files
(B) CPU registers
(C) Memory blocks
(D) Cache lines
Answer: (A) List of disk blocks and links for files
Q#24: Indexed allocation uses:
(A) An index block containing pointers to all file blocks
(B) Linked list only
(C) Contiguous allocation
(D) CPU registers
Answer: (A) An index block containing pointers to all file blocks
Q#25: Advantages of indexed allocation:
(A) Supports direct access efficiently
(B) Sequential only
(C) CPU idle
(D) Cache only
Answer: (A) Supports direct access efficiently
Q#26: Contiguous allocation suffers from:
(A) External fragmentation
(B) Internal fragmentation
(C) CPU idle
(D) Cache miss
Answer: (A) External fragmentation
Q#27: Linked allocation suffers from:
(A) Inefficient direct access
(B) CPU idle
(C) Disk failure
(D) Cache miss
Answer: (A) Inefficient direct access
Q#28: File system interface provides:
(A) Abstraction and uniform access to files
(B) CPU registers
(C) Memory blocks
(D) Cache only
Answer: (A) Abstraction and uniform access to files
Q#29: File descriptors are:
(A) Integer identifiers for open files
(B) CPU registers
(C) Cache lines
(D) Memory blocks
Answer: (A) Integer identifiers for open files
Q#30: Current working directory is:
(A) Directory from which relative paths are resolved
(B) Root directory only
(C) CPU register
(D) Cache line
Answer: (A) Directory from which relative paths are resolved
Q#31: Timestamps in files include:
(A) Creation, modification, last access times
(B) CPU register
(C) Cache line
(D) Memory block
Answer: (A) Creation, modification, last access times
Q#32: Hidden files are:
(A) Not listed in normal directory listings
(B) Deleted files
(C) CPU registers
(D) Cache lines
Answer: (A) Not listed in normal directory listings
Q#33: Read-only files allow:
(A) Reading but not modification
(B) Writing only
(C) Deletion only
(D) CPU access only
Answer: (A) Reading but not modification
Q#34: Executable files contain:
(A) Program code ready to run
(B) Text data only
(C) CPU instructions only
(D) Cache lines only
Answer: (A) Program code ready to run
Q#35: Directory structure can be:
(A) Single-level, two-level, hierarchical, acyclic graph, general graph
(B) Only flat
(C) CPU register
(D) Cache line
Answer: (A) Single-level, two-level, hierarchical, acyclic graph, general graph
Q#36: Single-level directory has:
(A) All files in one directory
(B) Multiple directories
(C) CPU registers
(D) Cache lines
Answer: (A) All files in one directory
Q#37: Two-level directory separates:
(A) User directories from root
(B) Only CPU registers
(C) Cache lines
(D) Memory blocks
Answer: (A) User directories from root
Q#38: Hierarchical directory allows:
(A) Nested directories forming a tree
(B) Only flat structure
(C) CPU registers
(D) Cache lines
Answer: (A) Nested directories forming a tree
Q#39: File system interface hides:
(A) Physical storage details from user programs
(B) CPU registers
(C) Cache lines
(D) Memory blocks
Answer: (A) Physical storage details from user programs
Q#40: Logical file system manages:
(A) Metadata, naming, and directory structure
(B) CPU registers
(C) Memory blocks
(D) Cache lines
Answer: (A) Metadata, naming, and directory structure
Q#41: File system calls allow:
(A) User programs to perform file operations
(B) Only CPU operations
(C) Only cache operations
(D) Only memory management
Answer: (A) User programs to perform file operations
Q#42: Protection mechanisms include:
(A) Permissions, access control lists (ACLs), and encryption
(B) CPU scheduling
(C) Memory allocation
(D) Cache management
Answer: (A) Permissions, access control lists (ACLs), and encryption
Q#43: Hard links point to:
(A) Same inode as the original file
(B) Different inodes
(C) CPU registers
(D) Cache line
Answer: (A) Same inode as the original file
Q#44: Soft links (symbolic links) point to:
(A) File name rather than inode
(B) Same inode
(C) CPU register
(D) Memory block
Answer: (A) File name rather than inode
Q#45: File system consistency is maintained using:
(A) Journaling, write-ahead logs, or checkpoints
(B) CPU registers only
(C) Cache only
(D) Memory only
Answer: (A) Journaling, write-ahead logs, or checkpoints
Q#46: File deletion involves:
(A) Removing directory entry and freeing disk blocks
(B) CPU idle
(C) Cache flush
(D) Memory allocation
Answer: (A) Removing directory entry and freeing disk blocks
Q#47: Disk quota prevents:
(A) Users from consuming excessive disk space
(B) CPU usage
(C) Memory overflow
(D) Cache overflow
Answer: (A) Users from consuming excessive disk space
Q#48: File locking prevents:
(A) Concurrent conflicting access to files
(B) CPU idle
(C) Cache access
(D) Memory allocation
Answer: (A) Concurrent conflicting access to files
Q#49: Mounting a file system means:
(A) Making it accessible at a directory in the existing file system
(B) CPU scheduling
(C) Memory allocation
(D) Cache management
Answer: (A) Making it accessible at a directory in the existing file system
Q#50: Main goal of file-system interface:
(A) Efficient, secure, and convenient access to files
(B) CPU optimization only
(C) Cache management only
(D) Memory allocation only
Answer: (A) Efficient, secure, and convenient access to files