OS | Quizzes #3 and #4

Description

Suicidal Operating Systems [Teachers: Teshebayeva Karagoz, Mishina Aigerim ; Final Exam + STATE EXAM] ▼ Quiz on OS | Quizzes #3 and #4, created by Good Guy Beket on 28/03/2019.
Good Guy Beket
Quiz by Good Guy Beket, updated more than 1 year ago
Good Guy Beket
Created by Good Guy Beket over 5 years ago
506
8

Resource summary

Question 1

Question
Utilities are:
Answer
  • Processor registers
  • Application programs
  • Opcodes
  • System programs

Question 2

Question
The process index register
Answer
  • Contains the index into the process list of process currently controlling the processor.
  • Contains the staring address of the region of memory occupied by the process.
  • Define the region in memory occupied by the process
  • Points to the next isntruction in that process to be executed

Question 3

Question
The end user views a computer system in terms of:
Answer
  • A set of machine instructions
  • A set of applications
  • A set of system programs
  • Utilities

Question 4

Question
Choose the storage management responsibility for «The OS can achieve efficiency by assigning memory to jobs only as needed:
Answer
  • Process isolation
  • Protection and access control
  • Automatic allocation and management
  • Long-term storage
  • Support of modular programming

Question 5

Question
"The OS as a User/Computer Interface" corresponds to the following objective:
Answer
  • Efficiency
  • Convenience
  • Ability to evolve

Question 6

Question
_____ is generally faster than _____
Answer
  • first fit, best fit
  • none of the above
  • best fit, first fit
  • worst fit, best fit

Question 7

Question
Memory partitioning algorithm that uses binary tree as a data structure is called:
Answer
  • First-fit algorithm
  • Buddy system
  • Next-fit algorithm
  • Best-fit algorithm

Question 8

Question
The address of a page table in memory is pointed by:
Answer
  • stack pointer
  • page table base register
  • program counter
  • page register

Question 9

Question
Which of the following is not true about the memory management?
Answer
  • segmented memory can be paged
  • virtual memory is used only in multi-user systems
  • segmentation suffers from external fragmentation
  • paging suffers from internal fragmentation

Question 10

Question
Main memory is broken into fixed-size blocks called
Answer
  • None of the above
  • Segments
  • Frames
  • Pages

Question 11

Question
In operating system each process has its own:
Answer
  • address space and global variables
  • set of data
  • program code
  • all of mentioned

Question 12

Question
Mutual exclusion can be provided by the:
Answer
  • both
  • mutex locks
  • binary semaphores
  • none of the above

Question 13

Question
What is a medium-term scheduler?
Answer
  • It selects which process has to be executed next and allocates CPU
  • It selects which process has to be brought into the ready queue
  • It selects which process to remove from memory by swapping
  • None of the above

Question 14

Question
The state of a process is defined by:
Answer
  • The activity to next to be executed by the process
  • The activity just executed by the process
  • The current activity of the process
  • The final activity of the process

Question 15

Question
What is a ready state of a process?
Answer
  • when process is using the CPU
  • when process is scheduled to run after some execution
  • when process is unable to run unitl some task has been completed
  • none of the above

Question 16

Question
Which one of the following is the deadlock avoidance algorithm?
Answer
  • round-robin algorithm
  • elevator algorithm
  • banker's algorithm
  • dinning philosophers problem

Question 17

Question
A state is safe if:
Answer
  • the system can allocate resources to each process in some order and still avoid a deadlock
  • all of the above
  • the state keeps the system protected and safe
  • the system does not crash due to deadlock occurrence

Question 18

Question
The initial value of the semaphore, that allows only one of the many processes to enter their critical sections, is:
Answer
  • 2
  • 1
  • 0
  • 10

Question 19

Question
The segment of code in which the process may change common variables, update tables, write into files is known as:
Answer
  • critical section
  • mutual exclusion
  • non-critical section
  • program

Question 20

Question
A problem encountered in multitasking when a process is perpetually denied necessary resources is called
Answer
  • starvation
  • aging
  • inversion
  • deadlock

