Memory and prepared for execution

Assignment Help Basic Computer Science
Reference no: EM131109136

Quiz 2
Question1
An executable program file is brought into memory and prepared for execution at:
Choose one answer.

a. Compile time.

b. Link time.

c. Load time.

d. Execution time.

e. None of the above.
Question2
Swapping of entire processes is:
Choose one answer.

a. Used as the primary CPU scheduling mechanismin most operating systems.

b. Efficient because it reduces disk input/output.

c. The basis for paging mechanisms.

d. The basis for segmentation mechanisms.

e. None of the above.
Question3
A consequence of main memory fragmentation is:
Choose one answer.

a. Inability to use sections of memory.

b. Gradual degradation of disk access performance due to rotational latency.

c. Excessively small programs.

d. Separation of programs into parts that may run in the same memory space

e. None of the above.
Question4
A contiguous allocation, variable partition size, physical memory system has holes (fragments of free space), in the indicated order, of size:
600K 700K 200K 500K 200K
Five processes of size:
500K 300K 500K 400K 200K
are to be placed in memory (in the indicated order) by the best-fit algorithm. The process that the algorithm will not place in memory is of size:
Choose one answer.

a. 500K

b. 400K

c. 300K

d. 200K

e. Best-fit will place all 5 processes in memory.
Question5
A contiguous allocation, variable partition size, physical memory system has holes (fragments of free space), in the indicated order, of size:
600K 700K 200K 500K 200K
Five processes of size:
500K 300K 500K 400K 200K
are to be placed in memory (in the indicated order) by the first-fit algorithm. The process that the algorithm will not place in memory is of size:
Choose one answer.

a. 500K

b. 400K

c. 300K

d. 200K

e. First-fit will place all 5 processes in memory.
Question6
Paging mechanisms suffer from:
Choose one answer.

a. Low performance when translation lookaside buffers are used.

b. Low performance when cached page tables are used.

c. Internal fragmentation.

d. External fragmentation.

e. None of the above.
Question7
Segmentation mechanisms suffer from:
Choose one answer.

a. Low performance when translation lookaside buffers are used.

b. Low performance when cached page tables are used.

c. Internal fragmentation

d. External fragmentation

e. None of the above.
Question8
A paged memory system uses pages of 100 bytes. A process' page table is:
0 16
1 03
2 00
3 01
4 05
The paging mechanism would translate the process' logical address 337 to:
Choose one answer.

a. 0337

b. 0037

c. 0137

d. 0338

e. None of the above
Question9
Which of the following mechanisms is NOT appropriate for implementation of page tables in a modern, large memory computer system architecture:
Choose one answer.

a. Multi-level

b. Single-Level

c. Hashed

d. Inverted

e. All of these mechanisms are appropriate.
Question10
Consider a demand-paged system where the memory access time is 50 nanoseconds when the requested page is a valid page in the page table, and the page-fault service time, on average, is 5 milliseconds. What is the highest acceptable page-fault rate, if the effective memory access time must not exceed 100 nanoseconds?
Choose one answer.

a. 1 fault per 100000 memory accesses.

b. 5 faults per 100000 memory accesses.

c. 10 faults per 100000 memory accesses.

d. 50 faults per 100000 memory accesses.

e. None of the above.
Question11
Marks: 5
Belady's anomaly:
Choose one answer.

a. Explains why LRU page replacement is not optimal.

b. Proves that there is no point in adding frames to a process that exhibits high page fault rates.

c. Applies to all page replacement algorithms

d. Is closely related to the "convoy effect".

e. None of the above.
Question12
Locality of reference:
Choose one answer.

a. Implies that memory references to an address tend to occur from instructions that are well-separated in address space.

b. Implies that memory references to an address tend to occur well-distributed over time.

c. Has an impact on page fault rates.

d. Is caused by self-modifying code.

e. None of the above.
Question13
The following description applies to questions: 13 and 14. In a system where paging is supported by a TLB (associative registers) cache, the CPU makes 9 consecutive memory accesses. The page numbers of the 9 logical addresses, in chronological order, are
9 8 4 5 9 6 4 7 5
The cache can hold a maximum of 4 page-table entries. The cache is initially empty.
When the cache is full, page-table entries enter and leave the cache in FIFO order. Calculate the hit-ratio of the cache for the given sequence of 9 logical addresses.
Choose one answer.

a. 1/3

b. 100%

c. 2/9

d. 5/9

e. None of the above
Question14
When the cache is full, page-table entries enter and leave the cache in LRU order. Calculate the hit-ratio of the cache for the given sequence of 9 logical addresses.
Choose one answer.

a. 1/3

b. 100%

c. 2/9

d. 5/9

e. None of the above
Question15
File name extensions are:
Choose one answer.

a. Limited to three characters.

b. Required in all operating systems to limit operations on a file.

c. Consistently applied across operating systems.

d. Fixed depending on the file contents.

