System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q1501: What parameter in OpenFileMapping() specifies the desired access?
- A: dwDesiredAccess
- B: bInheritHandle
- C: lpMapName
- D: hFile
View Answer
A
Q1502: The bInheritHandle parameter in OpenFileMapping() determines if the handle is _______.
- A: Inheritable
- B: Non-inheritable
- C: Read-only
- D: Read-write
View Answer
A
Q1503: What is lpMapName used for in OpenFileMapping()?
- A: Name of mapping
- B: Size of mapping
- C: Security attributes
- D: File handle
View Answer
A
Q1504: If the specified map name does not exist, the OpenFileMapping() call will _______.
- A: Succeed
- B: Fail
- C: Wait
- D: Ignore
View Answer
B
Q1505: A file map created by one process can be used by other processes by referring to its _______.
- A: Handle
- B: File path
- C: Name
- D: Size
View Answer
C
Q1506: The dwDesiredAccess parameter is checked against the access assigned by _______.
- A: OpenFileMapping()
- B: CreateFileMapping()
- C: CloseHandle()
- D: ReadFile()
View Answer
B
Q1507: OpenFileMapping() is primarily used to access _______.
- A: Open files
- B: Existing file mappings
- C: New file mappings
- D: Temporary files
View Answer
B
Q1508: The handle returned by OpenFileMapping() can be used for further _______.
- A: File operations
- B: File deletion
- C: File copying
- D: File renaming
View Answer
A
Q1509: OpenFileMapping() allows processes to share memory by opening a file map by its _______.
- A: Size
- B: Name
- C: Creation time
- D: Access rights
View Answer
B
Q1510: If bInheritHandle is TRUE, the handle can be inherited by _______.
- A: Child processes
- B: Parent processes
- C: All processes
- D: No process
View Answer
A