Memory management questions and answer for Gate

Memory management questions and answer in os for gate Q1. increasing the RAM of a computer typically improves performance because: ...

Memory management questions and answer in os for gate




Q1.increasing the RAM of a computer typically improves performance because:

A.Virtual memory increases
B.Larger RAMs are faster
C.Fewer page faults occur
D.Fewer segmentation faults occur.


Q2.Page fault occurs when

A.When a requested page is in memory
B.When a requested page is not in memory
C.When a page is currupted
D.When an exception is thrown


Q3. Which of the following page replacement algorithms suffers from Belady’s anomaly?


A.FIFO

B.LRU

C.Optimal Page Replacement

D. NOne



Q4..What is the swap space in the disk used for?


(A) Saving temporary html pages
(B) Saving process data
(C) Storing the super-block
(D) Storing device drivers

Q5. A processor uses 36 bit physical addresses and 32 bit virtual addresses, with a page frame size of 4 Kbytes. Each page table entry is of size 4 bytes. A three level page table is used for virtual to physical address translation, where the virtual address is used as follows • Bits 30-31 are used to index into the first level page table • Bits 21-29 are used to index into the second level page table • Bits 12-20 are used to index into the third level page table, and • Bits 0-11 are used as offset within the page The number of bits required for addressing the next level page table (or page frame) in the page table entry of the first, second and third level page tables are respectively.

A.20, 20 and 20
B.24, 24 and 24
C.24, 24 and 20
D.25,25,24

Q6.  A multilevel page table is preferred in comparison to a single level page table for translating virtual address to physical address because



A.It reduces the memory access time to read or write a memory location.

B.It helps to reduce the size of page table needed to implement the virtual address space of a process.

C.It is required by the translation lookaside buffer.

D.It helps to reduce the number of page faults in page replacement algorithms.

Q7.Thrashing occurs when

A.When a page fault occurs
B.Processes on system frequently access pages not memory
C.Processes on system are in running state
D.Processes on system are in waiting state



memory management questions and answer for gate


Q8.A computer system supports 32-bit virtual addresses as well as 32-bit physical addresses. Since the virtual address space is of the same size as the physical address space, the operating system designers decide to get rid of the virtual memory entirely. Which one of the following is true?

A.Efficient implementation of multi-user support is no longer possible
B.The processor cache organization can be made more efficient now
C.Hardware support for memory management is no longer needed
D.CPU scheduling can be made more efficient now

Q9. A computer uses 46–bit virtual address, 32–bit physical address, and a three–level paged page table organization. The page table base register stores the base address of the first–level table (T1), which occupies exactly one page. Each entry of T1 stores the base address of a page of the second–level table (T2). Each entry of T2 stores the base address of a page of the third–level table (T3). Each entry of T3 stores a page table entry (PTE). The PTE is 32 bits in size. The processor used in the computer has a 1 MB 16 way set associative virtually indexed physically tagged cache. The cache block size is 64 bytes. What is the size of a page in KB in this computer? (GATE 2013)
A.2
B.4
C.8
D.16

Q10. Consider data given in the above question. What is the minimum number of page colours needed to guarantee that no two synonyms map to different sets in the processor cache of this computer? (GATE CS 2013)

A.2
B.4
C.8
D.16

Q11. The essential content(s) in each entry of a page table is / are

A.Virtual page number
B.Page frame number
C.Both virtual page number and page frame number
D.Access right information

Q12.A system uses FIFO policy for page replacement. It has 4 page frames with no pages loaded to begin with. The system first accesses 100 distinct pages in some order and then accesses the same 100 pages but now in the reverse order. How many page faults will occur?
A.196
B.192
C.197
D.195

Q13.Let the page fault service time be 10ms in a computer with average memory access time being 20ns. If one page fault is generated for every 10^6 memory accesses, what is the effective access time for the memory?
A.21ns
B.30ns
C.23ns
D.35ns

Q14. Consider the virtual page reference string 1, 2, 3, 2, 4, 1, 3, 2, 4, 1 On a demand paged virtual memory system running on a computer system that main memory size of 3 pages frames which are initially empty. Let LRU, FIFO and OPTIMAL denote the number of page faults under the corresponding page replacements policy. Then

A.OPTIMAL < LRU < FIFO
B.OPTIMAL < FIFO < LRU
C.OPTIMAL = LRU
D.OPTIMAL = FIFO

Q15. Which of the following requires a device driver? (GATE CS 2001)
a) Register
b) Cache
c) Main memory
d) Disk


Answer :



Answer Sheet

(1) C (2) B (3) A (4) B (5)    D   (6)    B      (7)    B      (8)    C     (9)    C     (10)     C     (11)  B       (12)   A      (13)     B (14)         B        (15)          D

COMMENTS

