GATE 2007 Computer Science and Information Technology (CS) Questions with Solutions

GATE 2007

184 questions

MCQ 1841-mark 184

Questions 141–145 of 184

Q141Memory Management1 markMCQ−0.33 if wrong
Let a memory have four free blocks of sizes 4k, 8k, 20k, 2k. These blocks are allocated following the best-fit strategy. The allocation requests are stored in a queue as shown below.
Request NoRequest sizesUsage Time J1J2J3J4J5J6J7J8 2k14k3k6k6k10k7k20k 410284186
The time at which the request for J7 will be completed will be

Q142Memory Management1 markMCQ−0.33 if wrong
A process has been allocated 3 page frames. Assume that none of the pages of the process are available in the memory initially. The process makes the following sequence of page references (reference string): 1, 2, 1, 3, 7, 4, 5, 6, 3, 1.

Least Recently Used (LRU) page replacement policy is a practical approximation to optimal page replacement. For the above reference string, how many more page faults occur with LRU than with the optimal page replacement policy?

Q143Memory Management1 markMCQ−0.33 if wrong
A process has been allocated 3 page frames. Assume that none of the pages of the process are available in the memory initially. The process makes the following sequence of page references (reference string): 1, 2, 1, 3, 7, 4, 5, 6, 3, 1.

If optimal page replacement policy is used, how many page faults occur for the above reference string?

Q144Memory Management1 markMCQ−0.33 if wrong
A virtual memory system uses First In First Out (FIFO) page replacement policy and allocates a fixed number of frames to a process. Consider the following statements:

P: Increasing the number of page frames allocated to a process sometimes increases the page fault rate.
Q: Some programs do not exhibit locality of reference.

Which one of the following is TRUE?

Q145Relational Algebra1 markMCQ−0.33 if wrong
Consider the following relation schemas :
b-Schema = (b-name, b-city, assets)
a-Schema = (a-num, b-name, bal)
d-Schema = (c-name, a-number)
Let branch, account and depositor be respectively instances of the above schemas. Assume that account and depositor relations are much bigger than the branch relation.
Consider the following query:
Πc−name(σb−city="Agra"∧bal<0(branch⋈(account⋈depositor)))\Pi _{c-name}(\sigma _{b-city="Agra" \wedge bal \lt 0} (branch \Join (account \Join depositor)))
Which one of the following queries is the most efficient version of the above query ?