OS | Test 1

Description

Suicidal Operating Systems [Teachers: Teshebayeva Karagoz, Mishina Aigerim ; Final Exam + STATE EXAM] ▼ Quiz on OS | Test 1, 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
1294
8

Resource summary

Question 1

Question
The figure below illustrates a partial program execution What is the address of the instruction that is being executed?
Answer
  • 940
  • 941
  • 303
  • 302

Question 2

Question
What is NOT a main structural element of a computer system?
Answer
  • System bus
  • Main memory
  • Operating system
  • Processor

Question 3

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

Question 4

Question
This register specifies the location in memory for the next read or write
Answer
  • I/OAR
  • I/OBR
  • Memory Address Register
  • Memory Buffer Register

Question 5

Question
Complete the relationship concerning the memory systems: faster access time —
Answer
  • slower access speed
  • greater capacity
  • smaller cost per bit
  • greater cost per bit

Question 6

Question
When a processor attempts to read a byte or word of memory, it firstly checks the:
Answer
  • Cache
  • Disk
  • CD
  • Main memory

Question 7

Question
Complete the relationship concerning the memory systems: greater capacity —
Answer
  • faster access speed
  • greater cost per bit
  • smaller cost per bit
  • lower capacity

Question 8

Question
The processor contains a single data register, called:
Answer
  • PC
  • PSW
  • AC
  • IR

Question 9

Question
As one goes down the memory hierarchy the following occurs
Answer
  • Decreasing capacity
  • Increasing frequency of access to the memory by the processor
  • Increasing cost per bit
  • Increasing access time

Question 10

Question
The figure below shows:
Answer
  • Parent-child interrupt processing
  • Nested interrupt processing
  • Parallel interrupt processing
  • Sequential interrupt processing

Question 11

Question
The figure below shows:
Answer
  • Nested interrupt processing
  • Parallel interrupt processing
  • Parent-child interrupt processing
  • Sequential interrupt processing

Question 12

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

Question 13

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

Question 14

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

Question 15

Question
Which register contains the address of the next instruction to be fetched?
Answer
  • Instruction register
  • Program counter
  • Execution register
  • Process counter

Question 16

Question
Which register contains the instruction most recently fetched?
Answer
  • Program counter
  • Process counter
  • Execution register
  • Instruction register

Question 17

Question
Choose the micro-instructions that reflect instruction execution stage shown in the figure below:
Answer
  • IR → MAR 941 M → MBR 0002 MBR → AC 0002
  • PC → MAR 303 M → MBR 2941 MBR → IR 2941
  • PC → MAR 302 M → MBR 2941 MBR → IR 2941
  • IR → MAR 941 M → MBR 0005 MBR → AC 0005

Question 18

Question
Choose the micro-instructions that reflect instruction execution stage shown in the figure below:
Answer
  • IR → MAR 941 M → MBR 0002 MBR → AC 0005
  • IR → MAR 941 M → MBR 0002 MBR → AC 0002
  • PC → MAR 302 M → MBR 2941 MBR → IR 2941
  • PC → MAR 301 M → I/OBR 5941 I/OBR → IR 5941

Question 19

Question
Choose the micro-instructions that reflect instruction execution stage shown in the figure below:
Answer
  • PC → MAR 300 M → MBR 1940 MBR → IR 1940
  • M → MAR 300 M → MBR 1940 MBR → IR 1940
  • PC → MAR 300 M → MAR 1940 MBR → IR 1940
  • PC → MAR 301 M → MBR 1940 MBR → IR 1940

Question 20

Question
Choose the micro-instructions that reflect execution stage shown in the figure below:
Answer
  • IR → MAR 1940 M → MBR 0003 MBR → AC 0003
  • PC → MAR 300 M → MBR 1940 MBR → IR 1940
  • IR → MAR 940 M → MBR 940 MBR → AC 0003
  • IR → MAR 940 M → MBR 0003 MBR → AC 0003

Question 21

Question
The figure below illustrates a partial program execution What is the memory location of the data that is addressed in the instruction?
Answer
  • 940
  • 302
  • 941
  • 301

Question 22

Question
The figure below illustrates a partial program execution. What is the memory location of the data that is addressed in the instruction?
Answer
  • 941
  • 301
  • 940
  • 302

Question 23

Question
The figure below illustrates a partial program execution Instruction in the IR will:
Answer
  • Add 2 to AC from the memory
  • Store 3 to AC from the memory
  • Load 3 to AC from the memory
  • Add 3 to AC from the memory

Question 24

Question
When an I/O device completes an I/O operation, the device issues an interrupt signal to the processor and then:
Answer
  • The processor finishes the execution of the current instruction before responding 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 stops execution of the current instruction without finishing it and responds to the interrupt

Question 25

Question
The figure a) demonstrates the program timing diagram for:
Answer
  • Interrupts; slow I/O wait
  • Interrupts; long I/O wait
  • Interrupts; short I/O wait
  • Interrupts; fast I/O wait
  • No interrupts

Question 26

Question
The smaller, more expensive, faster memory is:
Answer
  • Main memory
  • Register
  • Cache
  • Disk drive

Question 27

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

Question 28

Question
Complete the relationship concerning the memory systems: greater capacity —
Answer
  • lower capacity
  • slower access speed
  • faster access speed
  • greater cost per bit

Question 29

Question
We have Ts = average (system) access time T1 = access time of M1 (e.g. cache) T2 = access time of M2 (e.g. main memory) T3 = access time of M3 (e.g. disk) H1 = hit ratio, fraction of time reference is found in M1 H2 = hit ratio, fraction of time reference is found in M2 The average time to access an item in case the item in cache is:
Answer
  • Ts = H1 × (T1 + T2)
  • Ts = H1 × T1 + H2 × T2
  • Ts = H1 × T1
  • Ts = H1 × T1 + (1 — H1) × (T1 + T2)

Question 30

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

Question 31

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

Question 32

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

Question 33

Question
The processor is executing 'Load AC from memory' instruction. Choose the correct micro-instructions:
Answer
  • PC → MAR M → MBR MBR → IR IR → MAR M → MBR MBR → AC
  • PC → MAR M → MBR MBR → IR IR → MBR M → MAR MAR → AC
  • PC → MAR M → MBR MBR → AC IR → MAR M → MBR MBR → AC
  • PC → MBR M → MAR MAR → IR IR → MAR M → MBR MBR → AC

Question 34

Question
The processor determined that there is a pending interrupt and sent an acknowledgement signal to the device that issued the interrupt. Then, the processor:
Answer
  • Pause and remain idle until the I/O operation finishes
  • Saves the current state of the program being executed
  • Fetches new instruction from the user program and executes it
  • Loads new PC value based on interrupt

Question 35

Question
As one goes down the memory hierarchy the following occurs:
Answer
  • Increasing capacity
  • Increasing cost per bit
  • Increasing frequency of access ot the memory by the processor
  • Decreasing access time

Question 36

Question
When the time required for the I/O operation is less than the time to complete the execution of instructions between write operations in the user program, it is:
Answer
  • Fast I/O wait
  • Short I/O wait
  • Slow I/O wait
  • Long I/O wait

Question 37

Question
We have Ts = average (system) access time T1 = access time of M1 (e.g. cache) T2 = access time of M2 (e.g. main memory) T3 = access time of M3 (e.g. disk) H1 = hit ratio, fraction of time reference is found in M1 H2 = hit ratio, fraction of time reference is found in M2 The average time to access an item in case the item in cache is:
Answer
  • Ts = H1 × T1 + H2 × T2 + (1 — H2) × T3
  • Ts = H1 × H1 + (1 — H1) × (H2 × (T1 + T2) + (1 — H2) × (T1 + T2 + T3))
  • Ts = H1 × H1 + (1 — H1) × (H2 × (T2 + T3)
  • Ts = H1 × H1 + (1 — H1) × (H1 × T1 + H2 × (T1+T2) + (1 — H2) × (T2 + T3))

Question 38

Question
The type of memory is nonvolatile:
Answer
  • Secondary memory
  • Cache
  • Main memory
  • Register

Question 39

Question
Which of the following provides for communication among elements of a computer system?
Answer
  • I/O modules
  • Processor
  • Main memory
  • System bus
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