System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q2411: What does _ttoi function do in the program?
- A: Converts string to integer
- B: Converts integer to string
- C: Opens a process
- D: Terminates a process
View Answer
A
Q2412: What does the function GetArgs do in the JobShell program?
- A: Parses command line arguments
- B: Creates a new process
- C: Terminates a process
- D: Resumes a thread
View Answer
A
Q2413: Which macro defines one million in the program?
- A: MILLION
- B: MIL
- C: MIO
- D: ONE_MILLION
View Answer
A
Q2414: A thread is an independent unit of ______ within a process.
- A: execution
- B: memory
- C: storage
- D: network
View Answer
A
Q2415: In a multi-threaded system, multiple threads may exist within a single ______.
- A: process
- B: thread
- C: function
- D: module
View Answer
A
Q2416: One challenge in multi-threaded systems is ______ and coordinating multiple threads.
- A: organizing
- B: ignoring
- C: deleting
- D: saving
View Answer
A
Q2417: Using threads can simplify certain ______ problems.
- A: programming
- B: networking
- C: marketing
- D: sales
View Answer
A
Q2418: Single-threaded processes running concurrently usually have the disadvantage of time-consuming and expensive ______ among processes.
- A: switching
- B: sharing
- C: coding
- D: compiling
View Answer
A
Q2419: Threads allow concurrent processing of the same ______, reducing overheads.
- A: function
- B: memory
- C: disk
- D: network
View Answer
A
Q2420: Independent processes are usually not tightly ______, making resource sharing difficult.
- A: coupled
- B: linked
- C: separated
- D: encrypted
View Answer
A