Ask Computer Engineering Expert

What is the primary advantage of storing programs in noncontiguous locations?
a. multiple programs can run at the same time

b. every program will be able to run

c. secondary storage is accessed more quickly

d. main memory is used more efficiently

2. What is the name of the page replacement policy where the page to remove is the one that has been in memory the longest.

a. TRU

b. LRU

c. LIFO

d. FIFO

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. Assume that page E is requested. Which page frame will it be loaded into when the FIFO algorithm is used?

a. 1

b. 2

c. 3

d. 4

4. 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

b. 2

c. 3

d. 4

5. If a particular demand paging configuration has 9 page interrupts out of 11 page requests, what is the failure rate?

a. 18%

b. 52%

c. 82%

d. 95%

6. When using the clock replacement policy, a page with a reference bit of ____ is replaced.

a. -1

b. 0

c. 1

d. 5

7. In the PMT, the ____ bit for all pages in memory is 1.
a. status

b. referenced

c. modified

d. frame

8. 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

b. Case 2

c. Case 3

d. Case 4

9. Which of the following phrases means that during any phase of its execution the program references only a small fraction of its pages?
a. dynamic paging

b. structured programming

c. locality of reference

d. working set

10. To access a location in memory when using segmented memory management, the address is composed 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

11. The segmented/demand paged memory allocation scheme divides each segment into equally sized ____.

a. pages

b. blocks

c. frames

d. sets

12. How many entries per page are there in the PMT?
a. 0

b. 1

c. 2

d. 5

13. How many associative registers are there?

a. 2

b. 5

c. 10

d. varies by system

14. ____ gives users the appearance that their programs are being completely loaded in main memory during their entire processing time
a. Segmenting

b. Virtual memory

c. Shared memory

d. Multithreading

15. What is an advantage of virtual memory management?

a. job's size is no longer restricted to the size of main memory

b. allows an unlimited amount of multiprogramming

c. facilitates dynamic linking of program segments

d. All of the above

16. ____ can be thought of as being an intermediary between main memory and the special-purpose registers, which are the domain of the CPU.
a. Virtual memory

b. Cache memory

c. Paging

d. Segmenting

17. What is the cache hit ratio if the total number of requests is 10 and 6 of those are found in cache memory?

a. 6%

b. 10%

c. 60%

d. 100%
18. What algorithm does Linux use for demand paging?
a. buddy

b. LRU

c. FIFO

d. segmenting

19. If the page size is 100 lines, what is the displacement for line 214?
a. 0.5

b. 2

c. 14

d. 21400
20. Assume that the Page Map Table below is in effect. The number of lines per page is 400. What is the actual memory location for line 433?

Job Page Number Page Frame Number
0 8
1 10
2 5
3 11
a. 1

b. 33

c. 4000

d. 4033

21. What will happen when a page size is too small?
a. very long PMTs

b. excessive internal fragmentation

c. more difficult to find out actual position

d. excessive external fragmentation

22. What field(s) must be added to the PMT to support demand paging?

a. field to determine if page contents have been modified

b. field to determine if the page being requested is already in memory

c. field to determine if the page has been referenced recently

d. All of the above
23. What happens in demand paging when a job requires a certain page to be loaded and there is no empty page frame?

a. a resident page must be swapped back into secondary storage

b. the page cannot be loaded and the job will exit

c. the job must wait until a page frame is freed by another job

d. the page will share a page frame with another page from the same job

24. Consider the following page fault handler algorithm. What should replace the * in the algorithm?

1 If there is no free page frame
Then
select page to be swapped out using page removal algorithm
update job's Page Map Table
If content of page had been changed then
*
End if
End if
2 Use page number from step 3 from the Hardware Instruction Processing Algorithm to get disk address where the requested page is stored 
3 Read page into memory
4 Update job's Page Map Table
5 Update Memory Map Table
6 Restart interrupted instruction

a. save page to main memory

b. prepare page to disk

c. mark page as being changed in PMT

d. choose another page

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

a. excessive demand paging

b. hot swapping

c. thrashing

d. overswapping

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M9120082

Have any Question?


Related Questions in Computer Engineering

Does bmw have a guided missile corporate culture and

Does BMW have a guided missile corporate culture, and incubator corporate culture, a family corporate culture, or an Eiffel tower corporate culture?

Rebecca borrows 10000 at 18 compounded annually she pays

Rebecca borrows $10,000 at 18% compounded annually. She pays off the loan over a 5-year period with annual payments, starting at year 1. Each successive payment is $700 greater than the previous payment. (a) How much was ...

Jeff decides to start saving some money from this upcoming

Jeff decides to start saving some money from this upcoming month onwards. He decides to save only $500 at first, but each month he will increase the amount invested by $100. He will do it for 60 months (including the fir ...

Suppose you make 30 annual investments in a fund that pays

Suppose you make 30 annual investments in a fund that pays 6% compounded annually. If your first deposit is $7,500 and each successive deposit is 6% greater than the preceding deposit, how much will be in the fund immedi ...

Question -under what circumstances is it ethical if ever to

Question :- Under what circumstances is it ethical, if ever, to use consumer information in marketing research? Explain why you consider it ethical or unethical.

What are the differences between four types of economics

What are the differences between four types of economics evaluations and their differences with other two (budget impact analysis (BIA) and cost of illness (COI) studies)?

What type of economic system does norway have explain some

What type of economic system does Norway have? Explain some of the benefits of this system to the country and some of the drawbacks,

Among the who imf and wto which of these governmental

Among the WHO, IMF, and WTO, which of these governmental institutions do you feel has most profoundly shaped healthcare outcomes in low-income countries and why? Please support your reasons with examples and research/doc ...

A real estate developer will build two different types of

A real estate developer will build two different types of apartments in a residential area: one- bedroom apartments and two-bedroom apartments. In addition, the developer will build either a swimming pool or a tennis cou ...

Question what some of the reasons that evolutionary models

Question : What some of the reasons that evolutionary models are considered by many to be the best approach to software development. The response must be typed, single spaced, must be in times new roman font (size 12) an ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As