System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q2541: The original return type of _beginthreadex() is not ______.
- A: HANDLE
- B: DWORD
- C: int
- D: BOOL
View Answer
A
Q2542: strtok() can cause problems when used in a ______ environment.
- A: multithreaded
- B: single-threaded
- C: serial
- D: asynchronous
View Answer
A
Q2543: The C library threading functions are ______ than Windows threading functions.
- A: more complex
- B: simpler
- C: less reliable
- D: identical
View Answer
B
Q2544: Using Windows threading functions and C library threading functions together can cause ______ problems.
- A: thread-safety
- B: synchronization
- C: performance
- D: compatibility
View Answer
A
Q2545: To program a multithreaded C application safely, use ______ library functions.
- A: Windows threading
- B: standard C
- C: thread-safe C
- D: non-thread-safe C
View Answer
C
Q2546: In multithreaded pattern searching, a separate thread is created for each ______ to search the pattern.
- A: file
- B: pattern
- C: process
- D: function
View Answer
A
Q2547: In synchronous input-output, execution stops when a keyboard button is pressed until the button is ______.
- A: released
- B: pressed
- C: waited
- D: stopped
View Answer
A
Q2548: In asynchronous input-output, a sound card can play a song while other operations are ______ performed.
- A: concurrently
- B: sequentially
- C: delayed
- D: not
View Answer
B
Q2549: The main problem in multithreaded pattern searching arises when multiple processes try to ______ a single file simultaneously.
- A: write
- B: read
- C: open
- D: close
View Answer
A
Q2550: Which function is used to create a worker thread in the example code?
- A: _beginthreadex
- B: CreateThread
- C: ExitThread
- D: WaitForMultipleObjects
View Answer
A