Midterm Review Flashcards
Which of the following is not a type of cursor in Oracle?
a) Implicit cursor
b) Explicit cursor
c) Static cursor
d) Dynamic cursor
c) Static cursor
Static SQL is:
a) Resolved at runtime
b) Resolved at compile time
c) Not related to SQL
d) None of the above
b) Resolved at compile time
Bulk operations in PL/SQL are typically used for:
a) Handling individual records
b) Handling multiple records at once
c) Selecting specific records
d) None of the above
b) Handling multiple records at once
In PL/SQL, which keyword is used to declare a stored procedure?
a) FUNCTION
b) PROCEDURE
c) TRIGGER
d) DECLARE
b) PROCEDURE
Triggers are:
a) Executed before or after a DML operation
b) Executed before or after a query
c) Not related to database operations
d) None of the above
a) Executed before or after a DML operation
In PL/SQL, which construct is used to define exception handling?
a) TRY-CATCH
b) EXCEPTION
c) HANDLE
d) ERROR
b) EXCEPTION
What is the purpose of a stored procedure?
a) To execute a single SQL statement
b) To execute a group of SQL statements
c) To retrieve data from a database
d) None of the above
b) To execute a group of SQL statements
Which of the following is a characteristic of
a function in PL/SQL?
a) It must return a value
b) It cannot return a value
c) It can only be called from within a trigger
d) It can only be called from within a stored procedure
a) It must return a value
What is the primary use of static SQL?
a) Dynamic execution of SQL statements b) Compile-time resolution of SQL statements
c) Runtime resolution of SQL statements
d) None of the above
b) Compile-time resolution of SQL statements
What is the primary purpose of the Transform phase in ETL?
a) Extract data from source systems
b) Cleanse, validate, and transform data
c) Load data into the target system
d) Index data for faster retrieval
b) Cleanse, validate, and transform data
A data warehouse stores historical data for:
a) Short-term operational use
b) Real-time decision-making
c) Long-term analytical purposes
d) Data archival purposes
c) Long-term analytical purposes
What does ETL stand for in data warehousing?
a) Extract, Transfer, Load
b) Extract, Transform, Load
c) Extract, Translate, Load
d) Extract, Test, Load
b) Extract, Transform, Load
Which of the following is typically used to store hierarchical data in a star schema?
a) Fact table
b) Dimension table
c) Staging table
d) Lookup table
b) Dimension table
What is a data mart?
a) A large centralized data warehouse
b) A subset of a data warehouse designed for a specific business line or team
c) An operational database for day-to-day transactions
d) A tool for ETL processes
b) A subset of a data warehouse designed for a specific business line or team
Which type of schema is characterized by one fact table surrounded by multiple dimension tables?
a) Star schema
b) Snowflake schema
c) Galaxy schema
d) Constellation schema
a) Star schema