Question 21

Question
A system is in the safe state if:
Answer
  • none of the above
  • there exist a safe sequence
  • both A and B
  • the system can allocate resources to each process in some order and still avoid a deadlock

Question 22

Question
What is the reusable resource?
Answer
  • that can be used by one process at a time and is not depleted by that use
  • that can be used by more than one process at a time
  • that can be shared between various threads
  • none of the above

Question 23

Question
This illustrates the progress of two processes competing for two resources
Answer
  • joint progress diagram
  • joint ingres diagram.
  • joint regress diagram.
  • joint process diagram.

Question 24

Question
Current allocation of resources to processes where there is at least one sequence that does not result in deadlock is called
Answer
  • Safe state
  • Ambiguous state
  • Unsafe state
  • Alternative state

Question 25

Question
The resource vector defines:
Answer
  • total amount of each resource in the system
  • total amount of each resource NOT allocated to any process
  • total amount of resources required for all processes
  • total amount of each resource allocated to all processes

Question 26

Question
"No preemption" condition for deadlock is defined as
Answer
  • No resource can be forcibly removed from process holding it.
  • Process holds a resources while awaiting for other resource
  • Only one process may use a resource at a time
  • Each process holds resource needed by next process in chain

Question 27

Question
This matrix defines the current allocation to process i of resource j:
Answer
  • Claim matrix
  • Allocation matrix
  • Resource matrix
  • Request matrix

Question 28

Question
Which of the following cannot be interrupted?
Answer
  • Process
  • Thread
  • Atomic operation
  • Module

Question 29

Question
A minimum of ____ variables is/are required to be shared between processes to solve critical section problem.
Answer
  • three
  • two
  • one
  • four

Question 30

Question
For non-sharable resources like a printer, mutual exclusion:
Answer
  • must exist
  • may exist
  • must not exist
  • none of the above

Question 31

Question
A monitor is type of:
Answer
  • high-level synchronization construct
  • deadlock
  • low-level synchronization construct
  • none of the above

Question 32

Question
An un-interruptible unit is known as:
Answer
  • atomic.
  • single
  • static
  • none of the above

Question 33

Question
Part of program, where the shared memory is accessed and which should be executed invisibly, is called:
Answer
  • critical section
  • semaphores
  • directory
  • mutual exclusion

Question 34

Question
Current allocation of resources to processes where there is no sequence that does not result in deadlock is called:
Answer
  • Safe state
  • Unsafe state
  • Alternative state
  • Ambiguous state

Question 35

Question
Which of the following is not one of the principles of dealing with deadlock?
Answer
  • Initialization
  • Detection
  • Prevention
  • Avoidance

Question 36

Question
Deadlock inevitable region can be referred to as a:
Answer
  • fatal region
  • false region
  • final region
  • fun region

Question 37

Question
When each process in the set is blocked awaiting for resource seized by another blocked process:
Answer
  • it is deadlock
  • it is deadend
  • it is a softlock
  • It is a mortallock

Question 38

Question
What is NOT an example of reusable resource?
Answer
  • I/O channels
  • Semaphores
  • Processors
  • Interrupt

Question 39

Question
In the non-blocking send, blocking receive:
Answer
  • the sending process sends the message and resumes operation
  • the sending process keeps sending until it receives a message
  • sender continues on, receiver is blocked until the requested message arrives
  • none of the above

Question 40

Question
The degree of multi-programming is:
Answer
  • the number of process in memory
  • the number of processes executed per unit time
  • the number of process in the ready queue
  • the number of process in the I/O queue

Question 41

Question
What controls the process in a single-threaded process model?
Answer
  • Process control block
  • Kernel stack control block
  • User address space control block
  • User stack control block

Question 42

Question
The context of a process in the PCB of a process DOESN'T contain:
Answer
  • memory-management information
  • context switch time
  • the process state
  • the value of CPU registers

Question 43

