Oracle Multiple Choice Questions
Test your Oracle knowledge with these comprehensive multiple-choice questions. Hover over any question to reveal the correct answer.
Jump to Section:
1. Introduction to Oracle
1. What company developed Oracle Database?
Easy
Answer: B. Oracle Corporation
2. Which of these is NOT a feature of Oracle Database?
Easy
Answer: D. Stored Functions (All are Oracle features)
3. What is the proprietary procedural language for Oracle?
Medium
Answer: B. PL/SQL
4. When was the first version of Oracle Database released?
Medium
Answer: A. 1977
5. What is Oracle's flagship database product called?
Hard
Answer: C. Oracle Database
2. Setting Up Oracle Environment
6. Which command-line tool is commonly used to interact with Oracle Database?
Easy
Answer: A. SQL*Plus
7. Which of these is NOT an Oracle GUI tool?
Easy
Answer: D. MySQL Workbench
8. What is the default port for Oracle Database listener?
Medium
Answer: B. 1521
9. Which command displays version information in Oracle?
Medium
Answer: B. SELECT * FROM v$version;
10. What is the name of Oracle's free database version?
Hard
Answer: B. Oracle XE (Express Edition)
3. Database Operations
11. Which command creates a new tablespace in Oracle?
Easy
Answer: B. CREATE TABLESPACE
12. How do you list all tables in the current schema in Oracle?
Easy
Answer: B. SELECT table_name FROM user_tables;
13. Which command is used to create a new user in Oracle?
Medium
Answer: B. CREATE USER
14. What does the DROP USER command do in Oracle?
Medium
Answer: B. Deletes a user account
15. Which view contains information about all tables in Oracle?
Hard
Answer: D. All of the above
4. Basic SQL Queries
16. Which SQL keyword retrieves data from an Oracle database?
Easy
Answer: B. SELECT
17. Which Oracle-specific function returns the current date?
Easy
Answer: B. SYSDATE
18. What does the DUAL table in Oracle represent?
Medium
Answer: A. A system table with one row and one column
19. Which Oracle operator concatenates strings?
Medium
Answer: D. Both B and C (|| and CONCAT())
20. What is the purpose of the ROWNUM pseudocolumn in Oracle?
Hard
Answer: B. To assign a unique number to each row returned
5. Modifying Data (DML)
21. Which statement inserts new data into an Oracle table?
Easy
Answer: B. INSERT INTO
22. Which Oracle statement modifies existing records?
Easy
Answer: C. UPDATE
23. Which statement removes records from an Oracle table?
Medium
Answer: B. DELETE
24. What is the difference between DELETE and TRUNCATE in Oracle?
Medium
Answer: C. DELETE can use a WHERE clause
25. Which Oracle statement is used to merge data into a table?
Hard
Answer: B. MERGE
6. Advanced Filtering
26. Which Oracle operator searches for a specified pattern in a column?
Easy
Answer: A. LIKE
27. Which Oracle function performs case-insensitive comparisons?
Medium
Answer: D. All of the above
28. Which Oracle operator is used to combine multiple conditions in a WHERE clause?
Easy
Answer: A. AND
29. What does the Oracle BETWEEN operator do?
Medium
Answer: A. Checks if a value is within a range
30. Which Oracle clause is used to filter groups after GROUP BY is applied?
Hard
Answer: C. HAVING
7. Working with Multiple Tables
31. Which Oracle join returns all rows when there is a match in either table?
Medium
Answer: D. FULL OUTER JOIN
32. What is the purpose of a foreign key in Oracle?
Medium
Answer: B. To create a relationship between tables
33. Which Oracle join returns only matching rows from both tables?
Easy
Answer: A. INNER JOIN
34. What is a self-join in Oracle?
Hard
Answer: A. Joining a table to itself
35. Which Oracle join returns all rows from the left table and matched rows from the right table?
Medium
Answer: B. LEFT JOIN
8. Aggregation and Grouping
36. Which Oracle function returns the average value of a numeric column?
Easy
Answer: B. AVG()
37. What is the difference between WHERE and HAVING clauses in Oracle?
Hard
Answer: D. All of the above
38. Which Oracle function counts the number of rows in a result set?
Easy
Answer: B. COUNT()
39. What does GROUP BY do in Oracle?
Medium
Answer: B. Groups rows by column values
40. Which Oracle function returns the highest value in a column?
Easy
Answer: B. MAX()
9. Subqueries
41. What is a subquery in Oracle?
Medium
Answer: B. A query nested inside another query
42. Which Oracle operator compares a value to a list from a subquery?
Medium
Answer: B. IN
43. What is a correlated subquery in Oracle?
Hard
Answer: A. A subquery that references the outer query
44. Which Oracle clause can contain a subquery in a SELECT statement?
Medium
Answer: D. All of the above
45. What is the purpose of EXISTS with Oracle subqueries?
Hard
Answer: A. To check if a subquery returns any rows
10. Views and Indexes
46. What is a materialized view in Oracle?
Medium
Answer: A. A physical table that stores query results
47. What is the main purpose of an index in Oracle?
Medium
Answer: B. To improve query performance
48. Which statement creates a view in Oracle?
Easy
Answer: B. CREATE VIEW
49. What is a function-based index in Oracle?
Hard
Answer: A. An index on the result of a function
50. Which statement creates an index in Oracle?
Medium
Answer: B. CREATE INDEX
11. Oracle Functions
51. Which Oracle function returns the current date and time?
Easy
Answer: D. Both A and B (CURRENT_TIMESTAMP and SYSDATE both work in Oracle)
52. Which function is used to concatenate strings in Oracle?
Easy
Answer: D. Both A and B (CONCAT() and || both work in Oracle)
53. Which Oracle function converts a string to uppercase?
Easy
Answer: A. UPPER()
54. What does the NVL() function do in Oracle?
Medium
Answer: B. Returns the first non-NULL argument
55. Which Oracle function extracts a portion of a string?
Medium
Answer: B. SUBSTR()
12. Transactions and ACID
56. Which SQL statement starts a transaction in Oracle?
Medium
Answer: B. SET TRANSACTION
57. What does the "A" in ACID stand for?
Medium
Answer: B. Atomicity
58. Which statement permanently saves a transaction's changes in Oracle?
Easy
Answer: B. COMMIT
59. What does the "I" in ACID represent?
Medium
Answer: B. Isolation
60. Which statement undoes a transaction's changes in Oracle?
Easy
Answer: B. ROLLBACK
13. PL/SQL
61. What is PL/SQL?
Medium
Answer: A. Oracle's procedural extension to SQL
62. Which statement creates a PL/SQL stored procedure?
Hard
Answer: A. CREATE PROCEDURE
63. How do you execute a PL/SQL stored procedure?
Easy
Answer: D. EXEC (or EXECUTE in SQL*Plus)
64. What is an advantage of PL/SQL?
Medium
Answer: D. All of the above
65. Which PL/SQL construct is used for error handling?
Hard
Answer: B. EXCEPTION