0% found this document useful (0 votes)
103 views

Osg-Final Test - Key - Nokey

The document contains 45 multiple choice questions about various topics related to computer architecture and operating systems. The questions cover topics such as CPU registers, memory hierarchy, virtual memory, interrupts, I/O, and operating system functions. The questions test understanding of concepts like cache hit rates, memory access times, kernel vs. user mode, and characteristics of different components like RAM, ROM, and registers.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
103 views

Osg-Final Test - Key - Nokey

The document contains 45 multiple choice questions about various topics related to computer architecture and operating systems. The questions cover topics such as CPU registers, memory hierarchy, virtual memory, interrupts, I/O, and operating system functions. The questions test understanding of concepts like cache hit rates, memory access times, kernel vs. user mode, and characteristics of different components like RAM, ROM, and registers.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 26

lOMoARcPSD|23049225

lOMoARcPSD|23049225

1. Which of the following statements about the CPU's handling interrupts is incorrect?
None of the other choices
The CPU branches to a new instruction sequence
The hardware saves the old PC location
The processor ceases to execute the current sequence of instructions

2. is the partitioning of a single server, each of which can support a different


operating
Multiprocessing
Multithreading
Shared processing
Virtualization

3. Consider a computer system that has cache memory, main memory (RAM) and disk,
and OS uses virtual memory. It takes 1 nsec to access a word from the cache, 10 nsec to
access a word from RAM, and 10 msec to access a word from the disk. If the cache hit
rate is 95% and main
memory hit rate is 99%, what is average time to access a word?
1.445 nsec
5,001.445 nsec
5,000.495 nsec
5,000.95 nsec

4. Booting a general purpose computer involves the following steps except


Loading the OS
Loading the command interpreter
Loading one or more bootstrap loaders
Execution of a ROM-based POST sequence

5. As one proceeds down the memory hierarchy (from inboard memory to offline storage),
which of the following conditions is correct?
Decreasing access time
None of the other choices
Decreasing cost per bit
Decreasing capacity

6. The two basic types of processor registers are:


User-visible and user-invisible registers
None of the other choices
Control and Status registers
General and special registers
lOMoARcPSD|23049225

from RAM, and 10 msec to access a block of 1000 bytes from the disk. If a book has
1000 pages, each with 50 lines of 80 characters each. How long it will take to electronically
scan the text for the case of the master copy being in each of the level as one proceeds
down the
memory hierarchy (from inboard memory to offline storage)?
1 msec, 10 msec, 5 sec
1 msec, 10 msec, 10 sec
2 msec, 20 msec, 10 sec
4 msec, 40 msec, 20 sec

8. The main characteristics of layered system does not include:


Upper layer can only call functions of closely lower layer
Each layer has well defined functions
Each layer runs independently
Many layers

9. Which of special register in the CPU points to the top of the current stack in the
memory?
PC
PSW
IR
SP

10. A CPU may have multiple execution units, so that can carry out multiple instructions in
the
same time is called:
None of the other choices
Multicore
Pipeline
Superscalar

11. Consider a computer system that has cache memory, main memory (RAM) and disk, and
OS uses virtual memory. It takes 2 nsec to access a word from the cache, 20 nsec to
access a word from RAM, and 10 msec to access a word from the disk. If the cache hit
rate is 95% and main
memory hit rate is 99%, what is average time to access a word? *
5,000.99 nsec
5,002.89 nsec
2.89 nsec
5,001.9 nsec

12. Information that must be saved prior to the processor transferring control to the
interrupt
handler routine includes:
PSW
None of the other choices
PSW and Contents of processor registers
PSW and PC
lOMoARcPSD|23049225

13. Examples of general purpose stored program computers include the following except
Personal computers
Network servers
Workstations
MP3 player

14. The ways that input/output can be done is?


DMA (Direct Memory Access)
All of the other choices
Busy waiting
Interrupt

