Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q2251: The main function type used in this program is named ______.
  • A: main
  • B: WinMain
  • C: _tmain
  • D: processMain
View Answer
C

Q2252: The variable elTiSys holds the ______ time converted from FILETIME.
  • A: elapsed
  • B: kernel
  • C: user
  • D: creation
View Answer
A

Q2253: Which function is used to get the full command line as a single string?
  • A: GetCommandLine()
  • B: CreateProcess()
  • C: SkipArg()
  • D: ReportError()
View Answer
A

Q2254: What is the purpose of the SkipArg() function in the code?
  • A: Skip past the executable name
  • B: Get OS version
  • C: Convert FILETIME
  • D: Start process
View Answer
B

Q2255: The program only runs on which Windows platform?
  • A: Windows 7
  • B: Windows NT kernels
  • C: Windows XP
  • D: Windows Vista
View Answer
B

Q2256: Which structure is used for file time arithmetic?
  • A: FILETIME
  • B: LONGLONG
  • C: STARTUPINFO
  • D: PROCESS_INFORMATION
View Answer
B

Q2257: Which function starts a new process?
  • A: CreateProcess()
  • B: GetProcessTimes()
  • C: GetCommandLine()
  • D: WaitForSingleObject()
View Answer
A

Q2258: What does GetProcessTimes() retrieve?
  • A: Process IDs
  • B: Process execution times
  • C: Process priorities
  • D: Handles
View Answer
B

Q2259: The variable 'hProc' stores the ____.
  • A: Process handle
  • B: Process ID
  • C: Thread ID
  • D: Process priority
View Answer
A

Q2260: What is the main role of WaitForSingleObject() here?
  • A: Wait for process to finish
  • B: Wait for user input
  • C: Wait for OS startup
  • D: Wait for thread start
View Answer
A

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now