Help shape GoConqr. What should we add next?

Quiz

Operating system ch 1-6 from textbook

Duncan Levings 88 questions

Take the quiz

This quiz has question types that open in the usual player.

Questions in this quiz (88)

  1. 1What are the three main purposes of an operating system?
    1. ATo provide an environment for a computer user to execute programs on computer hardware in a convenient and efficient manner.
    2. BTo allocate the separate resources of the computer as needed to
      solve the problem given
    3. CAs a control program it serves two major functions: (1) supervision of the execution of user programs to prevent errors and improper use of the computer, and (2) management of the operation and control of I/O devices
    4. DTo supervise the allocation of system CPU resources to the needed programs
  2. 2List the four steps that are necessary to run a program on a completely
    dedicated machine—a computer that is running only that program.
    1. AReserve machine time.
    2. BManually load program into memory
    3. CLoad starting address and begin execution.
    4. DMonitor and control execution of program from console
    5. EBegin execution of the program from memory
  3. 3When is it appropriate for the operating system to forsake this principle and to “waste” resources? Why is such a system not really wasteful?

    Single-user systems should maximize use of the system for the user. A GUI might “waste” CPU cycles, but it optimizes the user’s interaction with the system.
    1. ATrue
    2. BFalse
  4. 4Which of the following instructions should be privileged?
    1. ASet value of timer.
    2. BRead the clock.
    3. CClear memory.
    4. DIssue a trap instruction.
    5. ETurn off interrupts.
    6. FModify entries in device-status table.
    7. GSwitch from user to kernel mode.
    8. HAccess I/O device.
  5. 5Timers could be used to compute the current time. Provide a short de- scription of how this could be accomplished:

    The program could set a timer for some time in the future and go to sleep. When it is awakened by the interrupt, it could update its local state, which it is using to keep track of the number of interrupts it has received thus far
    1. ATrue
    2. BFalse
  6. 6The internet is LAN
    1. ATrue
    2. BFalse
  7. 7 explain what the output will be at Line AImage for question 7
    1. A5
  8. 8how many processes are created?

    main counts as 1
    Image for question 8
    1. A8
  9. 9When a process creates a new process using the fork() operation, which of the following state is shared between the parent process and the child process?
    1. AStack
    2. BHeap
    3. CShared memory segments
  10. 10Provide three programming examples in which multithreading provides better performance than a single-threaded solution
    1. AA Web server that services each request in a separate thread
    2. BA parallelized application such as matrix multiplication where different parts of the matrix may be worked on in parallel
    3. CAn interactive GUI program such as a debugger where a thread is used to monitor user input, another thread represents the running application, and a third thread monitors performance
    4. DAn resource heavy program execution that uses two multithreads to complete processing

Information

Description
Computer Science Quiz on Operating system ch 1-6 from textbook, created by Duncan Levings on 29/10/2019.
Language
English
Views
7
Tags
computer science
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What should we add next?