15. List of memory location, that contains the executable program, the program's data, and
its
stack is called:
set of resources
all of the other choices
address memory
address space

16. Which is not an example of a resource that is commonly space-multiplexed?


Video RAM
Main memory
CPU
Hard drive

17. Which of the following is not a step in the boot process?


The BIOS is activated by powering on the CPU
Configuration and customization settings are checked
The antivirus program checks all files for viruses
The operating system is loaded into RAM

18. Which of special register contains the Mode Bit (user or kernel)?
Program Counter (PC)
None of the other choices
Program Status Word (PSW)
Instruction Register (IR)

19. Which is not an example of a resource that is commonly time-multiplexed?


CPU
Graphics accelerator
lOMoARcPSD|23049225

Main memory
Network interface

20. Where is the position of the operating system in computer system:


Above the hardware and under the user interface program
Between the user interface program and the application Program
In user space
None of the other choices

21. Which of the main bus in the IBM PC computer that can run at 66 MHz and transfer 8
bytes at
a time?
PCI (Peripheral Component Interconnect)
ISA (Industry Standard Architecture)
None of the other choices
ISA and PCI

22. Which of the following statements about Electrically Erasable PROM (EEPROM) is correct?
Can be erased and rewritten
Unprogrammable
Volatile
None of the other choices

23. The major operating system services provide mechanisms for secure and efficient are:
Communication between processes
All of the other choices
Execution of a program,I/O operations performed by it,and detecting and reporting errors caused by
it
File manipulation

24. Which of the following instructions should be allowed only in kernel mode?
ADD of two numbers
AND of two numbers
Disable all interrupts
Read the time-of-day clock

25. As one proceeds down the memory hierarchy (from inboard memory to offline storage),
which of the following conditions is correct?
Increasing cost per bit
Decreasing access time
None of the other choices
Increasing capacity
lOMoARcPSD|23049225

26. The main characteristics of exokernels is:


A subset of the resources is given in user mode
The program, called the exokernel runs in kernel mode
Exokernels need only keep track of which virtual machine assigned which resource
All of the other choices

27. The language of the CPU is known as its


None of the other choices
Instruction set
Register set
Control unit set

28. Which of special register contains the condition code bits, the CPU priority, the mode
bit and
other control bits)?
None of the other choices
Program Counter (PC)
Instruction Register (IR)
Program Status Word (PSW)

29. Which of the following statements about Random Access Memory (RAM) is correct?
Is volatile
Stores all the files on the computer
Can only be read sequentially
Is typically faster than cache memory

30. VMware Workstation is:


Type 2 Hypervisor
Host Operating system
Type 1 Hypervisor
Guest Operating system

31. Which of the following is correct about advantages of layered system?


None of the other choices
Easier to debug from lower to upper layer
Easier to extend and Easier to debug from lower to upper layer
Easier to extend

32. Which of the following instructions should be allowed only in kernel mode?
All of the other choices
Change the memory map
Set the time-of-day clock
Disable all interrupts
lOMoARcPSD|23049225

33. Which of the following statements about the CMOS is incorrect?


Is volatile
To contain BIOS
To hold the configuration parameters
To hold the current time and date

34. What part of the boot process determines whether the peripheral devices are working
properly?
ROM
POST
CMOS
BIOS

35. The four main structural elements of a computer system are:


Processor, Registers, I/O Modules, Main Memory
None of the other choices
Processor, Registers, Main Memory, System Bus
Processor, Main Memory, I/O Modules, System Bus

36. As one proceeds down the memory hierarchy (from inboard memory to offline storage),
which of the following conditions is correct? *
Decreasing capacity
None of the other choices
Increasing cost per bit
Increasing access time

37. What is not a main function of an operating system?


Provide the users with an extended (virtual) machine
Manage the I/O devices
Provide user interfaces
Support virtual memory

