Virtual Memory Practice Quiz - Kahuna

jaspersugarlandΛογισμικό & κατασκευή λογ/κού

14 Δεκ 2013 (πριν από 3 χρόνια και 9 μήνες)

108 εμφανίσεις

Virtual Memory Practice Quiz


Multiple Choice

Identify the choice that best completes the statement or answers the question.


____

1.

When there is an excessive amount of page swapping between main memory and secondary storage, the
operation becomes ineffi
cient. This phenomenon is called ____.

a.

excessive demand paging

c.

thrashing

b.

hot swapping

d.

overswapping



____

2.

Assume that four page frames are available and are numbered 1
-
4. Pages A
-
D have been loaded into page
frames 1
-
4 in order. Assume t
hat page E is requested. Which page frame will it be loaded into when the
FIFO algorithm is used?

a.

1

c.

3

b.

2

d.

4



____

3.

Assume that four page frames are available and are numbered 1
-
4. Pages A
-
D have been loaded into page
frames 1
-
4 in order.
The program has accessed the pages in the following order: B, D, A, C. Assume that
page E is requested. Which page frame will it be loaded into when the LRU algorithm is used?

a.

1

c.

3

b.

2

d.

4



____

4.

Consider the following four cases. Which page

would the LRU policy be lease likely to swap?




Modified Referenced Meaning

Case 1 0 0 Not modified AND not referenced

Case 2 0 1 Not modified BUT was referenced

Case 3 1

0 Was modified BUT not referenced

Case 4 1 1 Was modified AND was referenced

a.

Case 1

c.

Case 3

b.

Case 2

d.

Case 4



____

5.

Which of the following phrases means that during any phase of i
ts execution the program references only a
small fraction of its pages?

a.

dynamic paging

c.

locality of reference

b.

structured programming

d.

working set



____

6.

To access a location in memory when using segmented memory management, the address is co
mposed of two
entries: ____.

a.

the segment number and the line number

b.

the segment number and the displacement

c.

the line number and the displacement

d.

the segment number, the line number, and the displacement


Virtual Memory Practice Quiz

Answer

Section


MULTIPLE CHOICE



1.

ANS:

C

PTS:

1

REF:

75



2.

ANS:

A

PTS:

1

REF:

77



3.

ANS:

B

PTS:

1

REF:

79



4.

ANS:

D

PTS:

1

REF:

83



5.

ANS:

C

PTS:

1

REF:

84



6.

ANS:

B

PTS:

1

REF:

89