Quiz 1

docx

School

University of Phoenix *

*We aren’t endorsed by this school

Course

4100

Subject

Computer Science

Date

Feb 20, 2024

Type

docx

Pages

6

Uploaded by lashee86

Report
n 1 1 Which part of the memory allocated to a process is responsible for storing dynamically allocated data? The machine instructions. The static data. The execution stack. The heap. Question 2 1 / 1 point What is a system call? An asynchronous signal sent to a processor by another device. A hardware event caused by user program behavior. A procedure called by a process to request the kernel to perform a privileged operation. A signal generated by the kernel that notifies a process of an event. Question 3 1 / 1 point Which of the following does not result in a switch from kernel mode to user mode? An interrupt is generated by an I/O device. A process is loaded into memory and is ready to execute its first instruction. The kernel switches from the current process to a different process. The kernel finishes processing an interrupt. Question 4 1 / 1 point When a programmer attempts to execute an illegal instruction, which of the following occurs? An external device generates an interrupt. A processor exception is generated.
The program makes a system call. None of the above. Question 5 1 / 1 point Which of the following is difficult to do using a base-and-bound approach to protecting memory? Determine if a memory access is within the accepted address range. Keeping track of the memory allocated to each process. Giving the kernel unlimited access to memory. Relocating a process to another location in memory. Question 6 1 / 1 point Which of the following performance metrics measures the additional resource cost of implementing an abstraction? Overhead. Fairness. Response time. Throughput. Question 7 0 / 1 point Which of the following best describes a time-sharing operating system? A multiuser system that operates on a queue of jobs. A system that supports multiple simultaneous network connections. A set of I/O routines for a single user system. A system that processes input events to support interactive computing. Question 8 1 / 1 point
Which of the following roles is an operating system playing when it provides libraries for a graphical interface so that applications can have the same look and feel? Referee (managing resources) Illusionist (abstracting the hardware) Glue (providing common services) None of the above Question 9 1 / 1 point Which of the following roles is an operating system playing when it determines which application should run next on a processor? Referee (managing resources) Illusionist (abstracting the hardware) Glue (providing common services) None of the above Question 10 1 / 1 point Which of the following roles is an operating system playing when it gives each application its own set of unlimited contiguous memory addresses? Referee (managing resources) Illusionist (abstracting the hardware) Glue (providing common services) None of the above Question 11 1 / 1 point When a kernel creates a new process, which of the following actions is performed while in user mode?
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
Allocating the PCB. Copying the program into memory. Copying command-line arguments into user memory. Calling a stub that calls the program's  main  function. Question 12 1 / 1 point What is an upcall? An processor interrupt generated by another hardware device. A request from a user process for the kernel to perform a privileged operation. A signal from the kernel that notifies a user process that an event has occurred. A hardware event caused by user program behavior that transfers control to the kernel. Question 13 1 / 1 point Which of the following best describes an OS boot sequence? The computer loads the BIOS, the BIOS loads the kernel, and the kernel loads the bootloader. The computer loads the BIOS, the BIOS loads the bootloader, and the bootloader loads the kernel. The computer loads the bootloader, the bootloader loads the BIOS, and the BIOS loads the kernel. The computer loads the bootloader, the bootloader loads the kernel, and the kernel loads the BIOS Question 14 1 / 1 point Which of the following is used to save the state of a process that has just switched from user mode to kernel mode? The interrupt vector table. An interrupt stack. An interrupt handler. An interrupt queue.
Question 15 1 / 1 point In a virtual machine, what happens when a process running on the guest OS make a system call? It traps to the guest kernel, which performs the system call, while the host kernel performs the mode switch. It traps to the guest kernel, which handles the mode switch, while the host kernel performs the system call. It traps to the host kernel, which performs the system call, while the guest kernel performs the mode switch. It traps to the host kernel, which handles the mode switch, while the guest kernel performs the system call. Question 16 1 / 1 point Which of the following system calls signals that a process is done with a file, device, or pipe? open close read write Question 17 0 / 1 point Which of the following system services must be implemented by the kernel? Window management. The network protocol stack. Managing the file system. Protecting process from each other. Question 18 0 / 1 point What does the UNIX exec system call do? Create and initialize the PCB and address space, load the program, copy the arguments, initialize the program counter, and inform the scheduler that the
process is ready to run. Create and initialize the PCB and address space, copy the contents of the caller's address space, and inform the scheduler that the process is ready to run. Load the program into the current address space, copy the arguments, and initialize the program counter. Load the program into the current address space, copy the arguments, initialize the program counter, and inform the scheduler that the process is ready to run. Question 19 0 / 1 point Which of the following is not functionality that an OS needs to provide to applications? Process management. Interaction with input and output devices. Support for arithmetic and logical operations. Memory management. Question 20 0 / 1 point Which of the following best describes how a shell executes a command? The shell calls  fork , the child process calls  exec , and the parent process calls  wait . The shell calls  fork , the child process calls  wait , and the parent process calls  exec . The shell calls  exec , the child process calls  fork , and the parent process calls  wait . The shell calls  exec , the child process calls  wait , and the parent process calls  fork . Done
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help