Skip to main content

Introduction to Computing MCQs with Answers

Practice important Introduction to Computing MCQs with answers and explanations.

Chapter: 163
Q2281:
Fill in the blank: In a sequential file, each logical record in a text file is typically encoded using __________.
A. ASCII or Unicode
B. Binary or Hexadecimal
C. Hexadecimal or Base64
D. ASCII or Base64
Correct Answer: B
Chapter: 164
Q2282:
What is the purpose of an indexed file?
A. To store data in sequential order
B. To retrieve records in an unpredictable order quickly
C. To store files in a hierarchical structure
D. To index file names alphabetically
Correct Answer: B
Chapter: 164
Q2283:
How does an index in a file system work?
A. It contains a list of keys and the locations of records associated with those keys
B. It stores data in a random order
C. It organizes data into separate files
D. It encrypts the file’s data for security
Correct Answer: A
Chapter: 164
Q2284:
Where is an index for a file typically stored?
A. On a separate mass storage device
B. On the same mass storage device as the indexed file
C. Inside the indexed file itself
D. In the CPU’s cache
Correct Answer: B
Chapter: 164
Q2285:
What is a classic example of an indexed file usage?
A. Employee records indexed by identification numbers
B. Audio CDs indexed by track names
C. Text documents indexed by creation date
D. All of the above
Correct Answer: A
Chapter: 164
Q2286:
How does an indexed file improve record retrieval?
A. It avoids lengthy searches by providing direct access to the record’s location
B. It stores records in a pre-sorted order
C. It compresses records to reduce access time
D. It encrypts records for faster decryption
Correct Answer: A
Chapter: 164
Q2287:
What is a hierarchical index?
A. A layered or tree-structured index used to organize file storage
B. A linear index with records sorted alphabetically
C. A simple list of file names without additional structure
D. A numeric list of file sizes and locations
Correct Answer: A
Chapter: 164
Q2288:
What role do directories play in a hierarchical index system?
A. They act as indexes containing links to sub-indexes
B. They store files in a sequential manner
C. They encrypt the files for security
D. They compress the files for faster access
Correct Answer: A
Chapter: 164
Q2289:
In the context of audio CDs, how is indexing used?
A. It allows quick access to individual recordings by locating their positions on the CD
B. It stores all recordings in a continuous track
C. It arranges recordings in alphabetical order
D. It encodes recordings for better sound quality
Correct Answer: A
Chapter: 164
Q2290:
Fill in the blank: An indexed file system is similar to an index in a book, which helps in __________.
A. Locating topics quickly
B. Sorting pages alphabetically
C. Encrypting the book
D. Compressing text
Correct Answer: A
Chapter: 164
Q2291:
Fill in the blank: An index for a file typically contains a list of __________ and the locations where records are stored.
A. Keys
B. Authors
C. Topics
D. Pages
Correct Answer: A
Chapter: 165
Q2292:
What is the main advantage of hashing over indexing?
A. Less overhead for index maintenance
B. More detailed record storage
C. Ability to sort records quickly
D. Improved encryption of records
Correct Answer: A
Chapter: 165
Q2293:
In a hash system, what does a hash function do?
A. Converts key values into bucket numbers
B. Sorts records alphabetically
C. Encrypts the data
D. Compresses the data
Correct Answer: A
Chapter: 165
Q2294:
How are records stored in a hash system?
A. According to a hash function that maps keys to buckets
B. Alphabetically in a linear order
C. In chronological order by insertion time
D. In a binary tree structure
Correct Answer: A
Chapter: 165
Q2295:
What is a bucket in the context of a hash file?
A. A section of storage capable of holding several records
B. A type of index for quick access
C. A format for sorting records
D. A special data encryption unit
Correct Answer: A
Chapter: 165
Q2296:
What is the result of applying a hash function to a key value?
A. A bucket number
B. An encrypted key
C. A sorted record
D. A compressed data block
Correct Answer: A
Chapter: 165
Q2297:
How is a record retrieved from a hash file?
A. By applying the hash function to the key and searching the corresponding bucket
B. By searching through the entire file linearly
C. By using an index to locate the record
D. By decrypting the data block
Correct Answer: A
Chapter: 165
Q2298:
What is a hash table?
A. A storage structure in main memory that uses hashing for retrieval
B. A file stored on disk with an index
C. A database with hierarchical organization
D. A sorted list of keys and values
Correct Answer: A
Chapter: 165
Q2299:
In a hash system, how is a record's location determined?
A. By applying the hash function to the key value
B. By searching the index for the key value
C. By sorting records by their keys
D. By encrypting the key and searching the result
Correct Answer: A
Chapter: 165
Q2300:
Fill in the blank: Hashing identifies the location of a record directly from its __________.
A. Key value
B. Index number
C. Record type
D. Encryption code
Correct Answer: A

Test Your Knowledge

Take a timed quiz on Introduction to Computing

🚀 Start Quiz Now