Oracle Database Quiz Questions

Course Name:Oracle
Chapter Name:Chapter 8 - RDBMS Concepts
Lesson Content Link:Index Types
Current Quiz Count:30
Progress
0%
Q1
True / False

In ORACLE, a B-tree index is the default type of index created.

Q2
True / False

In ORACLE, a unique index ensures that no two rows have the same value in the indexed column(s).

Q3
True / False

In ORACLE, indexes can only be created on single columns.

Q4
True / False

In ORACLE, bitmap indexes are suitable for high cardinality columns.

Q5
True / False

In ORACLE, a function-based index can be created on an expression or a function.

Q6
True / False

In ORACLE, global indexes are partitioned indexes that span all partitions of a table.

Q7
True / False

In ORACLE, a reverse key index is used to evenly distribute insertions across all leaf blocks.

Q8
True / False

In ORACLE, domain indexes are user-defined indexes specific to a particular application.

Q9
True / False

In ORACLE, a cluster index is used to enforce unique constraints on cluster keys.

Q10
True / False

In ORACLE, index-organized tables (IOTs) store the entire table data in the index structure.

Q11
Multiple Choice

Identify the SQL statements that correctly create a B-tree index on a column in an Oracle table.

SQL Code
CREATE TABLE employees (
 employee_id NUMBER PRIMARY KEY,
 employee_name VARCHAR2(100),
 department_id NUMBER
);
Q12
Multiple Choice

Select the SQL statements that correctly create a unique index on a combination of columns.

Q13
Multiple Choice

Determine the SQL statements that demonstrate the creation of a bitmap index in Oracle.

Q14
Multiple Choice

Identify the SQL statements that correctly create a function-based index in Oracle.

Q15
Multiple Choice

Choose the SQL statements that correctly demonstrate the creation of a reverse key index in Oracle.

Q16
Multiple Choice

Which SQL statements demonstrate the creation of an index-organized table (IOT) in Oracle?

Q17
Multiple Choice

Determine the SQL statements that correctly create a clustered index in Oracle.

Q18
Multiple Choice

Identify the SQL statements that correctly create a global partitioned index in Oracle.

Q19
Multiple Choice

Choose the SQL statements that demonstrate the creation of a local partitioned index in Oracle.

Q20
Multiple Choice

Select the SQL statements that demonstrate the creation of a domain index in Oracle.

Q21
Single Choice

Which type of index is best suited for optimizing queries that filter by a column with low cardinality?

SQL Code
SELECT employee_id, department_id
FROM employees
WHERE department_id = 30;
Q22
Single Choice

Which index type would be most efficient for a column that is frequently updated?

SQL Code
SELECT order_id, status
FROM orders
WHERE status = 'Shipped';
Q23
Single Choice

What type of index should be used to improve query performance for a case-insensitive search?

SQL Code
SELECT user_id, email
FROM users
WHERE LOWER(email) = 'john.doe@example.com';
Q24
Single Choice

Which index type is optimal for speeding up queries that join tables on non-unique columns?

SQL Code
SELECT e.employee_id, d.department_name
FROM employees e
JOIN departments d ON e.department_id = d.department_id;
Q25
Single Choice

What type of index is most effective for queries that perform range searches on a date column?

SQL Code
SELECT order_id, order_date
FROM orders
WHERE order_date BETWEEN '01-JAN-2023' AND '31-JAN-2023';
Q26
Single Choice

Which index type is best suited for improving performance of queries that filter on a column with high cardinality?

SQL Code
SELECT customer_id, email
FROM customers
WHERE email LIKE 'john%';
Q27
Single Choice

What type of index would you create to optimize a query that performs a wildcard search?

SQL Code
SELECT product_id, product_name
FROM products
WHERE product_name LIKE '%Phone%';
Q28
Single Choice

How would you create an index on a column with a high number of distinct values for filtering purposes?

SQL Code
SELECT transaction_id, account_number
FROM transactions
WHERE account_number = '123456789';
Q29
Single Choice

Which index type would be appropriate for a column that is frequently queried with the IS NULL condition?

SQL Code
SELECT employee_id, bonus
FROM employees
WHERE bonus IS NULL;
Q30
Single Choice

What index type should be used to enhance performance for a query that filters on a text column with a specific pattern?

SQL Code
SELECT user_id, username
FROM users
WHERE username LIKE 'john%';