Good Guy Beket
Quiz von , erstellt am more than 1 year ago

Suicidal Operating Systems [Teachers: Teshebayeva Karagoz, Mishina Aigerim ; Final Exam + STATE EXAM] ▼ Quiz am OS | Quizzes #3 and #4, erstellt von Good Guy Beket am 28/03/2019.

501
8
0
Good Guy Beket
Erstellt von Good Guy Beket vor mehr als 5 Jahre
Schließen

OS | Quizzes #3 and #4

Frage 1 von 103

1

Utilities are:

Wähle eine der folgenden:

  • Processor registers

  • Application programs

  • Opcodes

  • System programs

Erklärung

Frage 2 von 103

1

The process index register

Wähle eine der folgenden:

  • 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

Erklärung

Frage 3 von 103

1

The end user views a computer system in terms of:

Wähle eine der folgenden:

  • A set of machine instructions

  • A set of applications

  • A set of system programs

  • Utilities

Erklärung

Frage 4 von 103

1

Choose the storage management responsibility for «The OS can achieve efficiency by assigning memory to jobs only as needed:

Wähle eine der folgenden:

  • Process isolation

  • Protection and access control

  • Automatic allocation and management

  • Long-term storage

  • Support of modular programming

Erklärung

Frage 5 von 103

1

"The OS as a User/Computer Interface" corresponds to the following objective:

Wähle eine der folgenden:

  • Efficiency

  • Convenience

  • Ability to evolve

Erklärung

Frage 6 von 103

1

_____ is generally faster than _____

Wähle eine der folgenden:

  • first fit, best fit

  • none of the above

  • best fit, first fit

  • worst fit, best fit

Erklärung

Frage 7 von 103

1

Memory partitioning algorithm that uses binary tree as a data structure is called:

Wähle eine der folgenden:

  • First-fit algorithm

  • Buddy system

  • Next-fit algorithm

  • Best-fit algorithm

Erklärung

Frage 8 von 103

1

The address of a page table in memory is pointed by:

Wähle eine der folgenden:

  • stack pointer

  • page table base register

  • program counter

  • page register

Erklärung

Frage 9 von 103

1

Which of the following is not true about the memory management?

Wähle eine der folgenden:

  • segmented memory can be paged

  • virtual memory is used only in multi-user systems

  • segmentation suffers from external fragmentation

  • paging suffers from internal fragmentation

Erklärung

Frage 10 von 103

1

Main memory is broken into fixed-size blocks called

Wähle eine der folgenden:

  • None of the above

  • Segments

  • Frames

  • Pages

Erklärung

Frage 11 von 103

1

In operating system each process has its own:

Wähle eine der folgenden:

  • address space and global variables

  • set of data

  • program code

  • all of mentioned

Erklärung

Frage 12 von 103

1

Mutual exclusion can be provided by the:

Wähle eine der folgenden:

  • both

  • mutex locks

  • binary semaphores

  • none of the above

Erklärung

Frage 13 von 103

1

What is a medium-term scheduler?

Wähle eine der folgenden:

  • 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

Erklärung

Frage 14 von 103

1

The state of a process is defined by:

Wähle eine der folgenden:

  • 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

Erklärung

Frage 15 von 103

1

What is a ready state of a process?

Wähle eine der folgenden:

  • 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

Erklärung

Frage 16 von 103

1

Which one of the following is the deadlock avoidance algorithm?

Wähle eine der folgenden:

  • round-robin algorithm

  • elevator algorithm

  • banker's algorithm

  • dinning philosophers problem

Erklärung

Frage 17 von 103

1

A state is safe if:

Wähle eine der folgenden:

  • 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

Erklärung

Frage 18 von 103

1

The initial value of the semaphore, that allows only one of the many processes to enter their critical sections, is:

Wähle eine der folgenden:

  • 2

  • 1

  • 0

  • 10

Erklärung

Frage 19 von 103

1

The segment of code in which the process may change common variables, update tables, write into files is known as:

Wähle eine der folgenden:

  • critical section

  • mutual exclusion

  • non-critical section

  • program

Erklärung

Frage 20 von 103

1

A problem encountered in multitasking when a process is perpetually denied necessary resources is called

Wähle eine der folgenden:

  • starvation

  • aging

  • inversion

  • deadlock

Erklärung

Frage 21 von 103

1

A system is in the safe state if:

Wähle eine der folgenden:

  • 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

Erklärung

Frage 22 von 103

1

What is the reusable resource?

Wähle eine der folgenden:

  • 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

Erklärung

Frage 23 von 103

1

This illustrates the progress of two processes competing for two resources

Wähle eine der folgenden:

  • joint progress diagram

  • joint ingres diagram.

  • joint regress diagram.

  • joint process diagram.

Erklärung

Frage 24 von 103

1

Current allocation of resources to processes where there is at least one sequence that does not result in deadlock is called

Wähle eine der folgenden:

  • Safe state

  • Ambiguous state

  • Unsafe state

  • Alternative state

Erklärung

Frage 25 von 103

1

The resource vector defines:

Wähle eine der folgenden:

  • 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

Erklärung

Frage 26 von 103

1

"No preemption" condition for deadlock is defined as

Wähle eine der folgenden:

  • 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

Erklärung

Frage 27 von 103

1

This matrix defines the current allocation to process i of resource j:

Wähle eine der folgenden:

  • Claim matrix

  • Allocation matrix

  • Resource matrix

  • Request matrix

Erklärung

Frage 28 von 103

1

Which of the following cannot be interrupted?

Wähle eine der folgenden:

  • Process

  • Thread

  • Atomic operation

  • Module

Erklärung

Frage 29 von 103

1

A minimum of ____ variables is/are required to be shared between processes to solve critical section problem.

Wähle eine der folgenden:

  • three

  • two

  • one

  • four

Erklärung

Frage 30 von 103

1

For non-sharable resources like a printer, mutual exclusion:

Wähle eine der folgenden:

  • must exist

  • may exist

  • must not exist

  • none of the above

Erklärung

Frage 31 von 103

1

A monitor is type of:

Wähle eine der folgenden:

  • high-level synchronization construct

  • deadlock

  • low-level synchronization construct

  • none of the above

Erklärung

Frage 32 von 103

1

An un-interruptible unit is known as:

Wähle eine der folgenden:

  • atomic.

  • single

  • static

  • none of the above

Erklärung

Frage 33 von 103

1

Part of program, where the shared memory is accessed and which should be executed invisibly, is called:

Wähle eine der folgenden:

  • critical section

  • semaphores

  • directory

  • mutual exclusion

Erklärung

Frage 34 von 103

1

Current allocation of resources to processes where there is no sequence that does not result in deadlock is called:

Wähle eine der folgenden:

  • Safe state

  • Unsafe state

  • Alternative state

  • Ambiguous state

Erklärung

Frage 35 von 103

1

Which of the following is not one of the principles of dealing with deadlock?

Wähle eine der folgenden:

  • Initialization

  • Detection

  • Prevention

  • Avoidance

Erklärung

Frage 36 von 103

1

Deadlock inevitable region can be referred to as a:

Wähle eine der folgenden:

  • fatal region

  • false region

  • final region

  • fun region

Erklärung

Frage 37 von 103

1

When each process in the set is blocked awaiting for resource seized by another blocked process:

Wähle eine der folgenden:

  • it is deadlock

  • it is deadend

  • it is a softlock

  • It is a mortallock

Erklärung

Frage 38 von 103

1

What is NOT an example of reusable resource?

Wähle eine der folgenden:

  • I/O channels

  • Semaphores

  • Processors

  • Interrupt

Erklärung

Frage 39 von 103

1

In the non-blocking send, blocking receive:

Wähle eine der folgenden:

  • 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

Erklärung

Frage 40 von 103

1

