Title | CS 2301 Operating System |
---|---|
Author | Olayinka Akindeju |
Course | Operating Systems 1 (proctored course) |
Institution | University of the People |
Pages | 11 |
File Size | 173.7 KB |
File Type | |
Total Downloads | 94 |
Total Views | 151 |
CS 2301 Operating System...
CS 2301 Operating System UNIT 3 GRADED QUIZ UNIT 3 April 2019
Question 1 Basic algorithm for scheduling include all but: Select one: a. Shortest Time-to-Completion Last (STCL) //Correct b. First Come, First Served (FCFS) c. Shortest Job First (SJF) d. First Out (FIFO) Question 2 Setting up the trap handlers and starting an interrupt timer serve to ______ the system. Select one: a. Lock b. Optimize c. Baby proof //Correct d. Shut down Question 3 Allows the kernel to carefully expose certain key pieces of functionality to user programs? Select one: a. user mode b. system call //Correct c. kernel mode d. trap Question 4 Memory is just an array of bytes; to read memory, one must specify _______ to be able to access the data stored there.
Select one: a. Location b. Address //Correct c. Structure d. The Byte Question 5 True or False: MenuMeters (from Raging Menace software) runs on our PC toolbars Select one: True False //Correct Question 6 What other name is an OS sometimes called: Select one: a. Resource manager //Correct b. Administrator c. Executor d. Master Control Program Question 7 True or False: We do not need hardware and software to be able to store data persistently Select one: True False //Correct Question 8 In early (or simple) operating systems, the loading process is done: Select one: a. One at a time b. Eagerly //Correct c. In groups d. At compile time
Question 9 True or False: Timesharing means the operating system shares the physical CPU among many jobs running one at a time. Select one: True //Correct False Question 10 What technique uses the OS to create an illusion by virtualizing the CPU and running one process, then stopping it and running another? Select one: a. Virtualization b. Context switch c. Scheduling d. Time sharing //Correct Question 11 To write or update memory, one must also specify ____to be written to the given address. Select one: a. Library b. Address c. The data //Correct d. Thread Question 12 True or False: Turnaround time is defined as is the total time taken between the submission of a program/process/thread/task for execution and the return of the complete output to the customer/user. Select one: True //Correct False Question 13 True or False: As a concept, virtual machines can exist outside and inside the operation system. Select one:
True False //Correct Question 14 True or False: When a program runs, the primary goal is to make the system easy to use. Select one: True //Correct False Question 15 Machine includes all of the following, except: Select one: a. Address space b. Registers c. Memory d. API Question 16 Which of the following statements is incorrect? Select one: a. An operating system provides an environment for the execution of programs. b. An operating system manages system resources. c. Operating systems provide both command line as well as graphical user interfaces. //Correct d. Operating systems must provide both protection and security. Question 17 True or False: The process list a data structure. Select one: True //Correct False Question 18 A deterministic fair-share scheduler is called Select one:
a. Proportional share scheduler b. Lottery scheduler c. Stride scheduler //Correct d. MFLQ scheduler Question 19 A ____ can be used to prevent a user program from never returning control to the operating system. Select one: a. Timer //Correct b. Portal c. Program Counter d. Firewall Question 20 Each process accesses its own private: Select one: a. Virtual machine b. Virtual source code c. Virtual address space //Correct d. Virtual client Question 21 Return-from-trap instruction returns into the calling user program while simultaneously reducing the privilege level back to ________ Select one: a. User mode //Correct b. Kernel mode c. OS mode d. CPU mode Question 22 True or False: As a concept, virtual machines can exist outside and inside the operating system. Select one:
True False //Correct
Question 23 The Windows CreateProcess() system call creates a new process. What is the equivalent system call in UNIX: Select one: a. NTCreateProcess() b. process() c. fork() //Correct d. getpid() Question 24 This system call is useful when you want to run a program that is different from the calling program: Select one: a. API b. fork() c. exec() System Call //Correct d. wait () Question 25 The following are all assumptions about processes except: Select one: a. Each job runs for the same amount of time b. All jobs arrive at the same time c. All jobs only use the CPU (i.e., they perform no I/O) d. The run-time of each job is not known //Correct
True or False: The natural counterpart of time sharing is space sharing, where a resource is divided (in space) among those who wish to use it. Select one:
True
False Feedback The correct answer is 'True'.
Question 2 Incorrect Mark 0.00 out of 1.00
Flag question Question text
This system call is useful when you want to run a program that is different from the calling program: Select one: a. API
b. fork() c. exec() System Call d. wait () Feedback Your answer is incorrect. The correct answer is: exec() System Call
Question 3 Correct Mark 1.00 out of 1.00
Flag question Question text
The Windows CreateProcess() system call creates a new process. What is the equivalent system call in UNIX:
Select one: a. NTCreateProcess() b. process() c. fork()
d. getpid() Feedback Your answer is correct. The correct answer is: fork()
Question 4 Correct Mark 1.00 out of 1.00
Flag question Question text
_____ provide(s) an interface to the services provided by an operating system. Select one: a. Shared memory b. System calls
c. Simulators d. Communication Feedback Your answer is correct. The correct answer is: System calls
Question 5 Correct Mark 1.00 out of 1.00
Flag question
Question text
True or False: PIDS are used to name processes in the UNIX O/S. Select one: True
False Feedback The correct answer is 'True'.
Question 6 Incorrect Mark 0.00 out of 1.00
Flag question Question text
True or False: The register context will not hold the contents of its registers. Select one: True
False Feedback The correct answer is 'False'.
Question 7 Incorrect Mark 0.00 out of 1.00
Flag question Question text
True or False: UNIX pipes are implemented with the execvp() system call. This is where the output of one process seamlessly is used as input to the next, and long and useful chains of commands can be strung together.
Select one: True
False Feedback The correct answer is 'False'.
Question 8 Correct Mark 1.00 out of 1.00
Flag question Question text
True or False: A running program is not a process. Select one: True False
Feedback The correct answer is 'False'.
Question 9 Correct Mark 1.00 out of 1.00
Flag question Question text
All of the following are Machine States except: Select one: a. Address space b. Registers c. Memory
d. API
Feedback Your answer is correct. The correct answer is: API
Question 10 Incorrect Mark 0.00 out of 1.00
Flag question Question text
Which of the following statements is incorrect? Select one: a. An operating system provides an environment for the execution of programs.
b. An operating system manages system resources. c. Operating systems provide both command line as well as graphical user interfaces. d. Operating systems must provide both protection and security. Feedback Your answer is incorrect. The correct answer is: Operating systems provide both command line as well as graphical user interfaces.
Good Luck and share your study materials!...