Skip to main content

CS604 Current Final Term Fall 2013 Shared by Sana Rajpoot File 4




My CS604 Todays Paper 4/3/2014
Only few Mcqs were from moaz file and few were from the attached file others were new!
Q#1  Hold and Wait    2 Marks

Q#2  Do you agree using Pre-paging help to prevent thrashing?     2 Marks

Q#3  Why do we say Scan algorithm, the elevator algorithm?       2 Marks
The Scan algorithm is sometimes called the elevator algorithm, since the disk arm behaves like an elevator in a building servicing all the requests (people at floors), going up and then reversing to service the requests going down.

Q#4  What is the major purpose of Safety algorithm in Banker’s algorithm?       2 Marks

Q#5  “Virtual memory is extremely large main memory” do you agree or not? 3Marks
Virtual Memory is the separation of user logical memory from physical memory.
This separation allows an extremely large virtual memory to be provided for programmers when only a smaller physical memory is available. Virtual memory makes the task of programming easier because the programmer need not worry about the amount of physical memory, or about what code can be placed in overlays; he/she can concentrate instead on the problem to be programmed.
Q#6 Calculate physical address for each case:                    3 Marks
1.      1.     Base Register=15004
2.      2.     Logical address=456

1.      1.     IP=1A024
2.      2.     CS=40CA1
Q#7  Perform semaphore using P0 and P1 for starvation.   3Marks
Ans:
Q#9  There are two processes and three individual resources. Each process needs a two resources must. Is there deadlock possibility. Explain with reasons. 5 Marks
Q#10  In primary and secondary storage which memory you think is best when to store a program written in C language and which memory is best to store when we want to execute that program. 5 Marks
Q#11  When due to page fault CPU utilization and other IO devices utilization is and disk utilization increase. Which process may cause this condition and how is responsible to overcome this situation?    5 Marks

Q#12  In address spaces of 32-bit and above machines, you are required to identify and briefly explain two paging techniques that can reduce the size of page table in large logical address space.    5 marks
In the 32-bit machine we need to partition p into two parts, p1 and
p2. p1 is used to index the outer page table and p2 to index the inner page table. Thus the
logical address is divided into a page number consisting of 20 bits and a page offset of 12 bits. Since we page the page table, the page number is further divided into a 10-bit page number, and a 10-bit page offset. This is known as two-level paging.

Comments

Popular posts from this blog

CS504 Quiz No.3 Shared by Angel

Question # 1 of 10 ( Start time: 09:08:01 PM ) Total Marks: 1 Defining the services of an object means: Select correct option: What it does?        ok What it knows? Who knows it? Whome it knows? Question # 2 of 10 ( Start time: 09:08:27 PM ) Total Marks: 1 Which one of these represents the Krutchen’s 4+1 architectural view model? Select correct option: Logical view, Process view, Physical view, Development view, Use case view Logical view, Dynamic view, Physical view, Development view, Use case view Logical view, Process view, Physical view, Development view, Sequence view Dynamic view, Process view, Physical view, Development view, Use case view Question # 3 of 10 ( Start time: 09:09:50 PM ) Total Marks: 1 Return values in Synchronous messages are represented by: Select correct option: A solid line A dotted line with label        ok A solid line with label Double line Question # 4 of 10 ( Start tim...

CS302 Quiz No.4 Shared by Jawwad

Question # 1 of 10 ( Start time: 01:15:08 PM ) Total Marks: 1  Asynchronous mean that_____________  Select correct option:  Each flip-flop after the first one is enabled by the output of the preceding flip-flop  Each flip-flop is enabled by the output of the preceding flip-flop  Each flip-flop except the last one is enabled by the output of the preceding flip-flop  Each alternative flip-flop after the first one is enabled by Question # 2 of 10 ( Start time: 01:16:36 PM ) Total Marks: 1 A divide-by-10 ring counter requires a minimum of Select correct option: ten flip-flops five flip-flops four flip-flops twelve flip-flops Question # 3 of 10 ( Start time: 01:17:00 PM ) Total Marks: 1 When the number of states are reduced during the design any counter Select correct option: output changes and Input remain unchanged Input changes and output remain unchanged Input and output bith change Input and output remain unchanged Question # 4 of...

CS614 Quiz No.1 Shared by Manzar (UnSolved)

Question # 1 of 10 ( Start time: 03:35:24 PM )   Total Marks: 1 MDX by Microsoft is an example of _______ Select correct option: HOLAP DOLAP ROLAP None of the given options Question # 2 of 10 ( Start time: 03:36:40 PM )   Total Marks: 1 In decision support system ease of use is achieved by: Select correct option: Normalization Denormalization Drill up Drill down Question # 3 of 10 ( Start time: 03:38:07 PM )   Total Marks: 1 Which of the denormalization technique squeezes master table into detail? Select correct option: Pre-joining Horizontal splitting Vertical splitting Adding redundant column Question # 4 of 10 ( Start time: 03:38:28 PM )   Total Marks: 1 The trade-offs of denormalization is/are: Select correct option: Storage Performance Ease-of-use All of the given options Question # 5 of 10 ( Start time: 03:38:46 PM )   Total Marks: 1 ________is usually deployed when expressions can be used to group data together in...