38. As one proceeds down the memory hierarchy (from inboard memory to offline storage),
the
following conditions apply:
Increasing capacity
Decreasing cost per bit
All of the other choices
Increasing access time

39. Which of the following is not a operating mode of CPU ?


Kernel mode
lOMoARcPSD|23049225

User mode
Management mode
None of the other choices

40. A special register that contains the address of the next instruction to be fetched is
called:
Instruction Register (IR)
All of the other choices
Program Counter (PC)
Program Status Word (PSW)

41. Which of the following operating systems is a example of monolithic system?


MS-DOS
Mac OS
UNIX
Windows XP

42. A CPU may have two or more complete processors, so that can carry out multiple
threads in
the same time is called:
Pipeline
Multicore
None of the other choices
Superscalar

43. Which of the following instructions should be allowed in user mode?


Read the time-of-day clock
Set the time-of-day clock
Disable all interrupts
Change the memory map

44. The main bus in the IBM PC computer are:


PCI (Peripheral Component Interconnect)
ISA and PCI
None of the other choices
ISA (Industry Standard Architecture)

45. The general role of an operating system is to:


Provide a set of services to system users
Act as an interface between various computers
None of the other choices
Manage files for application programs
lOMoARcPSD|23049225

46. The operating system structure in which the communication between requesting process
and
responding process is message passing?
All of the other choices
Monolithic Systems
MS - DOS
Client - Server Model

47. What is interrupt vector?


Part of memory which contains the addresses of interrupt handlers
The addresses of interrupt handlers
A signal an I/O device sends to CPU
None of the other choices

48. Which of the following actions generates an external interrupt?


A page that does not exist in the main memory is accessed by the virtual storage management
An input/output operation is completed
Division by zero occurs
A system call instruction is executed

49. An operating system


Manages software resources in a computer system
Deals with complex hardware resources and provides the user a virtual/extended machine that
is
much easier to deal with than the physical machine
Manages hardware resources in a computer system
All of the other choices

50. A CPU may have separate fech, decode and execute units, so that can carry out
three steps of the three instructions in the same time is called:
Pipeline
None of the other choices
Superscalar
Multicore

51. What does the virtual machine monitor do?


Does the multiprogramming
Provides sevral virtual machines to the next layer up
All of the other choices
Runs on the bare hardware.

52. Which is the fastest bus in the IBM PC computer?


PCI (Peripheral Component Interconnect)
IDE (Integrated Drive Electronic)
lOMoARcPSD|23049225

ISA (Industry Standard Architecture)


USB (Universal Serial BUS)
53. Consider a computer system that has cache memory, main memory (RAM) and disk, and
OS uses virtual memory. It takes 2 nsec to access a word from the cache, 10 nsec to
access a word from RAM, and 10 msec to access a word from the disk. If the cache hit
rate is 95% and main
memory hit rate is 99%, what is average time to access a word?
5,000.495 nsec
5,001.9 nsec
2.395 nsec
5,002.395 nsec

54. Which of the following conditions that causes the processes to be terminated, when the
processes executes a system call tell the OS to fininsh some other process?
Normal exit (voluntary)
Error exit (voluntary)
Fatal error (involuntary)
Killed by another process (involuntary)

55. Which of the following conditions that causes the processes to be terminated, when the
processes have a program bug?
Fatal error (involuntary)
Error exit (voluntary)
Normal exit (voluntary)
Killed by another process (involuntary)

56. Operating system abstraction supports the ability to have operation even when there
is only one CPU available
Multiple
none of the other choices
parallel
Pseudoparallelism

57. What is the "sequential processes" concept?


There are both many CPU and many PC
None of the other choices
All process is executed in concurrency
No concurrency inside a process; everything happens sequentiall

58. How many percent of the CPU time is wasted, when a computer system has enough
room to
hold two program and these programs are idle waiting for I/O half the time?
75%
50%
25%
lOMoARcPSD|23049225

