System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q1571: The sorting method used in the program is based on ______ access to data.
- A: random
- B: sequential
- C: streaming
- D: indexed
View Answer
A
Q1572: Exception and error handling in the sorting program are ______ in the listing but available in the full example.
- A: included
- B: omitted
- C: required
- D: optional
View Answer
B
Q1573: The program structure is described as ______ and straightforward.
- A: complex
- B: simple
- C: unclear
- D: verbose
View Answer
B
Q1574: The file mapping view is created by calling ______.
- A: MapViewOfFile
- B: CloseHandle
- C: CreateFileMapping
- D: OpenFileMapping
View Answer
A
Q1575: In the RECORD struct, the data field is named ______.
- A: data
- B: info
- C: key
- D: value
View Answer
A
Q1576: The sorting algorithm is applied directly on the file content via ______.
- A: memory mapping
- B: file stream
- C: buffer
- D: file descriptor
View Answer
A
Q1577: Deleting the temporary file at the end is done by calling ______.
- A: DeleteFile
- B: CloseHandle
- C: RemoveFile
- D: DeleteTempFile
View Answer
A
Q1578: File maps with pointers can become meaningless on remapping because pointers are relative to _______.
- A: the virtual address returned by MapViewOfFile
- B: a fixed memory address
- C: the start of the disk file
- D: the process stack
View Answer
A
Q1579: In file mapping, the solution to make pointers valid across mappings is to use _______.
- A: absolute pointers
- B: static pointers
- C: based pointers
- D: global pointers
View Answer
C
Q1580: The Microsoft C syntax for based pointers uses which keyword?
- A: based
- B: _relative
- C: _based
- D: _pointer
View Answer
C