You are on page 1of 3

Ministry of Higher Education

nologre Higher Technological Institute


10th Ramadan City
Department: Computer Science Department Course Level: 2nd level

t Course Name : Operating systems Model (A) Code: CSC 220

Examiner: DR. Nader and Dr. Ahmed Magdy Date: 21/6/2021 Time: 90 Min.

Answer allthefollowingquestionsin 2Pagewith 55 Points 10midterm and 30finall


The First Question: (15 points)
la] Choose the one alternative that best completes the statement or answers the question:

1. One of the processor's main functions is to exchange data with memory.


aTrue b) False
2. The Program Status Word contains status information in the form of condition codes, which are bits
typically set by the programmer as a result of program operation.
a) True False
3. The processing required for a single instruction on a typical computer system is called the Execute
Cycle.
a) True False
4. A fetched instruction is normally loaded into the Instruction Register (IR).
True b) False
5. An interrupt is a mechanism used by system modules to signal the processor that normal processing
should be temporarily suspended.
True b) False
6. To accommodate interrupts, an extra fetch cycle is added to the instruction cycle.
a) True bFalse
7. The minimum information that must be saved before the processor transfers control to the interrupt
handler routine is the program status word (PSW) and the location of the current instruction.
a) True False
8. One approach to dealing with multiple interrupts is to disable all interrupts while an interrupt is being
processed.
True b) False
9. Multiprogramming allows the processor to make use of idle time caused by long-wait interrupt
handling.
aTrue b) False
10. In a two-level memory hierarchy, the Hit Ratio is detíned as the fraction of all memory accesses found
in the slower memory.
a) True False
11.Cache memory exploits the principle of locality by providing a small, fast memory between the
processor and main memory.
True b) False
12.In cache memory design, block size refers to the unit of data exchanged between cache and main
memory.
True b) False
13. The primary problem with programmed I/O is that the processor must wait for the IO module to |
become ready and must repeatedly interrogate the status of the IO module while waiting.
True b) False
14. Address registers may contain:
a) Memory addresses of data b) Partial memory addresses &Answers a and b

IPage1|
Ministry of Higher Education
1echno.
Higher Technological Institute
10th Ramadan City
Department: Computer Science Department Course Level: 2nd level

Course Name : Operating systems Model (A) Code: CSC 220

Examiner: DR. Nader and Dr. Ahmed Magdy Date: 21/6/2021 Time: 90 Min.

15. A Control/Status register that contains the address of the next instruction to be fetched is called the:
a)IR DPC c) PSW

TheSecond Question: (30 points)


a] Choose the one alternative that best completes the statement or answers the question:

1. The two basic steps used by the processor in instruction processing are:
aFetch and Execute cycles b) Fetch and Instruction cycles
2. A fetched instruction is nomally loaded into the:
IR b) PC c) PSW
3. A common class of interrupts is:
a) Program b) Timer c)IO All answers
4. When an external device becomes ready to be serviced by the processor, the device sends this type of
signal to the processor:
Interrupt signal b) Halt signal c) Handler signal
5. Information that must be saved prior to the
processor transferring control to the interrupt handler
routine includes:
PSW and location of next instruction b) PSW and contents of processor registers.
6. One accepted method of dealing with multiple interrupts is to:
Define priorities for the interrupts b) Disable all interrupts except those of highest priority
7. In a uniprocessor system, multiprogramming increases processor efticiency by:
a) Increasing processor speed bTaking advantage of time wasted by long wait interrupt handling
8. As one proceeds down the memory hierarchy (1.e., from inboard
memory to offline storage), the
following condition(s) apply:
a) Increasing cost per bit D Increasing access time
9. Small1, fast memory located between the processor and main memory is called:
a) WORM memory bCache memory c) CD-RW memory
10. Direct Memory Access (DMA) operations require the
following information from the processor:
a) Address of /O device b) Starting memory location Answers a and b
11. The four main structural elements of a computer
system are
aProcessor, main memory, IO modules and system Bus b) IR, PC, PSW and Cache memory
12.An operating system controls the execution of applications and acts as an interface between
applications and the computer hardware. g
True b) False
13.The operating system typically runs in parallel with application programs, on it's own special O/s
processor.
a) True
14. In
False
a
batch-processing system, the phrase "control is passed to a job" means that the processor is now
fetching and executing instructions in a user
program.
aTrue b) False
15. Uni-programming typically provides better utilization of system resources than multiprogramming.
a) True ) False

IPage2
Ministry of Higher Education
ologe
10thno
Higher Technological Institute
10thRamadan City
Department: Computer Science Department Course Level: 2nd level

Course Name: Operatingsystems Model (A) Code: CSC 220

Examiner: DR. Nader and Dr. Ahmed Magdy Date: 21/6/2021 Time: 90 Min.

16. In a timesharing system, a user's program is preempted at regular intervals, but due to relatively slow
human reaction time this occurrence is usually transparent to the user.
True b) False
17. Complex operating systems today typically consist of a few thousand lines of instructions.
a) True False
18. A monolithic kernel architecture assigns only a few essential functions to the kernel, including address
spaces, inter-process communication and basic scheduling.
a) True aFalse
19. The principal function of the processor is to execute machine instructions residing in main memory.
True b) False
20. A process trace is a listing of the sequence of instructions that execute for that process.
True b) False
21. The principal responsibility of the operating system is to control the execution of processes.
True b) False
22, When one process spawns another, the spawning process is referred to as the child process and the
spawned process is referred to as the parent process.
a) True False
23. Round-Robin processing refers to a method of thread prioritization for scheduling.
a) True False
24. The primary difference between the Two-State Process Model and the Five-State Process Model is that
the latter splits the Running state into two new states: Ready and Blocked.
a) True bFalse
25. One solution to the problem oflimited main memory space is swapping, which involves moving allor
part of a process from main memory to secondary memory.
True b) False
26. In order to define the control structures (e.g., tables) that the O/S needs to manage processes and
resources, it must have access to configuration data during initialization.
aTrue b) False
27. A primary objective of an operating system is:
a) Convenience b) Efficiency c) Ability to evolve All answers
28. A computer hardware feature that is vital to the etfective operation of a multiprogramming operating
system is:
a) Very large memory b) Multiple processors VO interrupts and DMA d) All answers
29. There are a number of conditions that can lead to process termination, including:
a) Normal completion b) Bounds violation c)Parent termination All answers
30. In the Five-State Process Model, the following represents a valid state transition:
Running ->Blocked b) New-> Running c) New -> Blocked d) All answers

Questions Ended
With my best wishes for success and excellence

TPag 3

You might also like