None of the other choices

59. is the act of allowing only one process to have access to a dedicated resource.
Mutual exclusion
Circular wait
No preemption
Resource holdin

60. Which of the following statements about user-level threads and kernel-level threads is
correct?
None of the other choices
Both user-level threads and kernel-level threads can write into each other's memory
space.
Kernel-level thread scheduling is faster than user-level thread scheduling
Both user-level threads and kernel-level threads use OS services via system calls

61. Which of the following cannot be shared among different threads of a process?
Stack
Process code
File handles
Process data

62. A is a portion of a process that can run independently


Thread
program
miniprocess
subprocess

63. Five batch jobs A through E, arrive at a computer center at almost the same time. They
have
estimated running times of 8, 6, 2, 10, and 4 minutes. Determine the average waiting
time for FCFS scheduling. Ignore process switching overhead.
18 minutes
18.8 minutes
17 minutes
12,8 minutes

64. Which of the following is appropriate to release page table and pages?
Process creation
Process termination time
Page fault time
Process execution
lOMoARcPSD|23049225

65. Which of the events that causes the processes to be created, when the operation
system
creates a new process and runs the next job from the input queue?
Initiation of a batch job
User request to create a new process
System initialization
Execution of a process creation system call

66. How many percent of the CPU time is wasted, when a computer system has enough
room to
hold two program and these programs are idle waiting for I/O 10% of the time?
99%
1%
None of the other choices
90%

67. What happens when a thread calls Down (S) when it wants to enter its critical section,
where
S is a binary semaphore set to 1?
The thread is blocked and added to a queue of waiting threads.
The semaphore is set to 2.
The thread is allowed to enter its critical section and S is decremented.
None of the other choices

68. Which of the following statements is a hardware solution to the critical region problem?
TSL
Semaphore
None of the other choices
Shared memory

69. Which of the following is not true about process hierarchy?


Window has no concept of a process hierarchy
In Unix, a process and all its children and further descendants together form a process group
A process creates child process. The child process can itself creates more processes, forming a
process
hierarchy
A process may have more than one parent

70. Which conditions of mutual exclusion does the Strict Alternation (Software proposal)
violate
No process running outside its critical region may block another process
No assumptions made about speeds or numbers of CPUs
No process must wait forever to enter its critical region
No two processes simultaneously in critical region

71. Five batch jobs A through E, arrive at a computer center at almost the same time. They have
estimated running times of 8, 6, 2, 10, and 4 minutes. Their (externally determined) priorities
lOMoARcPSD|23049225

are 3, 5, 2, 1, and 4, respectively, with 5 being the highest priority. Determine the
average
waiting time for Priority scheduling. Ignore process switching overhead.
16,8 minutes
12,8 minutes
54 minutes
10,8 minutes

72. Which statement about disadvantage of Disabling interrupts, (the hardware solution to
the
critical region problem) is correct?
Permit process use command privileges: Danger!
If process is locked in Critical Section: System Halt
All of the other choices
Don't ensure Mutual Exclusion for the system with N CPUs

73. How many percent is CPU utilization, when a computer system has enough room to
hold two
program and these programs are idle waiting for I/O 10% of the time?
1%
99%
None of the other choices
90%

74. What is the purpose of process synchronization?


Avoid race condition
None of the other choices
Let different users run different processes independently
Avoid deadlock

75. Which of the following operating system has the concept of a process hierarchy?
Win32
CP/M
MS-DOS
Unix

76. OS Windows use system call , while OS Unix use system call to terminate
processes normally
terminate; ExitProcess
exit; ExitProcess
ExitProcess; exit
ExitProcess; terminate

77. Which of the following process state transitions is correct, when the scheduler picks a
process
from the ready queue to run?
lOMoARcPSD|23049225

Running -> ready


Ready -> running
Blocked (waiting) -> ready
Running -> Blocked (waiting)

