Midterm Review Flashcards

1
Q

Which of the following is not a type of cursor in Oracle?

a) Implicit cursor
b) Explicit cursor
c) Static cursor
d) Dynamic cursor

A

c) Static cursor

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Static SQL is:

a) Resolved at runtime
b) Resolved at compile time
c) Not related to SQL
d) None of the above

A

b) Resolved at compile time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

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

A

b) Handling multiple records at once

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

In PL/SQL, which keyword is used to declare a stored procedure?

a) FUNCTION
b) PROCEDURE
c) TRIGGER
d) DECLARE

A

b) PROCEDURE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

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

a) Executed before or after a DML operation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

In PL/SQL, which construct is used to define exception handling?
a) TRY-CATCH
b) EXCEPTION
c) HANDLE
d) ERROR

A

b) EXCEPTION

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

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

A

b) To execute a group of SQL statements

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

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

a) It must return a value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

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

A

b) Compile-time resolution of SQL statements

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

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

A

b) Cleanse, validate, and transform data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

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

A

c) Long-term analytical purposes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What does ETL stand for in data warehousing?

a) Extract, Transfer, Load
b) Extract, Transform, Load
c) Extract, Translate, Load
d) Extract, Test, Load

A

b) Extract, Transform, Load

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

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

A

b) Dimension table

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

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

A

b) A subset of a data warehouse designed for a specific business line or team

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

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

a) Star schema

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is the primary key in a dimension table used for?

a) To store aggregated data
b) To uniquely identify each record in the table
c) To perform calculations
d) To link to other fact tables

A

b) To uniquely identify each record in the table