Docsity

Operating System Concepts: Processes, Memory, and I/O, Exams of Computer Science

Toggle sidebar
bg1
ICLICKER QUESTIONS AND ANSWERS
How does the Direct Memory Access Controller inform the CPU that it has finished
transferring a clock of information
A. CPU senses it automatically.
B. CPU keeps polling the DMA Controller.
C. It sends an Interrupt request.
D. The DMA controller becomes the CPU. - Answers -C. It sends an Interrupt request.
A Device Driver is the same thing as a Device Controller.
A. No, but it is enough to use just one of the two.
B. The Device Driver is software while the Device Controller is hardware.
C. The Device Driver is hardware while the Device Controller is software.
D. Yes, everyone knows that. - Answers -B. The Device Driver is software while the
Device Controller is hardware.
How many Megabytes are there in a Terabyte?
A. 1 TB = 1,000 MB
B. 1 TB = 10,000 MB
C. 1 TB = 1,000,000 MB
D. do we really need to know that? - Answers -C. 1 TB = 1,000,000 MB
You need multiple processors to allow multiprogramming.
A. True, obviously
B. Only if the processors are not powerful enough
C. Not really.
D. Not sure - Answers -C. Not really.
What does the following Linux shell command do? (assuming System% is the system
prompt)
System% ps
A. Repeat the previous command
B. Persons who are logged on the system
C. List of processes
D. Print the list of services - Answers -C. List of processes
What is POSIX?
A. The complete set of Portable Operating Systems device driver components.
B. An IEEE standard for Graphical User Interfaces
pf3

Partial preview of the text

Download Operating System Concepts: Processes, Memory, and I/O and more Exams Computer Science in PDF only on Docsity!

ICLICKER QUESTIONS AND ANSWERS

How does the Direct Memory Access Controller inform the CPU that it has finished transferring a clock of information A. CPU senses it automatically. B. CPU keeps polling the DMA Controller. C. It sends an Interrupt request. D. The DMA controller becomes the CPU. - Answers -C. It sends an Interrupt request. A Device Driver is the same thing as a Device Controller. A. No, but it is enough to use just one of the two. B. The Device Driver is software while the Device Controller is hardware. C. The Device Driver is hardware while the Device Controller is software. D. Yes, everyone knows that. - Answers -B. The Device Driver is software while the Device Controller is hardware. How many Megabytes are there in a Terabyte? A. 1 TB = 1,000 MB B. 1 TB = 10,000 MB C. 1 TB = 1,000,000 MB D. do we really need to know that? - Answers -C. 1 TB = 1,000,000 MB You need multiple processors to allow multiprogramming. A. True, obviously B. Only if the processors are not powerful enough C. Not really. D. Not sure - Answers -C. Not really. What does the following Linux shell command do? (assuming System% is the system prompt) System% ps A. Repeat the previous command B. Persons who are logged on the system C. List of processes D. Print the list of services - Answers -C. List of processes What is POSIX? A. The complete set of Portable Operating Systems device driver components. B. An IEEE standard for Graphical User Interfaces

C. A part of the standard C library D. the API, along with command shells and utility interfaces, for compatibility with several OSs - Answers -D. the API, along with command shells and utility interfaces, for compatibility with several OSs A process may go from the Running state to the Ready state because: A. It is time for another process to run B. It is finished and is ready to get into the Terminated state. C. It needs to wait for an I/O D. None of the above - Answers -A. It is time for another process to run Consider the code snippet: cPID = fork(). The parent has a process-ID of 1425 and the newly created child has a process-ID of 2182. Select the right statement. A.The value of cPID in parent is 1425 and the child cPID value is 0 B.The value of cPID in parent is 2182 and the child cPID value is 0 C.The value of cPID in parent is 0 and in the child cPID value is 2182 D.The value of cPID in parent is 1425 and in the child cPID value is 2182 - Answers - B.The value of cPID in parent is 2182 and the child cPID value is 0 How many times does this code print "Hello World" #include <stdio.h> #include <unistd.h> int main(){ printf("Hello World\n"); fork(); printf("Hello World\n"); } A.Twice B.Thrice C.Four times D. it keeps printing "Hello World". - Answers -B.Thrice Often a ______ process waits for its _____ process to finish. A. child, parent B. parent, child C. high priority, parent D. low priority, parent - Answers -B. parent, child When shared memory is used, shm_open(...) returns a file descriptor and mmap(...) returns a pointer.