What role does an operating system's system-call interface serve?
Systemcalls Online Quiz Questions
Use this free practice quiz with 20 questions to review Systemcalls, test your knowledge, and prepare for your next test or exam.
Select all statements that correctly describe exit or waitpid.
- A
exitterminates the process that calls it. - B
waitpidcreates a child process and starts it running. - C
waitpidblocks until the specified process finishes. - D
waitpidcan optionally receive status information and options.
Signals let the kernel communicate with processes, and a process can ask the kernel to send a signal to another process.
- A
True
- B
False
After a successful fork() call, what numeric value does the child process receive as the return value?
The exec call the current process's program with a new executable without creating or destroying a process.
Describe how a parent process can use fork, child-side exec, and waiting to run a new command in a child process.
How does a process use a system call to perform a privileged operation, such as accessing a file?
- A
A process directly performs privileged operations in kernel space without involving the OS.
- B
A system call allows the process to bypass the OS's access-control decisions.
- C
A process asks the OS to perform a privileged operation on its behalf.
- D
A system call gives the process permanent control over other processes.
Select all statements that correctly describe processes' requests for privileged operations and the kernel's role.
- A
A process can request that the OS perform a privileged operation on its behalf.
- B
A process can directly manage other processes without the OS.
- C
Accessing files is an example of a privileged operation.
- D
Kernel control over privileged operations lets the OS enforce rules such as file access control.
In the usual fork-and-exec pattern for running a command in a child, the parent calls exec to replace its own program, while the child waits for the parent.
- A
True
- B
False
In execl("/bin/ls", "ls", "-l", NULL), what exact string is passed as the target program's first command-line argument (argv[0])?
To wait for a particular child process, waitpid is given its . The call until that process finishes.
After a successful fork, how can the child and parent distinguish which process is running?
- A
The child receives 0, and the parent receives the child’s process ID.
- B
Both processes receive the same positive process ID.
- C
Both processes receive 0.
- D
The child receives the parent’s process ID, and the parent receives 0.
A registered signal handler runs when its process receives the corresponding signal, interrupting the normal flow of execution.
- A
True
- B
False
What is the name of the standardized OS abstraction implemented by systems including Linux and macOS?
A process calls exec to run a new executable. What happens to the process itself?
- A
The current process is transformed in place to run the new program.
- B
A new process is created, and the current process is unchanged.
- C
The current process is destroyed, and a new process is created.
- D
The current process and its program are both unchanged.
waitpid blocks until the process it is waiting for finishes.
- A
True
- B
False
After fork creates a child, which system call does the child use to replace its program with the new command?
Which function requests that a signal be sent to another process identified by its process ID?
- A
raise(sig) - B
kill(pid, sig) - C
signal(sig, handler) - D
waitpid(pid, NULL, 0)
After a successful fork, what numeric value does the child process receive as the call’s return value?
What does a process use a system call to do when it needs a privileged operation, such as accessing a file?
- A
It directly performs any privileged operation from user space.
- B
It transfers control of all its memory to another process.
- C
It requests that the OS perform a privileged operation on its behalf.
- D
It prevents the kernel from enforcing access-control rules.
Related study packs and tools
- Study guide
02 — Information and Representation
A progressive guide to how computers encode numbers, text, images, and sound as binary data, including the trade-offs and limits of digital representation.
- Quiz
2 Digital Logic
A 14-question medium-difficulty quiz on Boolean algebra, logic gates, truth tables, and combinational circuits.
- Flashcards
03 — Python Programming Fundamentals
A focused set of flashcards covering Python variables, data types, expressions, control flow, functions, input, output, and common programming practices.
- Study guide
3 CPU Architecture
Learn how registers, the ALU, datapath connections, and control logic work together to fetch and execute CPU instructions.
- Study guide
05 — Data Structures: Concepts, Operations, and Trade-Offs
A structured guide to the main data structures, their operations, efficiency trade-offs, representations, and practical selection criteria.
- Study guide
6 Computer Memory
Learn how computer memory stores and addresses information, how RAM and ROM differ, and how caches and the memory hierarchy balance speed, capacity, and cost.
- Study guide
07 Trees and Binary Search Trees
A progressive guide to tree structure, binary-tree traversals, binary search tree operations, deletion, balancing, and the way tree height determines time and space costs.
- Flashcards
08 — Discrete Mathematics for Computer Science
A focused review of propositional logic, quantifiers, sets, relations, functions, and foundational proof methods in discrete mathematics for computer science.
- Study guide
8 Software Documentation
Learn how to choose, structure, document, and maintain software documentation for users, developers, integrators, and operators.
- Study guide
9 Sorting Algorithms
A structured guide to comparison-based sorting algorithms, their complexity, stability, memory use, and practical selection criteria.
- Study guide
10 — Data, Systems, and Applications
A progression through how data is organized, searched, exposed through software interfaces, and managed through abstraction layers in modern computer systems.
- Quiz
12 — Foundations Capstone
A medium-difficulty quiz on integrating problem definition, representation, algorithms, complexity analysis, testing, correctness, ethical evaluation, and documentation in a computer science capstone.