System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q1561: The data type used to store the key and data in the RECORD structure is ______.
- A: TCHAR
- B: INT
- C: CHAR
- D: FLOAT
View Answer
A
Q1562: The function used to create a file mapping object in Win32 is ______.
- A: CreateFileMapping
- B: OpenFileMapping
- C: MapViewOfFile
- D: CloseHandle
View Answer
A
Q1563: The function MapViewOfFile returns a pointer to the ______ of the mapped file.
- A: memory view
- B: file descriptor
- C: file handle
- D: offset
View Answer
B
Q1564: The size of the record in the program is defined by the macro ______.
- A: REx:SIZE
- B: REX_SIZE
- C: REX.SIZE
- D: REX_SIZE
View Answer
A
Q1565: The qsort function requires a ______ function defined by the programmer to compare records.
- A: record sorting
- B: record comparison
- C: file reading
- D: file writing
View Answer
B
Q1566: The temporary file used for sorting is deleted at the ______ of the program.
- A: beginning
- B: end
- C: middle
- D: after sorting
View Answer
D
Q1567: The sorting example assumes the key size is ______ bytes.
- A: 4
- B: 8
- C: 16
- D: 32
View Answer
B
Q1568: The sorted output is printed using the function ______.
- A: _tprintf
- B: printf
- C: puts
- D: puts_s
View Answer
A
Q1569: In the program, GetFileSizeEx is used to obtain the ______ of the file.
- A: size
- B: content
- C: type
- D: access rights
View Answer
A
Q1570: The program uses CopyFile to make a temporary file with the ______ content as the original.
- A: exact
- B: modified
- C: encrypted
- D: compressed
View Answer
A