78. In a single processor system, mutual exclusion can be guaranteed by:


Overlapping processes
Interleaving processes
Disabling interrupts
All of the other choices

79. In order to implement mutual exclusion on a critical resource for competing processes,
only
one program at a time should be allowed:
None of the other choices
To exhibit cooperation
To perform message passing
In the critical region of the program

80. Which of the following process state transitions is illegal?


Blocked (waiting) -> ready
Ready -> Blocked (waiting)
Running -> Blocked (waiting)
Running -> ready

81. Which of the following conditions that causes the processes to be terminated, when a
processes have done their work?
Normal exit (voluntary )
Error exit (voluntary)
Fatal error (involuntary)
Killed by another process (involuntary)

82. Which of the following is not correct about user-level threads?


User-level threads are more efficient than kernel threads, in the sense that they do not need
kernel
calls to switch among threads
With user-level threads, customized scheduling algorithms cannot be implemented
User-level threads cannot be preempted by clock interrupts unless the whole process'
quantum has
been used up
If one user-level thread makes a blocking system call, the system will block the entire process
(which
contains that user-level thread)

83. Which of the following about Atomic action is true?


Possibly going to sleep
lOMoARcPSD|23049225

All of the other choices


Checking the value
Changing the value

84. A entry of the Process table is called:


Process control block
Process management block
All of the other choices
Process check block

85. What is Software proposal in the solution of Mutual exclusion with Busy waiting
Peterson's Solution
All of the other choices
Lock Variables
Strict Alternation

86. Which conditions of mutual exclusion does the Lock Variables (Software proposal)
violate
No assumptions made about speeds or numbers of CPUs
No two processes simultaneously in critical region
No process must wait forever to enter its critical region
No process running outside its critical region may block another process

87. A process where no concurrency inside process; everything happens sequentially is called:
Random access process
Sequential process
Sequential access process
None of the other choices

88. When selecting the proper time quantum it should be long enough to allow percent of
the CPU cycles to run to completion
40
100
80
20

89. Five batch jobs A through E, arrive at a computer center at almost the same time.
They have estimated running times of 8, 6, 2, 10, and 4 minutes. Determine the
average waiting time for
SJF (Shortest job first) scheduling. Ignore process switching overhead.
18.8 minutes
6 minutes
8 minutes
14 minutes
lOMoARcPSD|23049225

90. Five batch jobs A through E, arrive at a computer center at almost the same time. They
have
estimated running times of 8, 6, 2, 10, and 4 minutes. . Determine the average turnaround
time for FCFS schedulingf. Ignore process switching overhead.
20 minutes
18 minutes
17 minutes
18.8 minutes

91. How many percent is CPU utilization, when a computer system has enough room to
hold two
program and these programs are idle waiting for I/O half the time?
75%
50%
25%
None of the other choices

92. A computer has 2GB RAM of which the operating system occupies 1GB.The processes
are all 450 MB and have the same characteristics. How many percent of the CPU
time is wasted,
when these programs are idle waiting for I/O 20% of the time?
90%
None of the other choices
4%
96%

93. How many ways are Thread implemented?


3
2
1
4

94. What is not a field in the process table that relates memory management?
Pointer to data segment info
Pointer to stack segment info
Pointer to text segment info
Pointer to program segment info

95. Which is the correct description of transitions between process states below? (see picture)
1: Process blocks for input; 2: Input becomes available; 3: Scheduler picks another process; 4:
Scheduler picks this process
1: Process blocks for input; 2: Scheduler picks this process; 3: Scheduler picks another
process; 4:
Input becomes available
1: Process blocks for input; 2: Input becomes available; 3: Scheduler picks this process; 4:
Scheduler
lOMoARcPSD|23049225

picks another process


1: Process blocks for input; 2: Scheduler picks another process; 3: Scheduler picks this
process; 4:
Input becomes available

