OS Part 2

Beschreibung

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.
Good Guy Beket
Quiz von Good Guy Beket, aktualisiert more than 1 year ago Mehr Weniger
Erstellt von Ein gelöschter Nutzer vor mehr als 6 Jahre
Good Guy Beket
Kopiert von Good Guy Beket vor mehr als 6 Jahre
690
18

Zusammenfassung der Ressource

Frage 1

Frage
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:
Antworten
  • race condition
  • data consistency
  • starvation
  • mutual exclusion

Frage 2

Frage
Which one of the following is the address generated by CPU?
Antworten
  • logical address
  • physical address
  • absolute address
  • none of the above

Frage 3

Frage
What is the ready state of a process?
Antworten
  • 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

Frage 4

Frage
Mutual exclusion can be provided by the:
Antworten
  • none of the above maint
  • mutex locks
  • both
  • binary semaphores

Frage 5

Frage
What is a long-term scheduler?
Antworten
  • 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

Frage 6

Frage
Operating system maintains the page table for
Antworten
  • each process
  • each thread
  • each instruction
  • each address

Frage 7

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

Frage 8

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

Frage 9

Frage
In memory systems, boundary registers?
Antworten
  • track the beginning and ending of programs
  • track page boundaries
  • are only necessary with fixed partitions
  • are used for temporary program variable storage

Frage 10

Frage
The resource vector defines
Antworten
  • 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

Frage 11

Frage
When each process in the set is blocked awaiting for resource seized by another blocked process
Antworten
  • it is a deadend
  • it is a deadlock
  • it is a softlock
  • it is a mortallock

Frage 12

Frage
The number of resources requested be a process:
Antworten
  • 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

Frage 13

Frage
What is interprocess communication?
Antworten
  • communication between two process
  • communication between two threads of same process
  • none of the above
  • communication within the process

Frage 14

Frage
The degree of multi-programming is:
Antworten
  • 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

Frage 15

Frage
This matrix defines the amount of resources of type j requested by process i
Antworten
  • Allocation matrix
  • Resource matrix
  • Request matrix
  • Claim matrix

Frage 16

Frage
To avoid the race condition, the number of processes that may be simultaneously inside their critical section is:
Antworten
  • 10
  • 0
  • 1
  • 2

Frage 17

Frage
Which process can be affected by other processes executing in the system?
Antworten
  • init process
  • cooperating process
  • child process
  • parent process

Frage 18

Frage
Which of the following registers are used by the processor to exchange data with memory?
Antworten
  • MAR and MBR
  • PC and IR
  • Program status word
  • I/OAR and I/OBR

Frage 19

Frage
Which of the following registers are used by the processor to exchange data with input/output module?
Antworten
  • MAR and MBR
  • PC and IR
  • Program status word
  • I/OAR and I/OBR

Frage 20

Frage
The main disadvantage of this technique: consumes a lot of processor time, because every word
Antworten
  • Direct memory access (DMA)
  • Manual memory access
  • Interrupt-driven I/O
  • Programmed I/O

Frage 21

Frage
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:
Antworten
  • Direct memory access (DMA)
  • Manual memory access
  • Interrupt-driven I/O
  • Programmed I/O

Frage 22

Frage
Which of the following is not a technique possible for I/O operations?
Antworten
  • Direct memory access (DMA)
  • Manual memory access
  • Interrupt-driven I/O
  • Programmed I/O

Frage 23

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

Frage 24

Frage
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:
Antworten
  • 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))

Frage 25

Frage
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:
Antworten
  • replacement algorithm
  • write policy
  • cache size
  • locality of reference

Frage 26

Frage
If the accessed word is found in the faster memory, that is defined as a:
Antworten
  • bingo
  • win
  • hit
  • evrika

Frage 27

Frage
If the accessed word is not found in the faster memory, that is defined as a:
Antworten
  • ricochet
  • miss
  • zero
  • loss

Frage 28

Frage
The processor contains a single data register, called
Antworten
  • PSW
  • PC
  • IR
  • AC

Frage 29

Frage
Which register contains the instruction most recently fetched?
Antworten
  • instruction register
  • execution register
  • program counter
  • process counter

Frage 30

Frage
This register specifies the location in memory for the next read or write
Antworten
  • Memory address register
  • I/OAR
  • Memory buffer register
  • I/OBR

Frage 31

Frage
Which of the following element of a computer system moves data between the computer and its external environment?
Antworten
  • Main memory
  • Processor
  • System bus
  • I/O modules

Frage 32

Frage
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
Antworten
  • Direct memory access (DMA)
  • Manual memory access
  • Interrupt-driven I/O
  • Programmed I/O

Frage 33

Frage
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:
Antworten
  • Direct memory access (DMA)
  • Manual memory access
  • Interrupt-driven I/O
  • Programmed I/O

Frage 34

Frage
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:
Antworten
  • Direct memory access (DMA)
  • Manual memory access
  • Interrupt-driven I/O
  • Programmed I/O

Frage 35

Frage
The processor is executing "Load AC from memory" instruction. Choose the correct micro-instruction:
Antworten
  • 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

Frage 36

Frage
If there no interrupts, after each write operation, the processor must:
Antworten
  • 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

Frage 37

Frage
Complete the relationship concerning the memory systems: greater capacity
Antworten
  • lower capacity
  • greater cost per bit
  • faster access speed
  • smaller cost per bit

Frage 38

Frage
User-visible registers minimize main memory references by optimizing register use
Antworten
  • True
  • False

Frage 39

Frage
This register contains the data to be written into memory or which receives the data read from memory
Antworten
  • I/OAR
  • memory buffer register
  • memory address register
  • I/OBR

Frage 40

Frage
Which of the following element of a computer system controls the operation of the computer and performs its data processing functions?
Antworten
  • System bus
  • Main memory
  • I/O modules
  • Processor

Frage 41

Frage
The main disadvantages of this technique: there is a competition for bus usage
Antworten
  • Interrupt-driven I/O
  • Programmed I/O
  • Manual memory access
  • Direct memory access (DMA)

Frage 42

Frage
At the beginning of each instruction cycle, the processor fetches an instruction from the memory. The address of the instruction is held in
Antworten
  • IR
  • MBR
  • MAR
  • PC

Frage 43

Frage
The smaller, more expensive, faster memory is:
Antworten
  • Disk drive
  • Cache
  • Main memory
  • Register

Frage 44

Frage
There were no OS with
Antworten
  • Simple batch systems
  • Serial processing
  • Time-sharing-systems
  • Multiprogrammed batch systems

Frage 45

Frage
The principal objective of the time-sharing system is to
Antworten
  • Minimize response time
  • Minimize processor utilization
  • Maximize response time
  • Maximize processor utilization

Frage 46

Frage
Serial processing was used
Antworten
  • In early 1960s
  • From late 1940s to the mid-1950s
  • From the mid-1950s to early 1960s

Frage 47

Frage
The programmer interacted directly with the computer hardware with
Antworten
  • Simple batch systems
  • Serial processing
  • Time-sharing-systems
  • Multiprogrammed batch systems

Frage 48

Frage
In operation system security and protection, availability is:
Antworten
  • 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

Frage 49

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

Frage 50

Frage
The limit register
Antworten
  • 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

Frage 51

Frage
In operating system security and protection, authenticity is:
Antworten
  • 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

Frage 52

Frage
An application programs is developed by the
Antworten
  • Application programmer
  • End user
  • Operating system
  • Hardware

Frage 53

Frage
"The OS as a User/Computer interface" corresponds to the following objective
Antworten
  • Efficiency
  • Convenience
  • Ability to evolve

Frage 54

Frage
Process is
Antworten
  • Program in High level language kept on disk
  • Contents of main memory
  • A job in secondary memory
  • A program in execution

Frage 55

Frage
If a process is executing in its critical section, then no other processes can be executing in their critical section. This condition is called
Antworten
  • Synchronous exclusion
  • Critical exclusion
  • Asynchronous exclusion
  • Mutual exclusion

Frage 56

Frage
In operating system security and protection, confidentiality is:
Antworten
  • 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

Frage 57

Frage
In operating system security and protection, Data integrity is:
Antworten
  • 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

Frage 58

Frage
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:
Antworten
  • Fast I/O wait
  • Slow I/O wait
  • Long I/O wait
  • Short I/O wait

Frage 59

Frage
This type of memory is nonvolatile:
Antworten
  • Register
  • Secondary memory
  • Cache
  • Main memory

Frage 60

Frage
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:
Antworten
  • write policy
  • mapping function
  • locality of reference
  • replacement algorithm

Frage 61

Frage
What is not a structural element of a computer system?
Antworten
  • System bus
  • Main memory
  • Operating system
  • Processor

Frage 62

Frage
The main disadvantage of this technique: it is a time-consuming process that keeps the processor busy needlessly
Antworten
  • Direct memory access (DMA)
  • Manual memory access
  • Interrupt-driven I/O
  • Programmed I/O

Frage 63

Frage
Which of the following element of a computer system stores data and programs
Antworten
  • Main memory
  • System bus
  • Processor
  • I/O modules

Frage 64

Frage
When an I/O device completes an I/O operation, the device issues an interrupt signal to the processor and then:
Antworten
  • 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

