CS 2301 all included quiz graded PDF

Title CS 2301 all included quiz graded
Course Operating Systems 1 (proctored course)
Institution University of the People
Pages 72
File Size 1.4 MB
File Type PDF
Total Downloads 90
Total Views 178

Summary

All quizzes included graded ones...


Description

Question 1 Basic algorithm for scheduling includes 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 4Memory 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 toolbarsSelect 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 10What 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 /correct 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 ……… To write (or update) memory, one must also specify ______ to be writtento the given address?Select one: a. Library b. Address c. The data // correct d. Thread Consulting the following figure, jobs A and B as at the highest prioritythus the scheduler will alternate between

A and B //correct True or False: Programs are always accessing memory. Select one: True / correct False True or False: Direct execution refers to running a program directly on the CPU. True / correct False What system call is used to send signals to a process, including directives to go to sleep, or die: c kill() // correct The ____ scheduling algorithm is designed especially for time-sharing systems. RR // correct

True or False: Turnaround time is defined as the time at which the job finally completes minus the time at which the job arrived in the system.

True // correct False A running program does the following: a. Executes code b. Executes instructions /correct c. Executes commands d. Executes source code MLFQ rule 3 states that: Select one: a. After some time period S, move all the jobs in the system to the topmost queue. b. If Priority(A) = Priority(B), A & B run in RR. c. Once a job uses up its time allotment at a given level (regardless of how many times it has given up the CPU), it priority is reduced (i.e., it moves down one queue). d. When a job enters the system, it is placed at the highest priority (the topmost queue) True or False: The process list is a data structure. Select one: True False The process states include all of the following except: Select one: a. Blocked b. Stopped c. Ready d. Running A parent can be made to wait for a child process to nish what it has been doing by which command? Select one: a. PID b. Hello World c. Prompt > d. wait() system call Processes running in the system are sometimes called workload. Select one:

True False MLFQ tries to address the issues below with the exception of: Select one: a. Optimize turnaround time b. Unresponsiveness to interactive users c. Responsiveness to interactive users d. Minimize response times Why did Linus Torvalds borrow UNIX concept, but not the code? Select one: a. Too complex b. Non-existent c. Too insecure d. Legal reasons True or False: Ticket inflation is when a process can temporarily only raise the number of tickets it owns. Select one: True False Setting up the trap handlers and starting an interrupt timer serve to ______ the system. Select one: a. Lock b. Optimize c. Baby proof d. Shut down True or False: A running program is not a process. Select one: True False In early (or simple) operating systems, the loading process is done: Select one: a. One at a time b. Eagerly c. In groups d. At compile time True or False: The shell is just a user program. Select one: True False True or False: The register context will not hold the contents of its registers. Select one: True False

True or False: Timesharing means the operating system shares the physical CPU among many jobs running one at a time. Select one: True False Question 2 Not yet answered Marked 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 Question 3 Not yet answered Marked out of 1.00 Flag question Question text True or False: As a concept, virtual machines can exist outside and inside the operating system. Select one: True False Question 4 Not yet answered Marked out of 1.00 Flag question Question text True or False: As a concept, virtual machines can exist outside and inside the operation system. Select one: True False Question 5 Not yet answered Marked out of 1.00 Flag question Question text True or False: Direct execution refers to running a program directly on the CPU. Select one: True False Question 6 Not yet answered Marked out of 1.00

Flag question Question text 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 d. Thread Clear my choice Question 7 Not yet answered Marked out of 1.00 Flag question Question text MLFQ rule 3 states that: Select one: a. After some time period S, move all the jobs in the system to the topmost queue. b. If Priority(A) = Priority(B), A & B run in RR. c. Once a job uses up its time allotment at a given level (regardless of how many times it has given up the CPU), it priority is reduced (i.e., it moves down one queue). d. When a job enters the system, it is placed at the highest priority (the topmost queue). Clear my choice Question 8 Not yet answered Marked out of 1.00 Flag question Question text Basic algorithm for scheduling include all but: Select one: a. Shortest Time-to-Completion Last (STCL) b. First Come, First Served (FCFS) c.

Shortest Job First (SJF) d. First Out (FIFO) Clear my choice Question 9 Not yet answered Marked out of 1.00 Flag question Question text Return-from-trap instruction returns into the calling user program while simultaneously reducing the privilege level back to ________ Select one: a. User mode b. Kernel mode c. OS mode d. CPU mode Clear my choice Question 10 Not yet answered Marked out of 1.00 Flag question Question text The ____ scheduling algorithm is designed especially for time-sharing systems. Select one: a. SJF b. FCFS c. RR d. Multilevel Queue Clear my choice Question 11 Not yet answered Marked out of 1.00 Flag question Question text

A process may transition to the Ready state by which of the following actions? Select one: a. Completion of an I/O event b. Awaiting its turn on the CPU c. Newly-admitted process d. All of the above Clear my choice Question 12 Not yet answered Marked out of 1.00 Flag question Question text Why did Linus Torvalds borrow UNIX concept, but not the code? Select one: a. Too complex b. Non-existent c. Too insecure d. Legal reasons Clear my choice Question 13 Not yet answered Marked out of 1.00 Flag question Question text 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

Clear my choice Question 14 Not yet answered Marked out of 1.00 Flag question Question text True or False: We do not need hardware and software to be able to store data persistently Select one: True False Question 15 Not yet answered Marked out of 1.00 Flag question Question text A deterministic fair-share scheduler is called Select one: a. Proportional share scheduler b. Lottery scheduler c. Stride scheduler d. MFLQ scheduler Clear my choice Question 16 Not yet answered Marked out of 1.00 Flag question Question text Consulting the following figure, jobs A and B as at the highest priority thus the scheduler will alternate between:

Select one: a. A then B b. A and B then C c. C then D d. A and B Clear my choice Question 17 Not yet answered Marked out of 1.00 Flag question Question text Each process accesses its own private: Select one: a. Virtual machine b.

Virtual source code c. Virtual address space d. Virtual client Clear my choice Question 18 Not yet answered Marked out of 1.00 Flag question Question text What system call is used to send signals to a process, including directives to go to sleep, or die: Select one: a. API b. fork() c. kill () d. wait () Clear my choice Question 19 Not yet answered Marked out of 1.00 Flag question Question text The _____ scheduler allocates available memory to each process using a percentage. Select one: a. Equal b. Global c. Fair-Share d. Slab Clear my choice Question 20 Not yet answered Marked out of 1.00 Flag question

Question text True or False: Turnaround time is defined as the time at which the job finally completes minus the time at which the job arrived in the system.

Select one: True False Question 21 Not yet answered Marked out of 1.00 Flag question Question text MLFQ tries to address the issues below with the exception of: Select one: a. Optimize turnaround time b. Unresponsiveness to interactive users c. Responsiveness to interactive users d. Minimize response times Clear my choice Question 22 Not yet answered Marked out of 1.00 Flag question Question text Setting up the trap handlers and starting an interrupt timer serve to ______ the system. Select one: a. Lock b. Optimize c. Baby proof d. Shut down Clear my choice Question 23

Not yet answered Marked out of 1.00 Flag question Question text Machine includes all of the following, except: Select one: a. Address space b. Registers c. Memory d. API Clear my choice Question 24 Not yet answered Marked 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 Question 25 Not yet answered Marked out of 1.00 Flag question Question text True or False: A running program is not a process. Select one: True False Quiz 4 Started on Tuesday, 28 September 2021, 1:12 PM State Finished Completed on Tuesday, 28 September 2021, 1:19 PM Time taken 6 mins 42 secs Grade 10.00 out of 10.00 (100%) Question 1 Correct Mark 1.00 out of 1.00 Flag question

Question text True or False: Interactivity refers to single users on the same system Select one: True False Question 2 Correct Mark 1.00 out of 1.00 Flag question Question text True or False: Adding more CPUs will make a single application run faster. Select one: True False Question 3 Correct Mark 1.00 out of 1.00 Flag question Question text The fundamental difference between single-CPU hardware and multi-CPU hardware? Select one: a. Temporal Locality b. Spatial Locality c. Caches d. Time sharing Feedback Your answer is correct. Question 4 Correct Mark 1.00 out of 1.00 Flag question Question text True or False: Cache coherency involves ensuring that multiple caches store the most updated version of the stored data. Select one: True False Question 5 Correct

Mark 1.00 out of 1.00 Flag question Question text Which of the following statements are false with regards to the Linux CFS scheduler? Select one: a. Each task is assigned a proportion of CPU processing time. b. Lower numeric values indicate higher relative priorities. c. There is a single, system-wide value of vruntime. d. The scheduler doesn't directly assign priorities. Feedback Your answer is correct. Question 6 Correct Mark 1.00 out of 1.00 Flag question Question text Which is not a goal of virtual memory (VM)? Select one: a. Protect b. Efficient c. Transparent d. Isolation Feedback Your answer is correct. Question 7 Correct Mark 1.00 out of 1.00 Flag question Question text What technique is used to prevent threads from removing the same head element? Select one: a. Locking

b. Threading c. Mutex d. Sychronization Feedback Your answer is correct. Question 8 Correct Mark 1.00 out of 1.00 Flag question Question text What is a fundamental problem of MQMS: Select one: a. Scalability b. Locking c. Load Imbalance d. Migration Feedback Your answer is correct. Question 9 Correct Mark 1.00 out of 1.00 Flag question Question text True or False: Multithreaded applications can spread work across multiple CPUs and thus run faster when given more CPU resources. Select one: True False Question 10 Correct Mark 1.00 out of 1.00 Flag question Question text True or False: Multicore processors contain one CPU cores on a single chip.

Select one: True False True or False: A dual-core system requires each core has its own cache memory memory.. Select one: True False

Quiz 5 Started on Saturday, 2 October 2021, 7:13 PM State Finished Completed on Saturday, 2 October 2021, 7:30 PM Time taken 17 mins 41 secs Grade 9.00 out of 10.00 (90%) Question 1 Correct Mark 1.00 out of 1.00 Flag question Question text Consider a 32-bit address for a two-level paging system with an 8 KB page size. The outer page table has 1024 entries. How many bits are used to represent the second level page table? Select one: a. 10 b. 8 c. 12 d. 9 Feedback Your answer is correct. The correct answer is: 9 Question 2 Correct Mark 1.00 out of 1.00

Flag question Question text When free space gets chopped into little pieces of different sizes and is thus fragmented. Select one: a. Splitting b. Internal fragmentation c. Coalescing d. External fragmentation Feedback Your answer is correct. The correct answer is: External fragmentation Question 3 Correct Mark 1.00 out of 1.00 Flag question Question text What is used to free heap memory no longer in use. Select one: a. The malloc() Call b. Stack c. The free() Call d. Automatic Feedback Your answer is correct. The correct answer is: The free() Call Question 4 Correct Mark 1.00 out of 1.00 Flag question Question text Internal fragmentation means: Select one: a.

Space inside the allocated unit is not all used but fragmented b. Space inside the allocated unit is unfragmented c. Space inside the allocated unit is all used but fragmented d. Space inside the allocated unit is not unfragmented Feedback Your answer is correct. The correct answer is: Space inside the allocated unit is not all used but fragmented Question 5 Correct Mark 1.00 out of 1.00 Flag question Question text A(n) ______ matches the process with each entry in the TLB. Select one: a. address-space identifier b. process id c. stack d. page number Feedback Your answer is correct. The correct answer is: address-space identifier Question 6 Incorrect Mark 0.00 out of 1.00 Flag question Question text Which of the following techniques are correct for physical address? Select one: a. Physical address = virtual address + translation b. Physical address = virtual address + bounds c.

Physical address = virtual address + limits d. Physical address = virtual address + base Feedback Your answer is incorrect. The correct answer is: Physical address = virtual address + base Question 7 Correct Mark 1.00 out of 1.00 Flag question Question text These instructions will store the value of eax to at the end of the program: 128: movl 0x0(%ebx), %eax ;load 0+ebx into eax 132: addl $0x03, %eax ;add 3 to eax register 135: movl %eax, 0x0(%ebx) ;store eax back to mem Select one: a. Different memory location b. Multiple locations c. Same memory location d. One location Feedback Your answer is correct. The correct answer is: Same memory location Question 8 Correct Mark 1.00 out of 1.00 Flag question Question text With segmentation, a logical address consists of _____. Select one: a. segment number and offset b. segment name and offset c. segment number and page number

d. segment table and segment number Feedback Your answer is correct. The correct answer is: segment number and offset Question 9 Correct Mark 1.00 out of 1.00 Flag question Question text Segmen Base Size t Code 32k 2k Heap 34k 2k Stack 28k 2k True or False: The stack has been relocated to physical address 28KB in the diagram, but with one important difference: it grows forward in physical memory. Select one: True False Feedback The correct answer is 'False'. Question 10 Correct Mark 1.00 out of 1.00 Flag question Question text The data structure free list is used to track? Select one: a. Ranges of the virtual memory which is not currently in use b. Ranges of the physical memory which is currently in use c. Ranges of the physical memory which is not currently in use d. Ranges of the virtual memory which is currently in use Feedback Your answer is correct. The correct answer is: Ranges of the physical memory which is not currently in use

Quiz 6 graded. True or False: Without a mechanis...


Similar Free PDFs