System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q2261: Which function converts FILETIME to SYSTEMTIME?
- A: FileTimeToSystemTime()
- B: GetVersionEx()
- C: CreateProcess()
- D: SkipArg()
View Answer
A
Q2262: If argc <= 1 or SkipArg returns NULL, what happens?
- A: Program continues
- B: Reports usage error and exits
- C: Starts default process
- D: Waits for input
View Answer
B
Q2263: Which API checks the OS version?
- A: GetVersionEx()
- B: CreateProcess()
- C: GetCommandLine()
- D: SkipArg()
View Answer
A
Q2264: What priority is given to the created process?
- A: NORMAL_PRIORITY_CLASS
- B: HIGH_PRIORITY_CLASS
- C: REALTIME_PRIORITY_CLASS
- D: IDLE_PRIORITY_CLASS
View Answer
A
Q2265: What does the elapsedTime variable represent?
- A: Difference between exit and creation times
- B: Sum of user and kernel time
- C: Total CPU idle time
- D: Memory usage
View Answer
A
Q2266: Which two handles are closed at the end?
- A: Process and thread handles
- B: Process handle only
- C: Thread handle only
- D: No handles closed
View Answer
A
Q2267: What happens if the platform ID is not VER_PLATFORM_WIN32_NT?
- A: Program exits with error
- B: Continues normally
- C: Shows warning
- D: Skips execution
View Answer
A
Q2268: _tprintf() in this program is used to ____.
- A: Print formatted output
- B: Start process
- C: Get OS version
- D: Convert time
View Answer
A
Q2269: The code example is mainly about measuring ____.
- A: Process execution times
- B: Memory usage
- C: Network speed
- D: Disk I/O
View Answer
A
Q2270: ReportError() is called to ____.
- A: Print error and optionally exit
- B: Log information
- C: Start process
- D: Convert time
View Answer
A