Computer Science 4630

Spring 2000

Quiz 1

 

Circle the letter of the best answer to each question.

 

1. Which of the following is needed to justify the use of caching?

(a)   two different storage devices with significantly different access speeds.

(b)  two different storage devices with significantly different capacities.

(c)   a slow memory bus.

(d)  a fast memory bus.

 

2. An operating system is designed in layers

     (a) to make it more efficient.

     (b) to make it smaller.

     (c) to make it easier to write.

     (d) to make it possible to handle interrupts.

 

3. An operating system that uses cooperative multiprogramming cannot protect

     (a) the memory resource.

     (b) the CPU resource.

     (c) the disk resource.

     (d) the monitor resource.

 

4. A system call is typically made by

     (a) writing a value into kernel memory.

     (b) performing an I/O interrupt.

     (c) performing a direct disk I/O operation.

     (d) performing a trap to the monitor.

 

5. A processor that supports dual modes

     (a) supports two different instruction sets.

     (b) distinguishes between privileged and user mode instructions.

     (c) can run at two different speeds.

     (d) supports interrupts.

 

6. Which of the following is NOT a mechanism for allowing two processes to communicate with one another?

     (a) remote procedure call.

     (b) message passing.

     (c) context switching.

     (d) shared memory.

 


7. A command interpreter

(a)   typically gets its power from running programs that are not built into the command     interpreter.

(b)  has most of the commands that it can perform built into it.

(c)   can typically only perform a small subset of the services that the operating system provides.

(d)  is usually part of an operating system’s kernel.

 

8.Which of the following do two threads that are part of the same process NOT share?

(a)   program memory.

(b)  open files.

(c)   process number.

(d)  run-time stack.

 

9. The fork system call is used to

(a)   create a new thread within a process that runs the same program as the running thread.

(b)  create a new thread within a process that runs a different program from the running thread.

(c)   create a new process that runs the same program as the running process.

(d)  create a new process that runs a different program from the running processs.

 

10. Process management is typically performed by

(a)   the operating system kernel.

(b)  the command interpreter.

(c)   the operating system, but above the kernel level.

(d)  an application program on its own behalf.

 

11. The execv system call is used to

(a)   create a new process.

(b)  create a new thread.

(c)   make a process run a different program.

(d)  stop a process.

 

12. When separating mechanism and policy in a layered operating system, you typically find that

(a)   mechanism and policy are implemented in the same layer of the operating system.

(b)  mechanism is implemented in a lower layer than policy.

(c)   mechanism is implemented in a higher layer than policy.

 

13. A batch operating system

(a)   runs only one task at a time.

(b)  is any operating system that supports shell scripts.

(c)   does not need to protect the CPU resource from application programs.

(d)  allows a program to be run in background to use up otherwise idle CPU time.