Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q2241: The function WaitForSingleObject() is used here to ______.
  • A: wait for a thread to start
  • B: wait for process termination
  • C: wait for a file handle
  • D: wait for keyboard input
View Answer
B

Q2242: How does the program calculate elapsed process time?
  • A: exitTime - userTime
  • B: exitTime - createTime
  • C: kernelTime - userTime
  • D: createTime - exitTime
View Answer
B

Q2243: FILETIME is a union of LONGLONG and ______.
  • A: SYSTEMTIME
  • B: PROCESS_INFORMATION
  • C: FILETIME
  • D: HANDLE
View Answer
C

Q2244: The function FileTimeToSystemTime() converts ______ to SYSTEMTIME.
  • A: FILETIME
  • B: PROCESS_INFORMATION
  • C: OSVERSIONINFO
  • D: HANDLE
View Answer
A

Q2245: What kind of time does kernelTime represent in process timing?
  • A: Time spent in user mode
  • B: Time spent in kernel mode
  • C: Real elapsed time
  • D: Total CPU time
View Answer
B

Q2246: What does the program print with _tprintf related to process timing?
  • A: Real time, user time, and system time
  • B: CPU usage only
  • C: Memory usage
  • D: Thread count
View Answer
A

Q2247: The command-line argument count variable in the program is named ______.
  • A: argc
  • B: argv
  • C: targv
  • D: cLine
View Answer
A

Q2248: The program terminates with an error if the OS is not ______.
  • A: Windows 10
  • B: Windows 7
  • C: Windows NT kernel
  • D: Windows XP
View Answer
C

Q2249: What handle type is stored in procInfo.hProcess?
  • A: Thread handle
  • B: Process handle
  • C: File handle
  • D: Window handle
View Answer
B

Q2250: After process completion, which handles are closed by the program?
  • A: procInfo.hProcess only
  • B: procInfo.hThread only
  • C: procInfo.hThread and procInfo.hProcess
  • D: None
View Answer
C

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now