Circle the best answer: NOTE: If you don\'t know the answer plz to solve it Thx
ID: 3631957 • Letter: C
Question
Circle the best answer:NOTE: If you don't know the answer plz to solve it
Thx
--------------------------------
1) File structures mainly deal with
A. Primary memory
B. Cache memory
C. Secondary memory
D. Tertiary memory
2) The main goal of file structures is to minimize
A. the CPU execution time
B. memory requirements for storing data
C. the number of used files
D. the number of disk accesses
3) A Java program normally deals with
A. Logical files
B. Physical files
C. System files
D. Image files
4) A C++ logical file name is likely to be
A. “account.txt”
B. fstream outfile
C. “input.txt”
D. cout
5) The method for organizing fields in a record that has the slowest access time is called
A. Fixed-length fields
B. Length indicator
C. Delimiter
D. Keyword = value
6) The method for organizing fields in a record that allows for missing data is called
A. Fixed-length fields
B. Length indicator
C. Delimiter
D. Keyword = value
7) To read the 10th record, we need to first seek using :
(assume that record length is 100 bytes and RRN starts from 0)
A. infile.seekg( 900, ios::beg )
B. infile.seekg( 1000, ios::beg )
C. infile.seekg( 1100, ios::beg )
D. infile.seekg( 1200, ios::beg )
8) Which of the following storage methods would require the least time to access the file:
A. File stored on sectors of different tracks but in same platter.
B. File stored on consecutive sectors of the same track and in the same platter.
C. File stored on the same sector of the same track but in different platters. D. File stored on sectors of different tracks but in different platters.
9) To store data for long-term archival purposes, _______ are commonly used.
A. RAMs
B. Disks
C. Caches
D. Tapes
10) The main disadvantage of CDs as compared to magnetic disks is:
A. CDs have poor seek time.
B. CDs are more expensive
C. CDs are not durable
D. CDs can be easily scratched
Explanation / Answer
1) File structures mainly deal with C. Secondary memory 2) The main goal of file structures is to minimize D. the number of disk accesses 3) A Java program normally deals with A. Logical files 4) A C++ logical file name is likely to be B. fstream outfile 5) The method for organizing fields in a record that has the slowest access time is called D. Keyword = value 6) The method for organizing fields in a record that allows for missing data is called D. Keyword = value 7) To read the 10th record, we need to first seek using : (assume that record length is 100 bytes and RRN starts from 0) A. infile.seekg( 900, ios::beg ) 8) Which of the following storage methods would require the least time to access the file: C. File stored on the same sector of the same track but in different platters. 9) To store data for long-term archival purposes, _______ are commonly used D. Tapes 10) The main disadvantage of CDs as compared to magnetic disks is: A. CDs have poor seek time.