Question
Job control language was used to:
Answer
  • provide instructions to the monitor to improve job setup time.
  • control the sequence of events as the resident monitor
  • translate the user's program into object code
  • execute instructions

Question 44

Question
The hardware and software used in providing applications to a user can be viewed in a:
Answer
  • sandwich fashion
  • classified fashion
  • layered fashion
  • leveled fashion

Question 45

Question
Semaphore is a/an _____ to solve critical section problem.
Answer
  • integer variable
  • special program for a system
  • complex structure
  • hardware for a system

Question 46

Question
A situation where several processes access and manipulate the same data concurrently and the outcome of the execution depends on the particular order in which access takes place is called
Answer
  • data consistency
  • aging
  • race condition
  • starvation

Question 47

Question
«The OS as a resource manager» corresponds to the following objective:
Answer
  • Efficiency
  • Convenience
  • Ability to evolve

Question 48

Question
Choose the storage management responsibility for «Programmers should be able to define program modules and to create, destroy and after the size of modules dynamically»:
Answer
  • long-term storage
  • automatic allocation and management
  • support of modular programming
  • process isolation

Question 49

Question
The first fit, best fit and worst fit are strategies to select a:
Answer
  • free hole from a set of available holes.
  • processor to run the next process
  • process from a queue to put in memory
  • all of the above

Question 50

Question
For every process there is a:
Answer
  • page table.
  • copy of page table
  • frame table
  • pointer to page table

Question 51

Question
The memory allocation scheme subject to "internal" fragmentation is
Answer
  • fixed partitioning.
  • virtual memory segmentation
  • pure demand paging
  • segmentation

Question 52

Question
In memory systems, boundary registers
Answer
  • are used for temporary program variable storage
  • are only necessary with fixed partitions
  • are only necessary with unequal-length partitions
  • track the beginning and ending of programs

Question 53

Question
Any program, no matter how small, will occupy an entire partition results in
Answer
  • paging
  • internal fragmentation
  • segmentation
  • external fragmentation

Question 54

Question
The Process Control Block is:
Answer
  • a secondary storage section
  • process type variable
  • data structure
  • a block in memory

Question 55

Question
Which one of the following is synchronization tool?
Answer
  • socket
  • thread
  • pipe
  • semaphore

Question 56

Question
The link between two processes P and Q to send and receive messages is called:
Answer
  • communication link
  • message-passing link
  • synchronization tool
  • all of the above

Question 57

Question
This system handles multiple interactive jobs:
Answer
  • Serial procesing
  • Simple batch system
  • Time-sharing system
  • Multiprogrammed batch system

Question 58

Question
"Two or more programs hung up waiting for each other". This error is caused by
Answer
  • Improper synchronization
  • Nondeterminate program operation
  • Deadlocks
  • Failed mutual exclusion

Question 59

Question
"Lost signals, duplicate signals received". This error is caused by:
Answer
  • improper synchronization
  • nondeterminate program operation
  • failed mutual exclusion
  • deadlocks

Question 60

Question
The principal tool available to system programmers in developing the early multiprogramming and multiuser interactive systems
Answer
  • Interrupt
  • Job Control Language
  • Ad hoc Method
  • Monitor

Question 61

Question
Fixed-length block of data in secondary memory is called:
Answer
  • frames
  • segments
  • pages
  • none of the above

Question 62

Question
When the free memory is split into many unconnected pieces we call it:
Answer
  • Compaction
  • External fragmentation
  • Memory distribution
  • Internal fragmentation

Question 63

Question
If a page number is not found in the TLB, then it is known as a:
Answer
  • TLB miss
  • page fault
  • buffer miss
  • TLB hit

Question 64

Question
With paging there is no ______ fragmentation.
Answer
  • either type of
  • internal
  • external
  • none of the above

Question 65

Question
If a page table entry is not in a main memory, then it is known as a:
Answer
  • TLB hit
  • TLB miss
  • buffer miss
  • page fault

Question 66