96. A computer has 2GB RAM of which the operating system occupies 1GB. The processes
are all 450 MB and have the same characteristics. How many percent is CPU utilization
when these
programs are idle waiting for I/O 20% of the time?
90%
None of the other choices
96%
4%

97. Which of the events that causes the processes to be created, when a running process
creates
one or more new process to help it to do its job?
Execution of a process creation system call
Initiation of a batch job
User request to create a new process
System initialization

98. The following requirement must be met by any facility or capability that is to provide
support
for mutual exclusion:
Only one process at a time can be allowed into a critical section
No assumption can be made about relative process speeds
All of the other choices
A process remains in its critical region for a finite time only

99. Which is a advantage of implementing threads in the kernel?


None of the other choices
Is good for multiprocessor architecture and if one thread is blocked does not cause the
other thread
to be blocked
If one thread is blocked does not cause the other thread to be blocked
Is good for multiprocessor architecture

100. Critical Region (Section) concept used in interprocess communication is:


A part of shared memory
None of the other choices
A part of the program where the shared memory is accessed
A part of shared data
lOMoARcPSD|23049225

lOMoARcPSD|2

1. The basic idea behind the microkernel design is:


Only one module runs in kernel mode
To achive high reliability by splitting operating system up into small, well-defined modules
All other modules run as relatively powerless ordinary user processes
All of the other choices

2. OS Win32 use system call , while OS Unix use system call to create a new
process
fork, CreateProcess
CreateProcess; fork
copy, CreateProcess
CreateProcess; copy

3. Which statement about disabling interrupts to resolve race conditions is wrong?


Disabling/enabling interrupts may negatively affect the I/O system
User-mode programs are the best place to invoke disableInterrupt()
In theory, a program can disable interrupts when it enters a critical section, and re-enable
interrupts
when finished with a critical section, to eliminate race conditions
Programs with infinite loops in their critical sections are a significant problem with the interrupt-
based
approach

4. Which of the events that causes the processes to be created, when an operation
system is
booted?
System initialization
Execution of a process creation system call
User request to create a new process
Initiation of a batch job

5. Which of the following process state transitions is legal?


Blocked (waiting) -> runnig
Ready -> Blocked (waiting)
None of the other choices
Running -> ready

6. Which of the following process state transitions is correct, when the external event for
which
a process was waiting happens?
Running -> Blocked (waiting)
Running -> ready
Ready -> running
Blocked (waiting) -> ready

7. Which of the following process state transitions is correct, when the operating system
discovers that process can not continue right now because of is not enough resource?
lOMoARcPSD|23049225
lOMoARcPSD|23049225

Running -> ready


Blocked (waiting) -> ready
Ready -> running
Running -> Blocked (waiting)

8. Which of the following statements about semaphores is true?


If several processes attempt a P(S) operation simultaneously, only one process should be allowed
to
proceed
A semaphore implementation should guarantee that processes do not suffer indefinite
postponement
All of the other choices
P and V (Down and Up) operations should be indivisible operations

9. Which of the following conditions must be held to provide good solution for mutual
exclusion?
No process running outside its critical region may block another process
No process must wait forever to enter its critical region
No two processes simultaneously in critical region
All of the other choices

10. In terms of disk storage efficiency, the method of "Backing up pages dynamically" in
comparison with the method of "Paging to a static swap area" is
Nearly equal
Better
Equal
Worse

11. A well-known operating system for Handheld Computer is:


e-COS
TinyOS
Symbian OS and Palm OS
MS-DOS

12. Critical Region (Section) concept used in interprocess communication is:


None of the other choices
A part of shared data
A part of shared memory
A part of the program where the shared memory is accessed

13. When there is an excessive amount of page swapping between main memory and
secondary
storage, the operation becomes inefficient, which is called .
excessive demand paging
over swapping
lOMoARcPSD|23049225

hot swapping
thrashing