The degree of multi-programming is:

Wähle eine der folgenden:

  • 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

Erklärung

Frage 41 von 103

1

What controls the process in a single-threaded process model?

Wähle eine der folgenden:

  • Process control block

  • Kernel stack control block

  • User address space control block

  • User stack control block

Erklärung

Frage 42 von 103

1

The context of a process in the PCB of a process DOESN'T contain:

Wähle eine der folgenden:

  • memory-management information

  • context switch time

  • the process state

  • the value of CPU registers

Erklärung

Frage 43 von 103

1

Job control language was used to:

Wähle eine der folgenden:

  • 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

Erklärung

Frage 44 von 103

1

The hardware and software used in providing applications to a user can be viewed in a:

Wähle eine der folgenden:

  • sandwich fashion

  • classified fashion

  • layered fashion

  • leveled fashion

Erklärung

Frage 45 von 103

1

Semaphore is a/an _____ to solve critical section problem.

Wähle eine der folgenden:

  • integer variable

  • special program for a system

  • complex structure

  • hardware for a system

Erklärung

Frage 46 von 103

1

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

Wähle eine der folgenden:

  • data consistency

  • aging

  • race condition

  • starvation

Erklärung

Frage 47 von 103

1

«The OS as a resource manager» corresponds to the following objective:

Wähle eine der folgenden:

  • Efficiency

  • Convenience

  • Ability to evolve

Erklärung

Frage 48 von 103

1

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»:

Wähle eine der folgenden:

  • long-term storage

  • automatic allocation and management

  • support of modular programming

  • process isolation

Erklärung

Frage 49 von 103

1

The first fit, best fit and worst fit are strategies to select a:

Wähle eine der folgenden:

  • 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

Erklärung

Frage 50 von 103

1

For every process there is a:

Wähle eine der folgenden:

  • page table.

  • copy of page table

  • frame table

  • pointer to page table

Erklärung

Frage 51 von 103

1

The memory allocation scheme subject to "internal" fragmentation is

Wähle eine der folgenden:

  • fixed partitioning.

  • virtual memory segmentation

  • pure demand paging

  • segmentation

Erklärung

Frage 52 von 103

1

In memory systems, boundary registers

Wähle eine der folgenden:

  • 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

Erklärung

Frage 53 von 103

1

Any program, no matter how small, will occupy an entire partition results in

Wähle eine der folgenden:

  • paging

  • internal fragmentation

  • segmentation

  • external fragmentation

Erklärung

Frage 54 von 103

1

The Process Control Block is:

Wähle eine der folgenden:

  • a secondary storage section

  • process type variable

  • data structure

  • a block in memory

Erklärung

Frage 55 von 103

1

Which one of the following is synchronization tool?

Wähle eine der folgenden:

  • socket

  • thread

  • pipe

  • semaphore

Erklärung

Frage 56 von 103

1

The link between two processes P and Q to send and receive messages is called:

Wähle eine der folgenden:

  • communication link

  • message-passing link

  • synchronization tool

  • all of the above

Erklärung

Frage 57 von 103

1

This system handles multiple interactive jobs:

Wähle eine der folgenden:

  • Serial procesing

  • Simple batch system

  • Time-sharing system

  • Multiprogrammed batch system

Erklärung

Frage 58 von 103

1

"Two or more programs hung up waiting for each other". This error is caused by

Wähle eine der folgenden:

  • Improper synchronization

  • Nondeterminate program operation

  • Deadlocks

  • Failed mutual exclusion

Erklärung

Frage 59 von 103

1

"Lost signals, duplicate signals received". This error is caused by:

Wähle eine der folgenden:

  • improper synchronization

  • nondeterminate program operation

  • failed mutual exclusion

  • deadlocks

Erklärung

Frage 60 von 103

1

The principal tool available to system programmers in developing the early multiprogramming and multiuser interactive systems

Wähle eine der folgenden:

  • Interrupt

  • Job Control Language

  • Ad hoc Method

  • Monitor

Erklärung

Frage 61 von 103

1

Fixed-length block of data in secondary memory is called:

Wähle eine der folgenden:

  • frames

  • segments

  • pages

  • none of the above

Erklärung

Frage 62 von 103

1

When the free memory is split into many unconnected pieces we call it:

Wähle eine der folgenden:

  • Compaction

  • External fragmentation

  • Memory distribution

  • Internal fragmentation

Erklärung

Frage 63 von 103

1

If a page number is not found in the TLB, then it is known as a:

Wähle eine der folgenden:

  • TLB miss

  • page fault

  • buffer miss

  • TLB hit

Erklärung

Frage 64 von 103

1

With paging there is no ______ fragmentation.

Wähle eine der folgenden:

  • either type of

  • internal

  • external

  • none of the above

Erklärung

Frage 65 von 103

1

If a page table entry is not in a main memory, then it is known as a:

Wähle eine der folgenden:

  • TLB hit

  • TLB miss

  • buffer miss

  • page fault

Erklärung

Frage 66 von 103

1

This matrix defines the amount of resources of type j requested by process i:

Wähle eine der folgenden:

  • Request matrix

  • Resource matrix

  • Claim matrix

  • Allocation matrix

Erklärung

Frage 67 von 103

1

«Hold and wait» condition for deadlock is defined as:

Wähle eine der folgenden:

  • 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

Erklärung

Frage 68 von 103

1

«Circular wait» condition for deadlock is defined as:

Wähle eine der folgenden:

  • 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

Erklärung

Frage 69 von 103

1

Four necessary conditions for deadlock to exist are: mutual exclusion, no-preemption, circular wait and _____

Wähle eine der folgenden:

  • hold and wait

  • deadlock avoidance

  • race around condition

  • buffer overflow

  • none of the above

Erklärung

Frage 70 von 103

1

This resource can safely be used by only one process at a time and is not depleted by that use:

Wähle eine der folgenden:

  • refreshing resource

  • replenishing resource

  • refurbished resource

  • reusable resource

Erklärung

Frage 71 von 103

1

The available vector defines:

Wähle eine der folgenden:

  • 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

Erklärung

Frage 72 von 103

1

"No preemption" condition for deadlock is defined as:

Wähle eine der folgenden:

  • 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

Erklärung

Frage 73 von 103

1

For sharable resources, mutual exclusion

Wähle eine der folgenden:

  • is not required

  • is required

  • may be or may not be required

  • none of the mentioned

Erklärung

Frage 74 von 103

1

In the blocking send, blocking receive:

Wähle eine der folgenden:

  • 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

Erklärung

Frage 75 von 103

1

In the non-blocking send, non-blocking receive:

Wähle eine der folgenden:

  • 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

Erklärung

Frage 76 von 103

1

"More than one attempts to make use of a shared resource at the same time". This error is caused by:

Wähle eine der folgenden:

  • failed mutual exclusion

  • improper synchronization

  • deadlocks

  • nondeterminate program operation

Erklärung

Frage 77 von 103

1

Which of the following state transitions is not possible?

Wähle eine der folgenden:

  • Blocked to running

  • Blocked to ready

  • Running to blocked

  • Ready to running

Erklärung

Frage 78 von 103

1

What is a short-term scheduler?

Wähle eine der folgenden:

  • 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

Erklärung

Frage 79 von 103

1

What is a long-term scheduler?

Wähle eine der folgenden:

  • 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

Erklärung

Frage 80 von 103

1

What is inter-process communication?

Wähle eine der folgenden:

  • Communication between two threads of same process.

  • Communication between two process

  • Communication within the process

  • None of the mentioned

Erklärung

Frage 81 von 103

1

There were no OS with

Wähle eine der folgenden:

  • Serial processing

  • Simple batch systems

  • Time sharing systems

  • Multiprogrammed batch systems

Erklärung

Frage 82 von 103

1

Inter-process communication

Wähle eine der folgenden:

  • 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

Erklärung

Frage 83 von 103

1

A sequence of instructions in a computer language to get the desired result is known as:

Wähle eine der folgenden:

  • algorithm

  • process

  • instruction

  • program

Erklärung

Frage 84 von 103

1

In contiguous memory allocation

Wähle eine der folgenden:

  • 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

Erklärung

Frage 85 von 103

1

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:

Wähle eine der folgenden:

  • Time scheduling

  • Time slicing

  • Time sliding

  • Time allocating

Erklärung

Frage 86 von 103

1

In internal fragmentation, memory is internal to a partition and

Wähle eine der folgenden:

  • is not being used

  • none of the above

  • is always used

  • is being used

Erklärung

Frage 87 von 103

1

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

Wähle eine der folgenden:

  • memory

  • page

  • frame

  • segment

Erklärung

Frage 88 von 103

1

The algorithm is slow and may even tend to fill up memory with useless holes

Wähle eine der folgenden:

  • Best fit

  • Worst fit

  • First fit

  • None of the above

Erklärung

Frage 89 von 103

1

24. Which of the following statements is false?

Wähle eine der folgenden:

  • 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

Erklärung

Frage 90 von 103

1

Short-term scheduler, or dispatcher, picks a process. Each process in the queue is given some time in turn. The strategy is called

Wähle eine der folgenden:

  • Round-robin technique

  • Prioritizing

  • Carousel technique

  • Merry-go-round technique

Erklärung

Frage 91 von 103

1

The limit register:

Wähle eine der folgenden:

  • 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

Erklärung

Frage 92 von 103

1

Dispatcher is:

Wähle eine der folgenden:

  • Small program which switches the processor from one process to another

  • Trace scheduler

  • Interrupt handler

  • User account manager

Erklärung

Frage 93 von 103

1

Process spawning is:

Wähle eine der folgenden:

  • Creation of parent process

  • Creation of child process

  • Termination of parent process

  • Termination of child process

Erklärung

Frage 94 von 103

1

The code that changes the value of the semaphore is:

Wähle eine der folgenden:

  • remainder section code

  • non – critical section code

  • critical section code

  • none of the mentioned

Erklärung

Frage 95 von 103

1

This resource can be created and destroyed

Wähle eine der folgenden:

  • consumable resource

  • finite resource

  • restartable resource

  • resumable resource

Erklärung

Frage 96 von 103

1

What is NOT an example of consumable resource?

Wähle eine der folgenden:

  • Information in I/O buffers.

  • Signals

  • Main memory

  • Messages

Erklärung

Frage 97 von 103

1

A binary semaphore is a semaphore with integer values (multiple choices):

Wähle eine oder mehr der folgenden:

  • 1

  • —1

  • 0

  • 0.5

Erklärung

Frage 98 von 103

1

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

Wähle eine der folgenden:

  • Deadlocks

  • Failed mutual exclusion

  • Nondeterminate program operation

  • Improper synchronization

Erklärung

Frage 99 von 103

1

Mutual exclusion means that

Wähle eine der folgenden:

  • 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

Erklärung

Frage 100 von 103

1

The two kinds of semaphores are:

Wähle eine oder mehr der folgenden:

  • mutex

  • counting

  • binary

  • decimal

Erklärung

Frage 101 von 103

1

The objective of multi-programming is to:

Wähle eine der folgenden:

  • have multiple programs waiting in a queue ready to run

  • to maximize CPU utilization

  • to minimize CPU utilization

Erklärung

Frage 102 von 103

1

A relationship between processes such that each has some part (critical section) which must not be executed while the critical section or another

Wähle eine der folgenden:

  • Mutual exclusion

  • Multiprogramming

  • Semaphore

  • Multitasking

Erklärung

Frage 103 von 103

1

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?

Wähle eine der folgenden:

  • Paging

  • Virtual memory

  • Partition

  • Segmentation

Erklärung