0
0
DBMS Theoryknowledge~10 mins

Buffer management in DBMS Theory - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to identify the main purpose of buffer management in a DBMS.

DBMS Theory
Buffer management is responsible for [1] data between disk and main memory.
Drag options to blanks, or click blank then click option'
Aindexing
Bdeleting
Cencrypting
Dtransferring
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing buffer management with data deletion or encryption.
Thinking buffer management creates indexes.
2fill in blank
medium

Complete the code to describe the buffer pool in DBMS.

DBMS Theory
The buffer pool is a [1] area in main memory that stores pages read from disk.
Drag options to blanks, or click blank then click option'
Apermanent
Btemporary
Cbackup
Dcompressed
Attempts:
3 left
💡 Hint
Common Mistakes
Thinking the buffer pool is permanent storage.
Confusing buffer pool with backup storage.
3fill in blank
hard

Fix the error in the statement about page replacement policy.

DBMS Theory
The [1] policy removes the page that has been used most recently.
Drag options to blanks, or click blank then click option'
AMRU
BFIFO
CLRU
DClock
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing LRU with MRU.
Assuming FIFO removes the most recently used page.
4fill in blank
hard

Fill both blanks to complete the buffer replacement condition.

DBMS Theory
A page is replaced if it is [1] and [2] in the buffer pool.
Drag options to blanks, or click blank then click option'
Aunreferenced
Bdirty
Cclean
Dreferenced
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing referenced pages for replacement.
Replacing dirty pages without writing them back.
5fill in blank
hard

Fill all three blanks to complete the buffer management dictionary comprehension.

DBMS Theory
buffer_dict = {{ [1]: [2] for page, status in pages.items() if status [3] 'clean' }}
Drag options to blanks, or click blank then click option'
Apage
Bstatus
C==
D!=
Attempts:
3 left
💡 Hint
Common Mistakes
Using '!=' instead of '==' in the condition.
Swapping key and value in the dictionary comprehension.