Frage 65

Frage
Complete the relationship concerning the memory systems: greater capacity
Antworten
  • lower capacity
  • slower access speed
  • greater cost per bit
  • faster access speed

Frage 66

Frage
Which register contains condition codes set by the processor hardware as the result of operations?
Antworten
  • Program counter
  • Accumulator
  • Program status word
  • Stack pointer

Frage 67

Frage
Which of the following provides for communication among elements of a computer system?
Antworten
  • main memory
  • system bus
  • processor
  • I/O modules

Frage 68

Frage
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:
Antworten
  • 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))

Frage 69

Frage
Control and status registers control the operation of the processor and the execution of programs
Antworten
  • True
  • False

Frage 70

Frage
This type of system was developed at MIT by a group known as Project MAC for the IBM 709 in 1961
Antworten
  • Serial processing
  • Multiprogrammed batch system
  • Simple batch system
  • Time-sharing-system

Frage 71

Frage
The concept of codes of operation (user mode, system mode) was introduced with
Antworten
  • Time-sharing-system
  • Simple batch system
  • Multiprogrammed batch system
  • Serial processing

Frage 72

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

Frage 73

Frage
Central idea in this system was the use of piece of software known as the monitor:
Antworten
  • Time-sharing-system
  • Simple batch system
  • Multiprogrammed batch system
  • Serial processing

Frage 74

Frage
'More than one program attempts to make use of a shared resource at the same time'. This is
Antworten
  • Failed mutual exclusion
  • Improper synchronization
  • Deadlocks
  • Nondeterminate program operation

Frage 75

Frage
The term was first used by the designers of Multics in 1960s:
Antworten
  • Monitor
  • Process
  • Multiprogramming
  • Time sharing

Frage 76

Frage
Utilities are
Antworten
  • Application program
  • System programs
  • Opcodes
  • Processor registers

Frage 77

Frage
"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:
Antworten
  • Falled mutual exclusions
  • Deadlocks
  • Nondeterminate program operation
  • Improper synchronisation

Frage 78

Frage
The state of a processor is defined by:
Antworten
  • 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

Frage 79

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

Frage 80

Frage
Suppose that a process is in "Blocked" state waiting for some I/O device. When the service is completed, it goes to the:
Antworten
  • Suspended state
  • Terminated state
  • Ready state
  • Running state

Frage 81

Frage
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:
Antworten
  • 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))

Frage 82

Frage
The serial processing presented two main problems:
Antworten
  • setup time
  • using a monitor
  • time slicing
  • multiprogramming
  • scheduling

Frage 83

Frage
The process index register:
Antworten
  • 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

Frage 84

Frage
The concept of a batch operating system was developed to
Antworten
  • Maximize processor utilization
  • Minimize response time
  • Support interactive mode
  • Minimize processor utilization

Frage 85

Frage
Batch operating system were used
Antworten
  • From the late 1940s to the mid-1950s
  • From the mid-1950 to early 1960s
  • In early 1960s

Frage 86

Frage
"More than one programs hung up waiting for each other". This is
Antworten
  • Failed mutual exclusions
  • Deadlocks
  • Nondeterminate program operation
  • Improper synchronization

Frage 87

Frage
This contains the most frequently used functions in the OS:
Antworten
  • Centre
  • Base
  • Root
  • Kernel

Frage 88

Frage
The end user views a computer system in terms of:
Antworten
  • a set of machine instructions
  • utilities
  • a set of system programs
  • a set of applications

Frage 89

Frage
Which of the following is not the state of a process?
Antworten
  • new
  • waiting
  • terminated
  • ready
  • running
  • old

Frage 90

Frage
The fetched instruction is loaded into the
Antworten
  • IR
  • Accumulator
  • Memory
  • PC

Frage 91

Frage
When the time required for the I/O operation will take much more time than executing a sequence of user instructions, it is:
Antworten
  • Slow I/O wait
  • Long I/O wait
  • Fast I/O wait
  • Short I/O wait

Frage 92

Frage
The system handles multiple interactive jobs
Antworten
  • Time-sharing-system
  • Simple batch system
  • Serial processing
  • Multiprogrammed batch system

Frage 93

Frage
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
Antworten
  • Time scheduling
  • Time sliding
  • Time slicing
  • Time allocating

Frage 94

Frage
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":
Antworten
  • Protection and access control
  • Long-term storage
  • automatic allocation and management
  • process isolation
  • support of modular programming

Frage 95

Frage
'Lost signals, duplicate signals received'. This is
Antworten
  • Improper synchronization
  • Nondeterminate program operation
  • Deadlocks
  • Failed mutual exclusion
Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt

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