System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q1991: Which function is used to retrieve the full path of an executable?
- A: GetCommandLine()
- B: GetProcessPath()
- C: GetModuleFileName()
- D: SetModuleName()
View Answer
C
Q1992: OpenProcess() requires the following parameters except:
- A: Access rights
- B: Process ID
- C: bInheritHandle
- D: Thread name
View Answer
D
Q1993: Which of the following flags gives full access to a process?
- A: PROCESS_ALL_ACCESS
- B: PROCESS_LIMITED_ACCESS
- C: SYNCHRONIZE
- D: PROCESS_READONLY
View Answer
A
Q1994: GetCurrentProcess() returns an actual handle object.
- A: A
- B: B
- C:
- D:
View Answer
B
Q1995: GetModuleFileNameEx() can be used to get the module path of another process.
- A: A
- B: B
- C:
- D:
View Answer
A
Q1996: The PROCESS_INFORMATION structure contains thread and process IDs.
- A: A
- B: B
- C:
- D:
View Answer
A
Q1997: TerminateProcess() can only be used if PROCESS_TERMINATE flag was specified.
- A: A
- B: B
- C:
- D:
View Answer
A
Q1998: A pseudohandle is always inheritable by child processes.
- A: A
- B: B
- C:
- D:
View Answer
B
Q1999: OpenProcess() does not require a valid process ID.
- A: A
- B: B
- C:
- D:
View Answer
B
Q2000: GetCurrentProcessId() is used to obtain a unique identifier for the current process.
- A: A
- B: B
- C:
- D:
View Answer
A