SS2 Ca 2 Third Term 2022 - 2023
SS2 Ca 2 Third Term 2022 - 2023
SS2 Ca 2 Third Term 2022 - 2023
Please do not open this question booklet until you are told to do so.
While you are waiting, read the following instructions carefully.
This paper consists of two sections: I & II. Section I consist of thirty (30) multiple-
choice and Section II consists of THREE essay questions which will last for 1 hour.
INSTRUCTIONS TO STUDENTS
1. Answer all questions.
2. Use HB pencil only.
3. Write your Name, Subject, and your class boldly written on the answer sheet
provided. Also, write and shade appropriately Date of Exam, your DOB, Student ID
& your Examination number, where applicable, in the spaces provided.
4. Answer each question by shading the box that corresponds to the option you have
chosen.
5. Do not waste time on any question. If you find any difficult, go to the others and
finish them before you come back to the difficult one(s).
6. There must not be more than one shading for an answer. Any shading with more than
one box will be marked wrong.
7. If you change your mind about an answer, completely erase the first shading.
1
Turn Over
OBJECTIVE
2
C. A Sytem log 19. A ________ is associated with each buffer,
D. Data pages which is 0 if the buffer is not modified else 1
if modified.
13. When a transaction executes its final A. Buffer sheet
operation, it is said to be in a _____________ B. Dirty sheet
state? C. Clean bit
A. Committed D. Dirty bit
B. Partially committed
C. Failed 20. _______ is a region of a physical memory
D. Transaction state. storage used to temporarily hold data while it
is being moved from one place to another.
14. When a transaction can no longer proceed A. Buffer
further, it is said to be in _____________ B. Cache
state. C. Recovery Manager
A. Committed D. Data holder
B. Failed 21. __________ is the part of the memory which
C. Transaction state transparently stores data so that future
D. Partially committed requests for that data can be served faster.
A. Buffer
15. The initial state of every transaction being B. Cache
initiated is known as ________ state C. Page
A. Transaction D. Cell
B. Normal state
C. Active state 22. When a page has been modified in memory
D. Joint state due to data modification
(Insert/update/delete), it is marked as a
16. A database recovery module can select one of _______ page
the two operations after a transaction aborts A. Clean page
A. Restart or Jump transaction B. Modified page
B. Restart or Kill transaction C. Dirty page
C. Restart or Fill transaction D. Memory page
D. Restart or Resume transaction
23. A page read from disk into memory, which is
17. The deferred update is also known as similar to its equivalent on disk is considered
________ algorithm a __________ page.
A. Undo/Redo A. Memory page
B. No Undo/Redo B. Clean page
C. Save C. Dirty page
D. Jump
D. Modified page
18. The immediate update is also known as
_________ 24. __________ is a group of memory cells that
Algorithm. are accessed as part of a single operation.
A. Undo/Redo A. A page
B. No Undo/Redo B. A cache
C. Undo C. A Buffer
D. Save D. A disk
3
A. Deferred update A. Write ahead logging
B. Immediate update B. Repeating history during Redo
C. Two-phase commit C. Read log Undo
D. Recovery Management D. Logging changes during Redo
4
SUBJECT: DATA PROCESSING - SECTION B
(THEORY)
CLASS: SS 2
Please do not open this question booklet until you are told to do so.
While you are waiting, read the following instructions carefully.
This section consists of THREE essay questions. You are to answer TWO.
NAME:
______________________________________________________________________________
CLASS:
______________________________________________________________________________
QUESTION MARK
SECTION II
Answer only two questions
1. a. What is a Recovery manager?
5
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
(4 marks)
b. Briefly explain the term Committed transaction?
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
( 4 marks)
6
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
(16 marks)
b. What is the difference between Media file and Crash recovery?
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
(4 marks)
3. a. Explain the following major techniques for recovering from non-catastrophic transaction failure ;
I. Deferred Update:
________________________________________________________________________________
7
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
8
(2 marks)
c. Outline the 3 Characteristics of an ARIES
1. _________________________________________________________________________________
2. _________________________________________________________________________________
3.
_________________________________________________________________________________
(6
marks)