System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q2221: The GetProcessTimes() function requires a ______ as its first parameter.
- A: Process ID
- B: Process handle
- C: Thread handle
- D: Window handle
View Answer
B
Q2222: GetProcessTimes() returns time information in the form of ______.
- A: DWORD
- B: FILETIME
- C: SYSTEMTIME
- D: TIMESTAMP
View Answer
B
Q2223: The FILETIME structure is a ______-bit value.
- A: 32
- B: 64
- C: 128
- D: 16
View Answer
B
Q2224: To calculate the elapsed time of a process, you subtract ______ from ______.
- A: Creation time from kernel time
- B: Exit time from creation time
- C: User time from kernel time
- D: Exit time from user time
View Answer
B
Q2225: GetThreadTime() requires a ______ handle as a parameter.
- A: Process
- B: Thread
- C: Window
- D: File
View Answer
B
Q2226: The process handle passed to GetProcessTimes() can be for the current process or a ______.
- A: Suspended process
- B: Running process
- C: Terminated process
- D: Idle process
View Answer
C
Q2227: The GetProcessTimes() function returns times related to ______.
- A: Kernel mode and user mode execution
- B: File access and network usage
- C: Memory allocation and paging
- D: Disk I/O and interrupt handling
View Answer
A
Q2228: GetThreadTime() provides timing information about a ______.
- A: Process
- B: Thread
- C: File
- D: Device
View Answer
B
Q2229: GetProcessTimes() returns all EXCEPT:
- A: Creation time
- B: Exit time
- C: Kernel time
- D: CPU temperature
View Answer
D
Q2230: To use GetProcessTimes(), the application must provide a valid ______.
- A: Process ID
- B: Process handle
- C: Thread ID
- D: Thread handle
View Answer
B