14. Suppose a virtual address space of 2^24 words and the page size is 2^12 words. If the
virtual
address is 123456 in Hexadecimal, what would be the page number in Hexadecimal?
12345
1234
123456
123

15. A system with 32 bit virtual address. If the page size is 4 KB and each table entry
occupies 4
bytes, what is the size of the page table?
4 MB
8 MB
2 MB
1 MB

16. Which of these statements about the Inverted Page Table are true?
An entry contains the pair (process, offset) mapped into the corresponding page frame
An entry contains the pair (segment, virtual page) mapped into the corresponding page frame
An entry contains the pair (process, virtual page) mapped into the corresponding page
frame
An entry contains the pair (segment, offset) mapped into the corresponding page frame

17. In terms of speed the best method of Dynamic Storage-Allocation is:


Worst fit
Best fit
Next fit
First fit

18. A process where no concurrency inside process; everything happens sequentially is called :
None of the other choices
Sequential access process
Sequential process
Random access process

19. What is not a field in the process table that relates process management?
CPU time used
PC, PSW, SP
User ID, Group ID
Process ID
lOMoARcPSD|23049225

20. Which of the following process state transitions is correct, when the external event for
which
a process was waiting happens?
Ready -> running
Running -> Blocked (waiting)
Blocked (waiting) -> ready
Running -> ready

21. Which is the maximum partition size, if the FAT type is FAT-32 and the block size is 4
KB?
256 MB
1 TB
512 MB
128 MB

22. Where should be put the page replacement algorithm In Mach model of Page fault
handling
with an external pager?
In the page fault handler that is part of the kernel
In the external pager running in user space
All of the other choices
In the low-level MMU handler

23. Consider a computer system that has cache memory, main memory (RAM) and disk, and
OS uses virtual memory. It takes 1 nsec to access a byte from the cache, 10 nsec to access
a byte from RAM, and 5 msec to access a block of 1000 bytes from the disk. If a book
has 1000 pages, each with 25 lines of 80 characters each, How long it will take to
electronically scan the text for the case of the master copy being in each of the level as
one proceeds down the
memory hierarchy (from inboard memory to offline storage)?
4 msec, 40 msec, 20 sec
1 msec, 10 msec, 5 sec
2 msec, 20 msec, 10 sec
1 msec, 10 msec, 10 sec

24. What is correct about trap instructions and interrupts?


An interrupt is caused by an external event
Trap instruction switches the execution mode of a CPU from the user mode to the kernel mode
A trap instruction is caused by a user program to invoke functions in the OS kernel
All of the other choices

25. Which of the following operating system has the concept of a process hierarchy?
Win32
CP/M
Unix
MS-DOS
lOMoARcPSD|23049225

26. As one proceeds down the memory hierarchy (from inboard memory to offline storage),
which of the following conditions is correct?
Decreasing access time
Increasing capacity
Increasing cost per bit
None of the other choices

27. Assume that the Page Table below is in effect: Page Number: 0 1 2 3; Page Frame
Number: 8 10 5 11. The number of lines per page is 400. The actual memory location
for line 1634 is
.
None of the other choices
1634
3
4434

28. How many percent of the CPU time is wasted, when a computer system has enough
room to
hold two program and these programs are idle waiting for I/O half the time?
25%
75%
None of the other choices
50%

29. Working set model is used for:


Determining whether page replacement is needed
Finding the average number of frames a job will need to run smoothly
All of the other choices
Finding the minimum number of frames necessary for a job so that jobs can be run
without
"thrashing"

30. An arrival message causes the system to create a new thread to handle this message. This
new
thread is call
Activator
Upcall
Pop-up
Distributed

31. What is Higher-level proposal in the solution of Mutual exclusion and Synchronization?
Monitors
Message Disable
Interrupts passing
Peterson's Solution
lOMoARcPSD|23049225

32. What is the characteristic of the second generation of operating system?