Name

addressing modes types,1,advance-java,2,advancejava,1,aktu entrance exam,1,aktu exam schedule,1,ASP,1,bare machine,1,base register and limit register,1,Basic Computer network questions,1,C Programming,15,C Plus Plus,1,C Programming,2,C Programming MCQ,2,C Programming Questions,2,C programming study material for gate exam,13,Cache Memory,1,CBNST Program,1,Childcare,1,CJ,2,Cloud Computing,1,COA GATE Questions,1,components of use case diagram,1,Computer Architecture,2,Computer architecture based questions for gate exam,11,Computer Network,3,Computer Network Study Material,4,Computer network study material for gate,2,Computer Networks,7,Computer Science Study Material for Gate,20,computer science study material for gate exam,36,content based image retrieval content based image retrieval system,1,contiguous memory allocation,2,Core Java,8,COre Java Interview Questions,1,core java interviews questions,1,cyber crime report,1,Cyber crime status,1,cybercrime and security,1,cybercrime examples,1,Data link Layer Questions,1,Data Mining,1,Data Structure Questions,1,Data Transmission Architecture,1,Data Transmission in wsn,1,DBMS,4,dbms question paper,1,DE,1,Digital Electronics,1,DS,1,dynamic linking,1,dynamic linking in memory management,1,Electroencephalogram,1,File Handling,1,file management in operating system notes,1,FOC,1,Fundamenatl of Computer,1,Gate 2017,5,Gate 2017 Admit card,1,Gate 2017 Exam Schedule,1,Gate 2017 Syllabus,1,gate 2018,1,gate cse study material,1,gate practice set,10,gate study material for computer science,18,Gate study material for computer science 2017,1,GatePreviousYear,1,General,3,HCL Aptitude Test,1,HR Interview Questions,1,HTML,1,Image Processing,1,Important Date of Gate 2017 Exam,1,Information Security Policy,1,internal and external fragmentation,1,JS,1,lagrange's interpolation formula,1,lagrange's interpolation formula examples,1,Looping in C,1,MComputing,1,memory fragmentation,1,memory management,1,memory management questions and answer in os,1,Motivational,4,NCER,2,Numerical Techniques Lab,1,OOT,1,Operating System,12,Operating System Gate Questions,1,Operating System Objective Questions,4,Operating System Questions Bank,1,Operating system questions for gate,1,Operating System Study material,2,operating system study material for gate exam,16,Operating system tutorial,2,page swapping,1,paged memory allocation,1,paged memory allocation in operating system,1,paging technique of memory management .paging technique,1,paging technique of memory management program in c,1,Pointer in C,5,Process based question for gate,1,Quiz on non conventional energy resources,1,Regression testing,1,relocation in memory management,1,relocation registe,1,relocation register,1,resident monitor,1,resident monitor in operating system,1,routing table,1,segmentation in memory management,1,segmentation in memory management in operating system,1,Servlet,1,session tracking,1,session tracking in java,1,session tracking in servlet,1,Software Engineering,10,Software Engineering baes study material for gate,1,software engineering interview questions,1,Software Quality Assurance,3,software verification methods,1,SPM,1,Structure in C,1,Study Material for gate Computer Science,11,swapping in memory management,1,swapping in operating system,1,TCS Code Vita,1,TCS Interview Questions,1,Technical Interview,1,Technical Questions from DBMS,1,Thrashing in Operating System,1,Threads concept in operating system,1,Tips to Learn Coding,1,Top 30 Core Java Interview Questions with Answer,2,top down approach,1,top down approach in programming,1,Types of operating system,1,UML,1,use case diagram explanation,1,website uses cookies,1,what is cookies website,1,What is process control block ?,1,what is software testing?,1,Wireless Sensor Network,3,worst fit algorithm for memory allocation,1,XML,1,
ltr
item
Computer Science Junction: Memory management questions and answer for Gate
Memory management questions and answer for Gate
https://3.bp.blogspot.com/-TkpeH2SKSvE/W3oMukZhB5I/AAAAAAAAAE4/PVB23DBog44yNRlgy-bCx0cMpFxDR3Z4QCLcBGAs/s400/memory-management.png
https://3.bp.blogspot.com/-TkpeH2SKSvE/W3oMukZhB5I/AAAAAAAAAE4/PVB23DBog44yNRlgy-bCx0cMpFxDR3Z4QCLcBGAs/s72-c/memory-management.png
Computer Science Junction
https://www.computersciencejunction.in/2018/08/memory-management-gate-questions-in-os.html
https://www.computersciencejunction.in/
https://www.computersciencejunction.in/
https://www.computersciencejunction.in/2018/08/memory-management-gate-questions-in-os.html
true
425357657003182083
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share. STEP 2: Click the link you shared to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy