Practice Question Answers
Practice Question Answers
Triggers are procedures that run automatically when specific events occur (e.g., INSERT,
UPDATE).
Types: BEFORE/AFTER, ROW/STATEMENT level.
6. What is the package state in Oracle?
The package state holds global variables’ values across calls in a session, improving
performance.
Object types
Inheritance
Encapsulation
Methods inside objects
Implicit: Automatic
Explicit: User-defined
Cursor FOR loop, Parameterized Cursor
Conditional: IF-THEN-ELSE
Iterative: LOOP, WHILE
Sequential: Normal execution
Object Types
Inheritance
Methods
Encapsulation
B-tree
Bitmap
Function-based
Composite
30. What are Object Types in Oracle?
Block structure
Error handling
Reusable code (procedures/functions)
Supports OOP
(Repeated) See Q20. Cursors are used to fetch multiple rows one-by-one.
Let me know if you'd like me to compile this into a PDF or convert it into MCQ/Flashcards for
fast revision.