e. None of the above.
Question16
Marks: 5
A file system uses linked allocation. A program has opened a file of 10 blocks so the file's file control block is in memory. How many disk input/output operations (read or write of a single block) are required to add a block to the middle of the file (between the 5th and 6th blocks)?
Choose one answer.

a. 1

b. 4

c. 6

d. 7

e. None of the above
Question17
The following description applies to questions: 17 and 18.
The read/write head of a disk drive is serving a request at track 100. The previous track accessed was 92. The queue of waiting requests holds requests for track numbers:
40 60 80 130 140
No other requests arrive before completing the 5 requests in the queue.
What is the total distance (number of tracks passed) the head travels to service all 5 requests using the SSTF algorithm?
Choose one answer.

a. 100

b. 140

c. 160

d. 180

e. None of the above
Question18
What is the total distance (number of tracks passed) the head travels to service all 5 requests using the C-LOOK algorithm?
Choose one answer.

a. 100

b. 140

c. 160

d. 180

e. None of the above
Question19
Which of the following is NOT a characteristic of RAID levels 1 through 6:
Choose one answer.

a. They improve disk input/output performance.

b. They improve the reliability of disk input/output operations.

c. They require some form of redundancy.

d. They reduce the likelihood of data loss.

e. All of the above are characteristics of RAID levels
1 through 6.
Question20
An advantage of a Storage Area Network over Network Attached Storage is:
Choose one answer.

a. Reduced latency between a client and a storage device.

b. Reduced latency between a server and a storage device.

c. Reduced latency between a server and a client.

d. The SAN can use lower cost LAN hardware.

e. None of the above

Reference no: EM131109136

Questions Cloud

Determine the number of registers or stack locations : Illustrate your technique on the following expression ((A+B)+(C+D))+((E+F)+(G+H))
Appropriate intregal for calculating the lateral surface : Give an appropriate intregal for calculating the lateral surface are of the solid omitting two ends.
Point estimate of the population mean : What is the point estimate of the population mean? What is the point estimate of the population standard deviation? If the manufacturer's claim is correct (i.e., 30 seconds, 10 seconds), what is the probability that the average deviation from perfe..
Procedures for the negotiation of a government contract : The FAR Part 15 provides the policies and procedures for the negotiation of a government contract. These guidelines protect both the government and the organization that submits a proposal for consideration, whether a competitive or other-than-co..
Memory and prepared for execution : An executable program file is brought into memory and prepared for execution at:a. Compile time. b. Link time. c. Load time. d. Execution time.
Defined contribution pension plan and benefit pension plan : Explain how the employer's obligation differs between the two types of plans.
Complete the code generator for vardecl nodes : Complete the code generator for VarDecl Nodes (Figure 12.3) by inserting calls to the proper code generation subroutines to store the value of InitValue into a local variable.
Important skill in being an effective manager : During this course, you have learned how argument is used to "offer a set of reasons or evidence in support of a conclusion," (Weston, 2009, p. xi). This is an important concept because an "argument" typically has a negative connotation. Being abl..
Luggage weight for individual air travelers : From past experience, an airline has found the luggage weight for individual air travelers on its trans- Atlantic route to have a mean of 80 pounds and a standard deviation of 20 pounds.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  How many different colors could be represented with an rgb

How many different colors could be represented with an RGB scheme if only 3 bits were used to represent each RGB component (3 for R, 3 for G, 3 for B)?

  The u.s. convert to a zero personal income tax

The U.S. Convert to a Zero Personal Income Tax

  Rewrite the formal definition of a complete tree of height

Rewrite the formal definition of a complete tree of height h.

  Each office connects to via a wide area network (wan)

Application Architecture You have been tasked with building a payroll program for a large organization with offices spread across the United States. The company has one larger data center that each office connects to via a wide area network (WAN).

  Implement the pairing heap

1. Use a k-d tree to implement deleteMin. What would you expect the  average running time to be for a random tree? 2. Use a k-d heap to implement a double-ended queue that also supports deleteMin.

  What can be the record source of the form

What can be the record source of the form

  Write an isr in c to add the signed value on port t (ptt)

Write an ISR, in C, to add the signed value on PORT T (PTT) to the byte value stored in location data1.

  Area is the goat unable to graze on

A got is tied on a rectangular plot at one corner. The length of the rope is 21 m and the plot measures 25 by 30 m. What area is the goat unable to graze on?

  Which implementation of adt dictionary would be efficient

Which implementation of the ADT dictionary would be most efficient as a symbol table?

  Use ethernet network data link protocols

Is possible to use Ethernet network data link protocols on a Token Ring network? Explain why or why not.

  Estimate the final dbm value for a radio

Estimate the final dBm value for a radio if the radio has .1 Watt of power, if there is a 4:1 amplifier before transmission, and if there is attenuation to 1/8 the original signal strength between the sender and receiver.

  Create a use case graphic rendering that shows all actors

Using Microsoft Visio or an open source alternative such as Dia, create a use case graphic rendering that shows all actors and all use cases for the RMO CSMS marketing subsystem.Note:The graphically depicted solution is not included in the required p..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd