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 Part 2, erstellt von Good Guy Beket am 18/12/2017.

692
18
0
Erstellt von Ein gelöschter Nutzer vor mehr als 6 Jahre
Good Guy Beket
Kopiert von Good Guy Beket vor mehr als 6 Jahre
Schließen

OS Part 2

Frage 1 von 95

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:

  • race condition

  • data consistency

  • starvation

  • mutual exclusion

Erklärung

Frage 2 von 95

1

Which one of the following is the address generated by CPU?

Wähle eine der folgenden:

  • logical address

  • physical address

  • absolute address

  • none of the above

Erklärung

Frage 3 von 95

1

What is the ready state of a process?

Wähle eine der folgenden:

  • when process is scheduled to run after some execution

  • none of the above

  • when process is using CPU

  • when process is unable to run until some task has been completed

Erklärung

Frage 4 von 95

1

Mutual exclusion can be provided by the:

Wähle eine der folgenden:

  • none of the above maint

  • mutex locks

  • both

  • binary semaphores

Erklärung

Frage 5 von 95

1

What is a long-term scheduler?

Wähle eine der folgenden:

  • it selects which process has to be executed next and allocates CPU

  • none of the above

  • it selects which process has to be brought into the ready queue

  • it selects which process has to remove from memory by swapping

Erklärung

Frage 6 von 95

1

Operating system maintains the page table for

Wähle eine der folgenden:

  • each process

  • each thread

  • each instruction

  • each address

Erklärung

Frage 7 von 95

1

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

Wähle eine der folgenden:

  • TLB miss

  • buffer miss

  • TLB hit

  • page fault

Erklärung

Frage 8 von 95

1

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

Wähle eine der folgenden:

  • semaphores

  • mutual exclusion

  • critical section

  • directory

Erklärung

Frage 9 von 95

1

In memory systems, boundary registers?

Wähle eine der folgenden:

  • track the beginning and ending of programs

  • track page boundaries

  • are only necessary with fixed partitions

  • are used for temporary program variable storage

Erklärung

Frage 10 von 95

1

The resource vector defines

Wähle eine der folgenden:

  • total amount of resources required for all processes

  • total amount of each resource in the system

  • total amount of each resource allocated to all processes

  • total amount of each resource NOT allocated to any process

Erklärung

Frage 11 von 95

1

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

Wähle eine der folgenden:

  • it is a deadend

  • it is a deadlock

  • it is a softlock

  • it is a mortallock

Erklärung

Frage 12 von 95

1

The number of resources requested be a process:

Wähle eine der folgenden:

  • must exceed the total number of resources available in the system

  • must always be equal to the total number of resources available in the system

  • must not exceed the total number of resources available in the system

  • must always be less than the total number of resources available in the system

Erklärung

Frage 13 von 95

1

What is interprocess communication?

Wähle eine der folgenden:

  • communication between two process

  • communication between two threads of same process

  • none of the above

  • communication within the process

Erklärung

Frage 14 von 95

1

The degree of multi-programming is:

Wähle eine der folgenden:

  • the number of processes executed per unit time

  • the number of processes in the I/O queue

  • the number of processes in the ready queue

  • the number of processes in memory

Erklärung

Frage 15 von 95

1

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

Wähle eine der folgenden:

  • Allocation matrix

  • Resource matrix

  • Request matrix

  • Claim matrix

Erklärung

Frage 16 von 95

1

To avoid the race condition, the number of processes that may be simultaneously inside their critical section is:

Wähle eine der folgenden:

  • 10

  • 0

  • 1

  • 2

Erklärung

Frage 17 von 95

1

Which process can be affected by other processes executing in the system?

Wähle eine der folgenden:

  • init process

  • cooperating process

  • child process

  • parent process

Erklärung

Frage 18 von 95

1

Which of the following registers are used by the processor to exchange data with memory?

Wähle eine der folgenden:

  • MAR and MBR

  • PC and IR

  • Program status word

  • I/OAR and I/OBR

Erklärung

Frage 19 von 95

1

Which of the following registers are used by the processor to exchange data with input/output module?

Wähle eine der folgenden:

  • MAR and MBR

  • PC and IR

  • Program status word

  • I/OAR and I/OBR

Erklärung

Frage 20 von 95

1

The main disadvantage of this technique: consumes a lot of processor time, because every word

Wähle eine der folgenden:

  • Direct memory access (DMA)

  • Manual memory access

  • Interrupt-driven I/O

  • Programmed I/O

Erklärung

Frage 21 von 95

1

The processor issues an I/O command to a module and then go on to some other useful work. The I/O module performs the requested action and alerts the processor to request service when it is ready to exchange data with the processor. The described technique is:

Wähle eine der folgenden:

  • Direct memory access (DMA)

  • Manual memory access

  • Interrupt-driven I/O

  • Programmed I/O

Erklärung

Frage 22 von 95

1

Which of the following is not a technique possible for I/O operations?

Wähle eine der folgenden:

  • Direct memory access (DMA)

  • Manual memory access

  • Interrupt-driven I/O

  • Programmed I/O

Erklärung

Frage 23 von 95

1

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

Wähle eine der folgenden:

  • page fault

  • buffer miss

  • TLB hit

  • TLB miss

Erklärung

Frage 24 von 95

1

We have

Ts = average (system) access time

T1 = access time of M1 (cache)

T2 = access time of M2 (main memory)

T3 = access time of M3 (disk)

H1 = hit ratio, fraction of time reference is found i M1

H2 = hit ratio, fraction of time reference is found i M2

The average time to access an item, in case the item in disk is:

Wähle eine der folgenden:

  • Ts = H1*T1 + H2*T2 + (1-H2)*T3

  • Ts = H1*T1 + (1-H1)*(H1*T1 + H2*(T1 + T2) + (1 - H2)*(T2 + T3))

  • Ts = H1*T1 + (1-H1)*H2*(T2 + T3)

  • Ts = H1*T1 + (1-H1)*(H2*(T1 + T2) + (1 - H2)*(T1 + T2 + T3))

Erklärung

Frage 25 von 95

1

This chooses which block to replace when a new block is to be loaded into the cache and the cache already had all slots filled with other blocks:

Wähle eine der folgenden:

  • replacement algorithm

  • write policy

  • cache size

  • locality of reference

Erklärung

Frage 26 von 95

1

If the accessed word is found in the faster memory, that is defined as a:

Wähle eine der folgenden:

  • bingo

  • win

  • hit

  • evrika

Erklärung

Frage 27 von 95

1

If the accessed word is not found in the faster memory, that is defined as a:

Wähle eine der folgenden:

  • ricochet

  • miss

  • zero

  • loss

Erklärung

Frage 28 von 95

1

The processor contains a single data register, called

Wähle eine der folgenden:

  • PSW

  • PC

  • IR

  • AC

Erklärung

Frage 29 von 95

1

Which register contains the instruction most recently fetched?

Wähle eine der folgenden:

  • instruction register

  • execution register

  • program counter

  • process counter

Erklärung

Frage 30 von 95

1

This register specifies the location in memory for the next read or write

Wähle eine der folgenden:

  • Memory address register

  • I/OAR

  • Memory buffer register

  • I/OBR

Erklärung

Frage 31 von 95

1

Which of the following element of a computer system moves data between the computer and its external environment?

Wähle eine der folgenden:

  • Main memory

  • Processor

  • System bus

  • I/O modules

Erklärung

Frage 32 von 95

1

This main disadvantage of this technique: consumes a lot of processor time, because every word of data that goes from memory to I/O module or from I/O module to memory must pass through the processor

Wähle eine der folgenden:

  • Direct memory access (DMA)

  • Manual memory access

  • Interrupt-driven I/O

  • Programmed I/O

Erklärung

Frage 33 von 95

1

The processor issues an I/O command to a separate module, by sending the type of operation (read/write), the address of the I/O device, the starting location in memory for data, number of words. Then the processor continues with other work. The module transfers the entire block of data to/from memory without going through the processor. The described technique is:

Wähle eine der folgenden:

  • Direct memory access (DMA)

  • Manual memory access

  • Interrupt-driven I/O

  • Programmed I/O

Erklärung

Frage 34 von 95

1

The processor issues an I/O command to a module and waits, periodically checking the status of the I/O module until it finds that the operation is complete.
The I/O module performs the requested action and then sets the appropriate bits in the I/O status register but takes no further action to alert the processor.
The described technique is:

Wähle eine der folgenden:

  • Direct memory access (DMA)

  • Manual memory access

  • Interrupt-driven I/O

  • Programmed I/O

Erklärung

Frage 35 von 95

1

The processor is executing "Load AC from memory" instruction. Choose the correct micro-instruction:

Wähle eine der folgenden:

  • PC -> MAR
    M -> MBR
    MBR -> AC
    IR -> MAR
    M -> MBR
    MBR -> AC

  • PC -> MBR
    M -> MAR
    MAR -> IR
    IR -> MAR
    M -> MBR
    MBR -> AC

  • PC -> MAR
    M -> MBR
    MBR -> IR
    IR -> MAR
    M -> MBR
    MBR -> AC

  • PC -> MAR
    M -> MBR
    MBR -> IR
    IR -> MBR
    M -> MAR
    MAR -> AC

Erklärung

Frage 36 von 95

1

If there no interrupts, after each write operation, the processor must:

Wähle eine der folgenden:

  • Load new PC value

  • Finish execution of current instruction

  • Save the PSW and PC onto control stack

  • Pause and remain idle until the I/O operation finishes

Erklärung

Frage 37 von 95

1

Complete the relationship concerning the memory systems: greater capacity

Wähle eine der folgenden:

  • lower capacity

  • greater cost per bit

  • faster access speed

  • smaller cost per bit

Erklärung

Frage 38 von 95

1

User-visible registers minimize main memory references by optimizing register use

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung

Frage 39 von 95

1

This register contains the data to be written into memory or which receives the data read from memory

Wähle eine der folgenden:

  • I/OAR

  • memory buffer register

  • memory address register

  • I/OBR

Erklärung

Frage 40 von 95

1

Which of the following element of a computer system controls the operation of the computer and performs its data processing functions?

Wähle eine der folgenden:

  • System bus

  • Main memory

  • I/O modules

  • Processor

Erklärung

Frage 41 von 95

1

The main disadvantages of this technique: there is a competition for bus usage

Wähle eine der folgenden:

  • Interrupt-driven I/O

  • Programmed I/O

  • Manual memory access

  • Direct memory access (DMA)

Erklärung

Frage 42 von 95

1

At the beginning of each instruction cycle, the processor fetches an instruction from the memory. The address of the instruction is held in

Wähle eine der folgenden:

  • IR

  • MBR

  • MAR

  • PC

Erklärung

Frage 43 von 95

1

The smaller, more expensive, faster memory is:

Wähle eine der folgenden:

  • Disk drive

  • Cache

  • Main memory

  • Register

Erklärung

Frage 44 von 95

1

There were no OS with

Wähle eine der folgenden:

  • Simple batch systems

  • Serial processing

  • Time-sharing-systems

  • Multiprogrammed batch systems

Erklärung

Frage 45 von 95

1

The principal objective of the time-sharing system is to

Wähle eine der folgenden:

  • Minimize response time

  • Minimize processor utilization

  • Maximize response time

  • Maximize processor utilization

Erklärung

Frage 46 von 95

1

Serial processing was used

Wähle eine der folgenden:

  • In early 1960s

  • From late 1940s to the mid-1950s

  • From the mid-1950s to early 1960s

Erklärung

Frage 47 von 95

1

The programmer interacted directly with the computer hardware with

Wähle eine der folgenden:

  • Simple batch systems

  • Serial processing

  • Time-sharing-systems

  • Multiprogrammed batch systems

Erklärung

Frage 48 von 95

1

In operation system security and protection, availability is:

Wähle eine der folgenden:

  • Concerned with the proper verification of the identity of users and the validity of messages or data

  • Assuring that users cannot read data for which access is unauthorized

  • Protection of data from unauthorized modification

  • Concerned with protecting the system against interruption

Erklärung

Frage 49 von 95

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

  • Long-term storage

  • Support of modular programming

  • Automatic allocation and management

Erklärung

Frage 50 von 95

1

The limit register

Wähle eine der folgenden:

  • Defines the size of the region of memory occupied by the process (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 51 von 95

1

In operating system security and protection, authenticity is:

Wähle eine der folgenden:

  • Concerned with the proper verification of the identity of users and the validity of messages or data

  • Assuring that users cannot read data for which access is unauthorized

  • Protection of data from unauthorized modification

  • Concerned with protecting the system against interruption

Erklärung

Frage 52 von 95

1

An application programs is developed by the

Wähle eine der folgenden:

  • Application programmer

  • End user

  • Operating system

  • Hardware

Erklärung

Frage 53 von 95

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 54 von 95

1

Process is

Wähle eine der folgenden:

  • Program in High level language kept on disk

  • Contents of main memory

  • A job in secondary memory

  • A program in execution

Erklärung

Frage 55 von 95

1

If a process is executing in its critical section, then no other processes can be executing in their critical section. This condition is called

Wähle eine der folgenden:

  • Synchronous exclusion

  • Critical exclusion

  • Asynchronous exclusion

  • Mutual exclusion

Erklärung

Frage 56 von 95

1

In operating system security and protection, confidentiality is:

Wähle eine der folgenden:

  • Concerned with the proper verification of the identity of users and the validity of messages or data

  • Assuring that users cannot read data for which access is unauthorized

  • Protection of data from unauthorized modification

  • Concerned with protecting the system against interruption

Erklärung

Frage 57 von 95

1

In operating system security and protection, Data integrity is:

Wähle eine der folgenden:

  • Concerned with the proper verification of the identity of users and the validity of messages or data

  • Assuring that users cannot read data for which access is unauthorized

  • Protection of data from unauthorized modification

  • Concerned with protecting the system against interruption

Erklärung

Frage 58 von 95

1

When the time required for the I/O operation is less that the time to complete the execution of instructions between write operations in the user program, it is:

Wähle eine der folgenden:

  • Fast I/O wait

  • Slow I/O wait

  • Long I/O wait

  • Short I/O wait

Erklärung

Frage 59 von 95

1

This type of memory is nonvolatile:

Wähle eine der folgenden:

  • Register

  • Secondary memory

  • Cache

  • Main memory

Erklärung

Frage 60 von 95

1

If the contents of a block in the cache are altered, then it is needed to save it back to main memory before replacing it. This is called:

Wähle eine der folgenden:

  • write policy

  • mapping function

  • locality of reference

  • replacement algorithm

Erklärung

Frage 61 von 95

1

What is not a structural element of a computer system?

Wähle eine der folgenden:

  • System bus

  • Main memory

  • Operating system

  • Processor

Erklärung

Frage 62 von 95

1

The main disadvantage of this technique: it is a time-consuming process that keeps the processor busy needlessly

Wähle eine der folgenden:

  • Direct memory access (DMA)

  • Manual memory access

  • Interrupt-driven I/O

  • Programmed I/O

Erklärung

Frage 63 von 95

1

Which of the following element of a computer system stores data and programs

Wähle eine der folgenden:

  • Main memory

  • System bus

  • Processor

  • I/O modules

Erklärung

Frage 64 von 95

1

When an I/O device completes an I/O operation, the device issues an interrupt signal to the processor and then:

Wähle eine der folgenden:

  • The processor stops execution of the current instruction without finishing it and responds to the interrupt

  • The processor loads the program counter with the entry location of the interrupt-handling routine

  • The processor saves information needed to resume the current program at the point if interrupt

  • The processor finishes execution of the current instruction before responding to the interrupt

Erklärung

Frage 65 von 95

1

Complete the relationship concerning the memory systems: greater capacity

Wähle eine der folgenden:

  • lower capacity

  • slower access speed

  • greater cost per bit

  • faster access speed

Erklärung

Frage 66 von 95

1

Which register contains condition codes set by the processor hardware as the result of operations?

Wähle eine der folgenden:

  • Program counter

  • Accumulator

  • Program status word

  • Stack pointer

Erklärung

Frage 67 von 95

1

Which of the following provides for communication among elements of a computer system?

Wähle eine der folgenden:

  • main memory

  • system bus

  • processor

  • I/O modules

Erklärung

Frage 68 von 95

1

We have
Ts = average (system) access time

T1 = access time of M1 (cache)

T2 = access time of M2 (main memory)

T3 = access time of M3 (disk)

H1 = hit ratio, fraction of time reference is found i M1

H2 = hit ratio, fraction of time reference is found i M2

The average time to access an item, in case the item in main memory is:

Wähle eine der folgenden:

  • Ts = H1*T1 + H2*T2 + (1-H2)*T3

  • Ts = H1*T1 + (1-H1)*(H1*T1 + H2*(T1 + T2) + (1 - H2)*(T2 + T3))

  • Ts = H1*T1 + (1-H1)*(T1+T2)

  • Ts = H1*T1 + (1-H1)*(H2*(T1 + T2) + (1 - H2)*(T1 + T2 + T3))

Erklärung

Frage 69 von 95

1

Control and status registers control the operation of the processor and the execution of programs

Wähle eins der folgenden:

  • WAHR
  • FALSCH

Erklärung

Frage 70 von 95

1

This type of system was developed at MIT by a group known as Project MAC for the IBM 709 in 1961

Wähle eine der folgenden:

  • Serial processing

  • Multiprogrammed batch system

  • Simple batch system

  • Time-sharing-system

Erklärung

Frage 71 von 95

1

The concept of codes of operation (user mode, system mode) was introduced with

Wähle eine der folgenden:

  • Time-sharing-system

  • Simple batch system

  • Multiprogrammed batch system

  • Serial processing

Erklärung

Frage 72 von 95

1

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

Wähle eine der folgenden:

  • Round-robin technique

  • Prioritizing

  • Carousel technique

  • Merry-go-round technique

Erklärung

Frage 73 von 95

1

Central idea in this system was the use of piece of software known as the monitor:

Wähle eine der folgenden:

  • Time-sharing-system

  • Simple batch system

  • Multiprogrammed batch system

  • Serial processing

Erklärung

Frage 74 von 95

1

'More than one program attempts to make use of a shared resource at the same time'. This is

Wähle eine der folgenden:

  • Failed mutual exclusion

  • Improper synchronization

  • Deadlocks

  • Nondeterminate program operation

Erklärung

Frage 75 von 95

1

The term was first used by the designers of Multics in 1960s:

Wähle eine der folgenden:

  • Monitor

  • Process

  • Multiprogramming

  • Time sharing

Erklärung

Frage 76 von 95

1

Utilities are

Wähle eine der folgenden:

  • Application program

  • System programs

  • Opcodes

  • Processor registers

Erklärung

Frage 77 von 95

1

"When program shares memory and their execution is interleaved by the processor, they may interfere with each other by overwriting common memory areas in unpredictable ways. The result of a particular program depend on the activities of other programs in shared systems".
This is:

Wähle eine der folgenden:

  • Falled mutual exclusions

  • Deadlocks

  • Nondeterminate program operation

  • Improper synchronisation

Erklärung

Frage 78 von 95

1

The state of a processor is defined by:

Wähle eine der folgenden:

  • the activity just executed by the process

  • the current activity of the process

  • the final activity of the process

  • the activity to next be executed by the process

Erklärung

Frage 79 von 95

1

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

Wähle eine der folgenden:

  • classified fashion

  • layered fashion

  • sandwich fashion

  • leveled fashion

Erklärung

Frage 80 von 95

1

Suppose that a process is in "Blocked" state waiting for some I/O device.
When the service is completed, it goes to the:

Wähle eine der folgenden:

  • Suspended state

  • Terminated state

  • Ready state

  • Running state

Erklärung

Frage 81 von 95

1

We have
Ts = average (system) access time
T1 = access time of M1 (cache)

T2 = access time of M2 (main memory)
T3 = access time of M3 (disk)

H1 = hit ratio, fraction of time reference is found i M1

H2 = hit ratio, fraction of time reference is found i M2

The average time to access an item, in case the item in cache is:

Wähle eine der folgenden:

  • Ts = H1*T1 + H2*T2 + (1-H2)*T3

  • Ts = H1*T1 + (1-H1)*(H1*T1 + H2*(T1 + T2) + (1 - H2)*(T2 + T3))

  • Ts = H1*T1

  • Ts = H1*T1 + (1-H1)*(H2*(T1 + T2) + (1 - H2)*(T1 + T2 + T3))

Erklärung

Frage 82 von 95

1

The serial processing presented two main problems:

Wähle eine oder mehr der folgenden:

  • setup time

  • using a monitor

  • time slicing

  • multiprogramming

  • scheduling

Erklärung

Frage 83 von 95

1

The process index register:

Wähle eine der folgenden:

  • contains the index into a process list of the process currently controlling the processor

  • define the region in memory occupied by the process

  • points to the next instruction in that process to be executed

  • contains the starting address of the region of memory occupied by the process

Erklärung

Frage 84 von 95

1

The concept of a batch operating system was developed to

Wähle eine der folgenden:

  • Maximize processor utilization

  • Minimize response time

  • Support interactive mode

  • Minimize processor utilization

Erklärung

Frage 85 von 95

1

Batch operating system were used

Wähle eine der folgenden:

  • From the late 1940s to the mid-1950s

  • From the mid-1950 to early 1960s

  • In early 1960s

Erklärung

Frage 86 von 95

1

"More than one programs hung up waiting for each other".
This is

Wähle eine der folgenden:

  • Failed mutual exclusions

  • Deadlocks

  • Nondeterminate program operation

  • Improper synchronization

Erklärung

Frage 87 von 95

1

This contains the most frequently used functions in the OS:

Wähle eine der folgenden:

  • Centre

  • Base

  • Root

  • Kernel

Erklärung

Frage 88 von 95

1

The end user views a computer system in terms of:

Wähle eine der folgenden:

  • a set of machine instructions

  • utilities

  • a set of system programs

  • a set of applications

Erklärung

Frage 89 von 95

1

Which of the following is not the state of a process?

Wähle eine oder mehr der folgenden:

  • new

  • waiting

  • terminated

  • ready

  • running

  • old

Erklärung

Frage 90 von 95

1

The fetched instruction is loaded into the

Wähle eine der folgenden:

  • IR

  • Accumulator

  • Memory

  • PC

Erklärung

Frage 91 von 95

1

When the time required for the I/O operation will take much more time than executing a sequence of user instructions, it is:

Wähle eine der folgenden:

  • Slow I/O wait

  • Long I/O wait

  • Fast I/O wait

  • Short I/O wait

Erklärung

Frage 92 von 95

1

The system handles multiple interactive jobs

Wähle eine der folgenden:

  • Time-sharing-system

  • Simple batch system

  • Serial processing

  • Multiprogrammed batch system

Erklärung

Frage 93 von 95

1

A system clock generates interrupts at a rate of approximately one every 0.2 seconds. At each clock interrupt, the OS regained control and could assign the processor to another user. This technique is known as

Wähle eine der folgenden:

  • Time scheduling

  • Time sliding

  • Time slicing

  • Time allocating

Erklärung

Frage 94 von 95

1

Choose the storage management responsibility for "Programmers should be able to define programs modules, and to create, destroy, and alter the size of modules dynamically":

Wähle eine der folgenden:

  • Protection and access control

  • Long-term storage

  • automatic allocation and management

  • process isolation

  • support of modular programming

Erklärung

Frage 95 von 95

1

'Lost signals, duplicate signals received'. This is

Wähle eine der folgenden:

  • Improper synchronization

  • Nondeterminate program operation

  • Deadlocks

  • Failed mutual exclusion

Erklärung