ICs and multiprogramming
Transistors, batch systems
Vacuum tubes, plug boards
Personal computers, single user, multitasking

33. What is the main characteristic of real-time operating system?


Multiple CPU
Time-sharing
Time is key parameter
Many I/O devices

34. LRU replaces the page that has spent the


longest time in memory
shortest time in memory
longest time in memory without being referenced
shortest time in memory without being referenced

35. Which of the following is not correct about user-level threads?


User-level threads are more efficient than kernel threads, in the sense that they do not need
kernel
calls to switch among threads
With user-level threads, customized scheduling algorithms cannot be implemented
User-level threads cannot be preempted by clock interrupts unless the whole process'
quantum has
been used up
If one user-level thread makes a blocking system call, the system will block the entire process
(which
contains that user-level thread)

36. A computer has four page frames. The time of loading, time of last access, and the
R and M bits for each page are as shown below (the times are in clock ticks).
Which page will NRU
replace?
Captionless Image
0
1
2
3

37. A computer with a 32-bit address uses a two-level page table. Virtual addresses are split
into a 9-bit top-level page table field, an 11-bit second-level page table field, and an
offset. How
many pages are there in the address space?
2^23 pages
2^20 pages
2^22 pages
2^21 pages
lOMoARcPSD|23049225

38. Which is not true about "Backing up pages dynamically"?


Requires a disk map in memory
Pages do not have fixed swap area on the disk
When a page is swapped out, an empty disk page is chosen on the fly and disk map is
updated
accordingly
Needs less main memory than the method "Paging to a static swap area"

39. What is not the technique of implementation for Virtual Memory?


Partition
Segmentation
Paging
All of the other choices

40. As one proceeds down the memory hierarchy (from inboard memory to offline storage),
which of the following conditions is correct?
None of the other choices
Decreasing cost per bit
Decreasing access time
Decreasing capacity

41. Which of the following actions generates an external interrupt?


A page that does not exist in the main memory is accessed by the virtual storage
management.
A system call instruction is executed.
Division by zero occurs
An input/output operation is completed

42. Which is not true about the method of backing store: "Paging to a static swap area"?
The swap area on the disk is as large as the process virtual address space
Calculating the address in swap area requires knowing only where the process' paging area
begins
A page that is in memory always have shadow copy on disk
Requires a disk map in memory

43. The page size that is too small will generate


More difficult to calculate actual position
Very long Page tables
Excessive internal fragmentation
Excessive external fragmentation

44. Assume jobs A-D arrive in quick succession in the READY queue. Using round robin
scheduling
(quantum=4), the turnaround time for job B is . Arrival time: 0 1 2 3; Job: A B C D;
CPU cycle: 8 4 9 5
lOMoARcPSD|23049225

24
20
22
7

45. Which of the following is true about Atomic action on semaphores?


Changing the value
Possibly going to sleep
Checking the value
All of the other choices

46. Which of the following statements is a hardware solution to the critical region problem?
None of the other choices
Semaphore
Shared memory
TSL

47. Five batch jobs A through E, arrive at a computer center at almost the same time. They
have estimated running times of 8, 6, 2, 10, and 4 minutes. Their (externally determined)
priorities are 3, 5, 2, 1, and 4, respectively, with 5 being the highest priority. Determine
the average
waiting time for Priority scheduling. Ignore process switching overhead.
12,8 minutes
10,8 minutes
54 minutes
16,8 minutes

48. If there are 128 pages and the page size is 32 K words, what is the length of logical
address?
24 bits
26 bits
30 bits
22 bits

49. Which of the following information bits in the entry of page table is used to indicate
locked
page?
Modified bit
Caching disabled
Present/absent bit
Referenced bit

50. The modified/dirty bit is used for the purpose of:


Dynamic allocation of memory used by one process to another
Reduce the average time required to service page faults
lOMoARcPSD|23049225

None of the other choices


Implementing FIFO page replacement algorithm

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy