Assignment 3

profilekhairul30
Quiz1-1.docx

IT503 Operating System Quiz 1 1

________________________________________

Your Name

1. The basic instruction cycle consists of two steps; the first step is the _____________ and the second step is the ___________________.

2. 1) The four main structural elements of a computer system are:

A) Processor, Main Memory, I/O Modules and System Bus

B) Processor, I/O Modules, System Bus and Secondary Memory

C) Processor, Registers, Main Memory and System Bus

D) Processor, Registers, I/O Modules and Main Memory

3. The __________ holds the address of the next instruction to be fetched.

A) Accumulator (AC) B) Instruction Register (IR)

C) Instruction Counter (IC) D) Program Counter (PC)

4. The unit of data exchanged between cache and main memory is __________ .

A) Block size B) Snap size

C) Cache size D) Bot size

5. In a __way____ multiprocessor all processors can perform the same functions so the failure of a

single processor does not halt the machine.

6. A ___________ computer combines two or more processors on a single piece of silicon.

7. T F An OS should be constructed in such a way as to permit the effective

development, testing, and introduction of new system functions without

interfering with service.

8. T F The OS masks the details of the hardware from the programmer and provides

the programmer with a convenient interface for using the system.

9. T F Uniprogramming typically provides better utilization of system resources than

multiprogramming.

10. The __________ is the interface that is the boundary between hardware and software.

A) ABI B) ISA

C) IAS D) API

11. The technique where a system clock generates interrupts, and at each clock interrupt the OS

regains control and assigns the processor to another user, is __________ .

A) Time slicing B) Multithreading

C) Round robin D) Clock cycle

12. Convert 1011010112 = _________10

13. Convert 01100001100011112 = _________16

14. The processor itself provides only limited support for multiprogramming, and __________ is needed to

manage the sharing of the processor and other resources by multiple applications at the same time.

A) Memory B) Data

C) Software D) Hardware

15. The ___________________ is a layer of software between the applications and the computer hardware

that supports applications and utilities.

16. The number 1278 is equivalent to what decimal number? ____________

17. The key method used to communicate events to the computer that need the special attention are called:

a. Interrupts

b. I/O controllers

c. Cache memory

d. Devices drivers

18. (4 points) If this is my program instruction set:

Opcode Definition an instruction has this format XYY

0 Halt where the X is the Opcode and

1 ADD where the YY is the address

2 SUBTRACT

3 STORE

5 LOAD

6 Branch Unconditionally

7 Branch on Zero

8 Branch on Positive

901 INPUT the First DATA

902 OUTPUT

Question a): Fill in the DESCRIPTIONS (below) of what this program does using the instruction definitions above:

Program:

Mailbox Contents DESCRIPTIONS (write here what each step does) 00 901

01 309

02 207

03 902

04 708

05 602

06 000

07 1

08 000

09 4 FIRST DATA

Prints out ______________________

All questions worth 1 point unless stated otherwise