CS 2301 Questionall.docx PDF

Title CS 2301 Questionall.docx
Author Kute Face
Course Operating Systems 1 (proctored course)
Institution University of the People
Pages 83
File Size 1.9 MB
File Type PDF
Total Downloads 92
Total Views 151

Summary

CS 2301 Questionall.docx...


Description

Question 1 Correct Mark 1.00 out of 1.00 Flag question

Question text What other name is an OS sometimes called: Select one: a. Resource manager

b. Administrator c. Executor d. Virtual Machine

Feedback Your answer is correct. The correct answer is: Resource manager Question 2 Correct Mark 1.00 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

Feedback Your answer is correct. The correct answer is: The data Question 3 Correct Mark 1.00 out of 1.00 Flag question

Question text 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

c. Structure d. The Byte

Feedback Your answer is correct. The correct answer is: Address Question 4 Correct Mark 1.00 out of 1.00

Flag question

Question text True or False: When a program runs, the primary goal is to make the system easy to use.

Select one: True

False

Feedback The correct answer is 'True'. Question 5 Correct Mark 1.00 out of 1.00 Flag question

Question text A running program does the following: Select one: a. Executes code b. Executes instructions

c. Executes commands d. Executes source code

Feedback Your answer is correct.

The correct answer is: Executes instructions Question 6 Correct Mark 1.00 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

Feedback Your answer is correct. The correct answer is: Legal reasons Question 7 Correct Mark 1.00 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

Feedback The correct answer is 'False'. Question 8 Correct Mark 1.00 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

Feedback Your answer is correct. The correct answer is: Virtual address space Question 9 Correct Mark 1.00 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

Feedback The correct answer is 'False'. Question 10 Correct Mark 1.00 out of 1.00 Flag question

Question text True or False: Programs are always accessing memory. Select one: True

False

Feedback The correct answer is 'True'. Question 1 Correct Mark 1.00 out of 1.00 Flag question

Question text 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

Feedback Your answer is correct. The correct answer is: Time sharing Question 2 Correct Mark 1.00 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

Feedback Your answer is correct. The correct answer is: All of the above Question 3 Correct Mark 1.00 out of 1.00

Flag question

Question text A parent can be made to wait for a child process to finish what it has been doing by which command? Select one: a. PID b. Hello World c. Prompt > d. wait() system call

Feedback Your answer is correct. The correct answer is: wait() system call Question 4 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. Question 5 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 6 Correct Mark 1.00 out of 1.00 Flag question

Question text

True or False: Application programmers typically use an API rather than directory invoking system calls. Select one: True

False

Feedback The correct answer is 'True'. Question 7 Correct Mark 1.00 out of 1.00 Flag question

Question text True or False: The process list is a data structure. Select one: True

False

Feedback The correct answer is 'True'. Question 8 Correct Mark 1.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 9 Correct Mark 1.00 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 ()

Feedback Your answer is correct. The correct answer is: kill () Question 10 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 1 Correct Mark 1.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 correct. The correct answer is: exec() System Call Question 2 Correct Mark 1.00 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

Feedback The correct answer is 'True'. Question 3 Correct Mark 1.00 out of 1.00 Flag question

Question text The process states include all of the following except: Select one: a. Blocked b. Stopped c. Ready d. Running

Feedback Your answer is correct. The correct answer is: Stopped Question 4 Correct Mark 1.00 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

Feedback Your answer is correct. The correct answer is: Virtual address space Question 5 Correct Mark 1.00 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

Feedback The correct answer is 'False'. Question 6 Correct Mark 1.00 out of 1.00 Flag question

Question text True or False: The shell is just a user program. Select one: True

False

Feedback The correct answer is 'True'. Question 7 Correct Mark 1.00 out of 1.00 Flag question

Question text True or False: When a program runs, the primary goal is to make the system easy to use.

Select one:

True

False

Feedback The correct answer is 'True'. Question 8 Correct Mark 1.00 out of 1.00 Flag question

Question text True or False: Timesharing means the operating system shares the physical CPU among many jobs running one at a time. Select one: True

False

Feedback The correct answer is 'True'. Question 9 Correct Mark 1.00 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

Feedback Your answer is correct. The correct answer is: API Question 10 Correct Mark 1.00 out of 1.00 Flag question

Question text 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

c. Structure d. The Byte

Feedback Your answer is correct. The correct answer is: Address Question 11 Correct Mark 1.00 out of 1.00

Flag question

Question text 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

c. Structure d. The Byte

Feedback Your answer is correct. The correct answer is: Address Question 12 Correct Mark 1.00 out of 1.00 Flag question

Question text A ____ can be used to prevent a user program from never returning control to the operating system. Select one: a. Timer

b. Portal c. Program Counter

d. Firewall

Feedback Your answer is correct. The correct answer is: Timer Question 13 Correct Mark 1.00 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

Feedback Your answer is correct. The correct answer is: RR Question 14 Correct Mark 1.00 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

Feedback Your answer is correct. The correct answer is: Baby proof Question 15 Correct Mark 1.00 out of 1.00 Flag question

Question text True or False: Programs are always accessing memory. Select one: True

False

Feedback The correct answer is 'True'. Question 16 Correct Mark 1.00 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

Feedback Your answer is correct. The correct answer is: Stride scheduler Question 17 Correct Mark 1.00 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

Feedback Your answer is correct. The correct answer is: The run-time of each job is not known Question 18 Correct Mark 1.00 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

Feedback Your answer is correct. The correct answer is: Unresponsiveness to interactive users Question 19 Correct Mark 1.00 out of 1.00 Flag question

Question text

A running program does the following: Select one: a. Executes code b. Executes instructions c. Executes commands d. Executes source code

Feedback Your answer is correct. The correct answer is: Executes instructions Question 20 Incorrect Mark 0.00 out of 1.00 Flag question

Question text Allows the kernel to carefully expose certain key pieces of functionality to user programs? Select one: a. user mode b. system call c. kernel mode d. trap

Feedback Your answer is incorrect. The correct answer is: system call Question 21 Correct Mark 1.00 out of 1.00

Flag question

Question text 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

False

Feedback The correct answer is 'True'. Question 22 Correct Mark 1.00 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).

Feedback Your answer is correct.

The correct answer is: When a job enters the system, it is placed at the highest priority (the topmost queue). Question 23 Correct Mark 1.00 out of 1.00 Flag question

Question text True or False: Application programmers typically use an API rather than directory invoking system calls. Select one: True

False

Feedback The correct answer is 'True'. Question 24 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 25 Correct Mark 1.00 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

Feedback Your answer is correct. The correct answer is: Fair-Share Question 1 Incorrect Mark 0.00 out of 1.00 Flag question

Question text Putting all jobs that need to be scheduled into a single queue is called: Select one:

a. Single queue multiprocessor scheduling b. Single queue multilocking scheduling c. Single queue multi scheduling d. None of the Above

Feedback Your answer is incorrect. The correct answer is: Single queue multiprocessor scheduling Question 2 Incorrect Mark 0.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

Feedback The correct answer is 'False'. Question 3 Correct Mark 1.00 out of 1.00 Flag question

Question text

True or False: Address space can be shared or dedicated to users. Select one: True

False

Feedback The correct answer is 'True'. Question 4 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. The correct answer is: Load Imbalance Question 5 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. The correct answer is: Isolation Question 6 Incorrect Mark 0.00 out of 1.00 Flag question

Question text Cache Affinity means run process on: Select one: a. Same CPU b. Different CPU c. Multiple CPU’s d. One CPU

Feedback Your answer is incorrect. The correct answer is: Same CPU Question 7 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

Feedback The correct answer is 'False'. Question 8 Incorrect Mark 0.00 out of 1.00 Flag question

Question text The address can be used by all of the following except: Select one: a. Heap b. Program code

c. Registers

d. None

Feedback Your answer is incorrect. The correct answer is: Registers Question 9 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. The correct answer is: There is a single, system-wide value of vruntime. 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

Feedback The correct answer is 'False'. Question 1 Incorrect Mark 0.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 incorrect. The correct answer is: Space inside the allocated unit is not all used but fragmented Question 2 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 3 Correct Mark 1.00 out of 1.00 Flag question

Question text Given the logical address 0xAEF9 (in hexadecimal) with a page size of 256 bytes, what is the page offset? Select one: a. 0xAE b. 0xF9

c. 0xA d. 0xF900

Feedback Your answer is correct. The correct answer is: 0xF9 Question 4

Incorrect Mark 0.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 incorrect. The correct answer is: segment number and offset Question 5 Incorrect Mark 0.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 incorrect. The correct answer is: Same memory location Question 6 Incorrect Mark 0.00 out of 1.00 Flag question

Question text True or False: calloc() allocates memory and also zeroes it before returning. Select one: True False

Feedback The correct answer is 'True'. Question 7 Correct Mark 1.00 out of 1.00 Flag question

Question text Which is not a common error? Select one: a. Freeing memory before you are done with it

b. Forgetting to initialize allocated memory c. Forgetting to allocate memory d. All are common errors


Similar Free PDFs