EX chapter 3 Flashcards
1. The \_\_\_\_ of a process contains temporary data such as function parameters, return addresses, and local variables. A) text section B) data section C) program counter D) stack
Ans: D
Feedback: 3.1.1
Difficulty: Easy
- A process control block ____.
A) includes information on the process’s state
B) stores the address of the next instruction to be processed by a different process
C) determines which process is to be executed next
D) is an example of a process queue
Ans: A
Feedback: 3.1.3
Difficulty: Easy
3. The list of processes waiting for a particular I/O device is called a(n) \_\_\_\_. A) standby queue B) device queue C) ready queue D) interrupt queue
Ans: B
Feedback: 3.2.1
Difficulty: Easy
4. The \_\_\_\_\_\_\_\_\_\_\_\_\_ refers to the number of processes in memory. A) process count B) long-term scheduler C) degree of multiprogramming D) CPU scheduler
Ans: C
Feedback: 3.2.2
Difficulty: Easy
- When a child process is created, which of the following is a possibility in terms of the execution or address space of the child process?
A) The child process runs concurrently with the parent.
B) The child process has a new program loaded into it.
C) The child is a duplicate of the parent.
D) All of the above
Ans: D
Feedback: 3.3.1
Difficulty: Easy
6. A \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_ saves the state of the currently running process and restores the state of the next process to run. A) save-and-restore B) state switch C) context switch D) none of the above
Ans: C
Feedback: 3.2.3
Difficulty: Easy
7. A process may transition to the Ready state by which of the following actions? A) Completion of an I/O event B) Awaiting its turn on the CPU C) Newly-admitted process D) All of the above
Ans: D
Feedback: 3.1.2
Difficulty: Easy
8. In a(n) \_\_\_\_ temporary queue, the sender must always block until the recipient receives the message. A) zero capacity B) variable capacity C) bounded capacity D) unbounded capacity
Ans: A
Feedback: 3.4.2
Difficulty:Easy
9. A blocking send() and blocking receive() is known as a(n) \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_ A) synchronized message B) rendezvous C) blocked message D) asynchronous message
Ans: B
Feedback: 3.4.2.2
Difficulty:Easy
10 . Which of the following is true in a Mach operating system?
A) All messages have the same priority.
B) Multiple messages from the same sender are guaranteed an absolute ordering.
C) The sending thread must return immediately if a mailbox is full.
D) It is not designed for distributed systems.
Ans: A
Feedback: 3.5.2
Difficulty: Moderate
11. When communicating with sockets, a client process initiates a request for a connection and is assigned a port by the host computer. Which of the following would be a valid port assignment for the host computer? A) 21 B) 23 C) 80 D) 1625
Ans: D
Feedback: 3.6.1
Difficulty: Moderate
12. A(n) \_\_\_\_\_\_\_\_\_\_\_\_\_\_ allows several unrelated processes to use the pipe for communication. A) named pipe B) anonymous pipe C) LIFO D) ordinary pipe
Ans: B
Feedback: 3.6.3.2
Difficulty: Moderate
- Which of the following statements is true?
A) Shared memory is typically faster than message passing.
B) Message passing is typically faster than shared memory.
C) Message passing is most useful for exchanging large amounts of data.
D) Shared memory is far more common in operating systems than message passing.
Ans:A
Feedback: 3.4
Difficulty: Moderate
- Imagine that a host with IP address 150.55.66.77 wishes to download a file from the web server at IP address 202.28.15.123. Select a valid socket pair for a connection between this pair of hosts.
A) 150.55.66.77:80 and 202.28.15.123:80
B) 150.55.66.77:150 and 202.28.15.123:80
C) 150.55.66.77:2000 and 202.28.15.123:80
D) 150.55.66.77:80 and 202.28.15.123:3500
Ans:C
Feedback: 3.6.1
Difficulty: Moderate
- Child processes inherit UNIX ordinary pipes from their parent process because:
A) The pipe is part of the code and children inherit code from their parents.
B) A pipe is treated as a file descriptor and child processes inherit open file descriptors from their parents.
C) The STARTUPINFO structure establishes this sharing.
D) All IPC facilities are shared between the parent and child processes.
Ans:B
Feedback: 3.6.3.1
Difficulty: Moderate
- Which of the following statements is true?
A) Named pipes do not allow bi-directional communication.
B) Only the parent and child processes can use named pipes for communication.
C) Reading and writing to ordinary pipes on both UNIX and Windows systems can be performed like ordinary file I/O.
D) Named pipes can only be used by communicating processes on the same machine.
Ans: C
Feedback: 3.6.3
Difficulty: Moderate
17. Which of the following is not a process type in the Chrome browser? A) Plug-in B) Renderer C) Sandbox D) Browser
Ans: C
Feedback: 3.4
Difficulty: Medium
18. The \_\_\_\_\_\_\_\_ application is the application appearing on the display screen of a mobile device. A) main B) background C) display D) foreground
Ans: D
Feedback: 3.2.3
Difficulty: Easy
19. A process that has terminated, but whose parent has not yet called wait(), is known as a \_\_\_\_\_\_\_\_ process. A) zombie B) orphan C) terminated D) init
Ans: A
Feedback: 3.3.2
Difficulty: Medium