Question
This matrix defines the amount of resources of type j requested by process i:
Answer
  • Request matrix
  • Resource matrix
  • Claim matrix
  • Allocation matrix

Question 67

Question
«Hold and wait» condition for deadlock is defined as:
Answer
  • process holds a resource while awaiting for other resource.
  • no resource can be forcibly removed from process holding it
  • only one process may use a resource at a time
  • each process holds resource needed by next process in chain

Question 68

Question
«Circular wait» condition for deadlock is defined as:
Answer
  • each process holds a resource needed by next process in chain.
  • no resource can be forcibly removed from process holding it
  • only one process may use a resource at a time
  • process holds a resource while awaiting for other resource

Question 69

Question
Four necessary conditions for deadlock to exist are: mutual exclusion, no-preemption, circular wait and _____
Answer
  • hold and wait
  • deadlock avoidance
  • race around condition
  • buffer overflow
  • none of the above

Question 70

Question
This resource can safely be used by only one process at a time and is not depleted by that use:
Answer
  • refreshing resource
  • replenishing resource
  • refurbished resource
  • reusable resource

Question 71

Question
The available vector defines:
Answer
  • total amount of resources required for all processes
  • total amount of each resource allocated to all processes
  • total amount of each resource NOT allocated to any process
  • total amount of each resource in the system

Question 72

Question
"No preemption" condition for deadlock is defined as:
Answer
  • No resource can be forcibly removed from process holding it.
  • Only one process may use a resource at a time
  • Process holds a resource while awaiting for other resource
  • Each process holds resource needed by next process in chain

Question 73

Question
For sharable resources, mutual exclusion
Answer
  • is not required
  • is required
  • may be or may not be required
  • none of the mentioned

Question 74

Question
In the blocking send, blocking receive:
Answer
  • both sender and receiver are blocked until message is delivered
  • none of the above
  • the sending process sends the message and resumes operation
  • the sending process sends the message while receiver is blocked

Question 75

Question
In the non-blocking send, non-blocking receive:
Answer
  • sender continues on, receiver is blocked until the requested message arrives.
  • neither of processes are required to wait
  • the sending process keeps sending until the message is received
  • the sending process sends the message and resumes operation

Question 76

Question
"More than one attempts to make use of a shared resource at the same time". This error is caused by:
Answer
  • failed mutual exclusion
  • improper synchronization
  • deadlocks
  • nondeterminate program operation

Question 77

Question
Which of the following state transitions is not possible?
Answer
  • Blocked to running
  • Blocked to ready
  • Running to blocked
  • Ready to running

Question 78

Question
What is a short-term scheduler?
Answer
  • It selects which process has to be executed next and allocates CPU
  • It selects which process has to be brought into the ready queue
  • It selects which process to remove from memory by swapping
  • None of these

Question 79

Question
What is a long-term scheduler?
Answer
  • It selects which process has to be brought into the ready queue
  • It selects which process has to be executed next and allocates CPU
  • It selects which process to remove from memory by swapping
  • None of these

Question 80

Question
What is inter-process communication?
Answer
  • Communication between two threads of same process.
  • Communication between two process
  • Communication within the process
  • None of the mentioned

Question 81

Question
There were no OS with
Answer
  • Serial processing
  • Simple batch systems
  • Time sharing systems
  • Multiprogrammed batch systems

Question 82

Question
Inter-process communication
Answer
  • allows processes to communicate and synchronize their actions without using the same address space
  • none of the above
  • allows the processes to only synchronize their actions without communication
  • allows processes to communicate and synchronize their actions when using the same address space

Question 83

Question
A sequence of instructions in a computer language to get the desired result is known as:
Answer
  • algorithm
  • process
  • instruction
  • program

Question 84

Question
In contiguous memory allocation
Answer
  • each process is contained in a single contiguous section of memory
  • none of the above
  • the memory space is contiguous
  • all processes is contained in a single contiguous section of memory

Question 85

Question
A system clock generates an interrupts at a rate of approximately every 0.2 seconds. At each clock interrupt regained control and could assign processor to another user. Technique is known as:
Answer
  • Time scheduling
  • Time slicing
  • Time sliding
  • Time allocating

Question 86

Question
In internal fragmentation, memory is internal to a partition and
Answer
  • is not being used
  • none of the above
  • is always used
  • is being used

Question 87

Question
The operating system maintains a ____ table that keeps track of how many frames have been allocated, how many are there and how many are available
Answer
  • memory
  • page
  • frame
  • segment

Question 88

Question
The algorithm is slow and may even tend to fill up memory with useless holes
Answer
  • Best fit
  • Worst fit
  • First fit
  • None of the above

Question 89

Question
24. Which of the following statements is false?
Answer
  • I\O transfers are more efficient with large pages
  • a large page size causes instructions and data that will not be referenced brought into primary storage
  • a small page size causes large page tables
  • internal fragmentation is increased with small pages

Question 90

Question
Short-term scheduler, or dispatcher, picks a process. Each process in the queue is given some time in turn. The strategy is called
Answer
  • Round-robin technique
  • Prioritizing
  • Carousel technique
  • Merry-go-round technique

Question 91

Question
The limit register:
Answer
  • Defines the size of the region of (in bytes or words)
  • Contains the index into the process list of the process currently controlling the processor
  • Points to the next instruction in that process to be executed
  • Contains the staring address of the region of memory occupied by the process

Question 92

Question
Dispatcher is:
Answer
  • Small program which switches the processor from one process to another
  • Trace scheduler
  • Interrupt handler
  • User account manager

Question 93

Question
Process spawning is:
Answer
  • Creation of parent process
  • Creation of child process
  • Termination of parent process
  • Termination of child process

Question 94

Question
The code that changes the value of the semaphore is:
Answer
  • remainder section code
  • non – critical section code
  • critical section code
  • none of the mentioned

Question 95

Question
This resource can be created and destroyed
Answer
  • consumable resource
  • finite resource
  • restartable resource
  • resumable resource

Question 96

Question
What is NOT an example of consumable resource?
Answer
  • Information in I/O buffers.
  • Signals
  • Main memory
  • Messages

Question 97

Question
A binary semaphore is a semaphore with integer values (multiple choices):
Answer
  • 1
  • —1
  • 0
  • 0.5

Question 98

Question
If more than one user or program attempts to make use of a shared resource at the same time, it may cause the error of
Answer
  • Deadlocks
  • Failed mutual exclusion
  • Nondeterminate program operation
  • Improper synchronization

Question 99

Question
Mutual exclusion means that
Answer
  • if a process is executing in its critical section, then no other process must be executing in their critical sections
  • if a process is executing in its critical section, then all the resources of the system must be blocked until it finishes exclusion
  • if a process is executing in its critical section, then other processes must be executing in their critical section
  • none of the above

Question 100

Question
The two kinds of semaphores are:
Answer
  • mutex
  • counting
  • binary
  • decimal

Question 101

Question
The objective of multi-programming is to:
Answer
  • have multiple programs waiting in a queue ready to run
  • to maximize CPU utilization
  • to minimize CPU utilization

Question 102

Question
A relationship between processes such that each has some part (critical section) which must not be executed while the critical section or another
Answer
  • Mutual exclusion
  • Multiprogramming
  • Semaphore
  • Multitasking

Question 103

Question
What is a method of memory allocation by which the program is subdivided into equal portions, or pages and core is subdivided into equal portions or blocks? It is a method of allocating processor time?
Answer
  • Paging
  • Virtual memory
  • Partition
  • Segmentation
Show full summary Hide full summary

Similar

Components of An Operating System - Jason Madappattu
Jason EM
Operating Systems (OS)
rwc.carlton
Operating System
Kai Stovell Unkn
Operating Systems
David Lee
OS
Koda M
Tyrannosaure rex
daom
Software and Utilities
Adam Meese
Operating systems
Joshua Wilkins U
LinuxOS-History
kostavro
LinuxOS-General
kostavro