About this Question Bank
This panel collects every question from the course in one place: 360 moderate-level questions with answers and the answer key for 120 MCQs across 24 chapters, based on the chapter notes (PDF). Use it for revision before the certificate examination.
Chapter-1 | Introduction to RDBMS
Read the notes (PDF), explanation & take the MCQ test »
MCQ Answer Key
| No. | Question | Correct Answer |
|---|---|---|
| 1 | Who designed the relational model on which RDBMS is based? | B. E. F. Codd |
| 2 | Which data model supports only one-to-many relationships between entities? | C. Hierarchical |
| 3 | A foreign key must be either NULL or have a value present in the parent key. Which rule is this? | D. Referential integrity |
| 4 | How many tables does the relational algebra SELECT operator take as input? | A. One |
| 5 | The SQL command used to create a table belongs to which category? | B. DDL |
Chapter-2 | Introduction to Oracle
Read the notes (PDF), explanation & take the MCQ test »
MCQ Answer Key
| No. | Question | Correct Answer |
|---|---|---|
| 1 | An Oracle instance is a collection of: | C. Memory structures and processes |
| 2 | In which file is the net service name (host string) stored on the client? | D. TNSNAMES.ORA |
| 3 | Which statement about SQL*Plus commands is TRUE? | A. They can be abbreviated |
| 4 | Which error is displayed when you try to connect while the Oracle instance has not started? | B. ORA-01034 |
| 5 | In Personal Oracle, which components run on the same machine? | C. Instance, database and client application |
Chapter-3 | Getting Started with Oracle
Read the notes (PDF), explanation & take the MCQ test »
MCQ Answer Key
| No. | Question | Correct Answer |
|---|---|---|
| 1 | Which operator is used to compare a column with a NULL value? | D. IS NULL |
| 2 | What is the maximum number of characters that can be stored in a CHAR column (as per the notes)? | A. 2000 |
| 3 | How many LONG columns can a table contain? | B. One |
| 4 | In the LIKE operator, what does % stand for? | C. Zero or more characters |
| 5 | Which clause must always be the last clause of a SELECT command? | D. ORDER BY |
Chapter-4 | Creating Sample Tables
Read the notes (PDF), explanation & take the MCQ test »
MCQ Answer Key
| No. | Question | Correct Answer |
|---|---|---|
| 1 | Which constraint is used to implement business rules such as "amount must be greater than 0"? | A. CHECK |
| 2 | Which option of the REFERENCES clause deletes all child rows when the parent row is deleted? | B. ON DELETE CASCADE |
| 3 | Which data dictionary view gives information about constraints of your tables? | C. USER_CONSTRAINTS |
| 4 | Where must a PRIMARY KEY constraint be defined when the key is composite? | D. At table level |
| 5 | Which of the following can NOT be used in a CHECK constraint condition? | A. A reference to SYSDATE |
Chapter-5 | Changing Structure and Data
Read the notes (PDF), explanation & take the MCQ test »
MCQ Answer Key
| No. | Question | Correct Answer |
|---|---|---|
| 1 | Which command is used to mark a location in a transaction? | B. SAVEPOINT |
| 2 | Oracle issues an implicit COMMIT: | C. Before and after a DDL command |
| 3 | What happens if a transaction tries to update a row that is already locked by another transaction? | D. It waits until the lock is released |
| 4 | Which ALTER TABLE option marks a column for later physical removal? | A. SET UNUSED COLUMN |
| 5 | The decrease of a column’s width is possible only when: | B. The column is empty |
Chapter-6 | Arithmetic and Date Functions
Read the notes (PDF), explanation & take the MCQ test »
MCQ Answer Key
| No. | Question | Correct Answer |
|---|---|---|
| 1 | What is the return value of ROUND(2323.343, 2)? | C. 2323.34 |
| 2 | Which function is used to get the remainder of a division? | D. MOD |
| 3 | Which date function does NOT return a DATE value? | A. MONTHS_BETWEEN |
| 4 | Which function sets the time portion of a DATE to 00:00:00 without changing the date? | B. TRUNC |
| 5 | What is FLOOR(-2.3)? | C. -3 |
Chapter-7 | String, Conversion and Miscellaneous Functions
Read the notes (PDF), explanation & take the MCQ test »
MCQ Answer Key
| No. | Question | Correct Answer |
|---|---|---|
| 1 | Which function performs one-to-one character substitution? | D. TRANSLATE |
| 2 | Which format element spells out the complete year in TO_CHAR? | A. YEAR |
| 3 | Can a NUMBER be converted automatically to a DATE? | B. No |
| 4 | What is the result of SELECT '10' * '20' FROM dual? | C. 200 |
| 5 | What does INSTR('How do you do','do',1,2) return? | D. 12 |
Chapter-8 | Grouping Data
Read the notes (PDF), explanation & take the MCQ test »
MCQ Answer Key
| No. | Question | Correct Answer |
|---|---|---|
| 1 | Which clause is used to select groups based on a condition? | A. HAVING |
| 2 | Using a group function in the WHERE clause results in: | B. ORA-00934: group function is not allowed here |
| 3 | What is the correct order of execution? | C. WHERE, GROUP BY, HAVING, ORDER BY |
| 4 | COUNT(column) returns: | D. The number of not-null values in the column |
| 5 | Which feature produces ALL possible sub-totals for the given columns? | A. CUBE |
Chapter-9 | Joining Tables
Read the notes (PDF), explanation & take the MCQ test »
MCQ Answer Key
| No. | Question | Correct Answer |
|---|---|---|
| 1 | Joining a table with 6 rows to a table with 7 rows without a join condition returns: | B. 42 rows |
| 2 | What is the minimum number of join conditions to join 4 tables? | C. 3 |
| 3 | Which operator is used for an outer join in Oracle’s join syntax shown in the chapter? | D. (+) |
| 4 | Which set operator returns all rows of both queries including duplicates? | A. UNION ALL |
| 5 | In a query using a set operator, the column headings are taken from: | B. The first query |
Chapter-10 | Views
Read the notes (PDF), explanation & take the MCQ test »
MCQ Answer Key
| No. | Question | Correct Answer |
|---|---|---|
| 1 | The table on which a view is based is called: | C. Base table |
| 2 | When a base table is dropped, the views based on it are: | D. Marked INVALID |
| 3 | Which option of CREATE VIEW allows creating a view even when the base table does not exist? | A. FORCE |
| 4 | Which error is raised when an insert through a view violates WITH CHECK OPTION? | B. ORA-01402 |
| 5 | A view whose query contains GROUP BY is: | C. Not inherently updatable |
Chapter-11 | Subqueries
Read the notes (PDF), explanation & take the MCQ test »
MCQ Answer Key
| No. | Question | Correct Answer |
|---|---|---|
| 1 | A correlated subquery is executed: | D. Once for each row of the main query |
| 2 | Up to how many levels can subqueries be nested (as per the notes)? | A. 16 |
| 3 | What is the result of 10 > ALL (5, 7)? | B. True |
| 4 | When CREATE TABLE ... AS SELECT is used, which constraints of the source table are copied? | C. Only NOT NULL |
| 5 | Which operator checks only whether the subquery returns any row? | D. EXISTS |
Chapter-12 | Indexing, Clustering, Sequence and Pseudo Columns
Read the notes (PDF), explanation & take the MCQ test »
MCQ Answer Key
| No. | Question | Correct Answer |
|---|---|---|
| 1 | Which option of CREATE SEQUENCE generates numbers in the reverse (descending) order? | A. A negative INCREMENT BY |
| 2 | Which pseudo column gives the next available number from a sequence? | B. NEXTVAL |
| 3 | Which option of CREATE TABLE places a table in a cluster? | C. CLUSTER |
| 4 | Oracle will NOT use the index on NAME for which query? | D. where substr(name,4,3) = 'Joh' |
| 5 | What does SELECT rownum, ccode FROM courses WHERE rownum = 5 return? | A. No rows |
Chapter-13 | Security
Read the notes (PDF), explanation & take the MCQ test »
MCQ Answer Key
| No. | Question | Correct Answer |
|---|---|---|
| 1 | Which command is used to change a user’s password? | B. ALTER USER |
| 2 | Which object privilege allows a user to create an index on another user’s table? | C. INDEX |
| 3 | Which option lets a grantee pass a received object privilege on to other users? | D. WITH GRANT OPTION |
| 4 | What is the synonym for the USER_CATALOG data dictionary view? | A. CAT |
| 5 | Which object privileges are available on a SEQUENCE? | B. SELECT and ALTER |
Chapter-14 | Report Generation using SQL*Plus Commands
Read the notes (PDF), explanation & take the MCQ test »
MCQ Answer Key
| No. | Question | Correct Answer |
|---|---|---|
| 1 | Which system variable automatically commits changes made to the database? | C. AUTOCOMMIT |
| 2 | Which SQL*Plus command is used to change the heading of a column? | D. COLUMN |
| 3 | Which variable displays the current page number in a title? | A. SQL.PNO |
| 4 | Every COMPUTE command requires a corresponding: | B. BREAK |
| 5 | Which two system variables set the dimension of the report page? | C. PAGESIZE and LINESIZE |
Chapter-15 | Introduction to PL/SQL
Read the notes (PDF), explanation & take the MCQ test »
MCQ Answer Key
| No. | Question | Correct Answer |
|---|---|---|
| 1 | In which part of a PL/SQL block are errors handled? | D. Exception-handling part |
| 2 | Which is the operator for exponentiation in PL/SQL? | A. ** |
| 3 | Which of the following CANNOT be used directly in a PL/SQL procedural statement (outside SQL)? | B. DECODE |
| 4 | Which part of a PL/SQL block is mandatory? | C. Executable part (BEGIN … END) |
| 5 | Which SQL*Plus setting must be ON to see output from DBMS_OUTPUT.PUT_LINE? | D. SERVEROUTPUT |
Chapter-16 | Control Structures
Read the notes (PDF), explanation & take the MCQ test »
MCQ Answer Key
| No. | Question | Correct Answer |
|---|---|---|
| 1 | Which keyword is used for additional conditions in a PL/SQL IF statement? | A. ELSIF |
| 2 | A LOOP … END LOOP without EXIT results in: | B. An infinite loop |
| 3 | By how much is the counter of a numeric FOR loop changed in each iteration? | C. By one only |
| 4 | In a WHILE loop, when is the condition checked? | D. At the beginning of each iteration |
| 5 | Which of the following is a VALID use of GOTO? | A. Branching to a label before an executable statement in the same block |
Chapter-17 | Exception Handling
Read the notes (PDF), explanation & take the MCQ test »
MCQ Answer Key
| No. | Question | Correct Answer |
|---|---|---|
| 1 | Which statement is used to re-raise the current exception? | B. RAISE (without a name) |
| 2 | Which function returns the error message of the most recent error? | C. SQLERRM |
| 3 | When an UPDATE command could not update any rows, what happens? | D. No exception is raised |
| 4 | When an exception is not handled in the current block, it: | A. Is propagated to the outer block |
| 5 | Which statement associates a user-defined exception with an Oracle error number? | B. PRAGMA EXCEPTION_INIT |
Chapter-18 | Cursor Handling
Read the notes (PDF), explanation & take the MCQ test »
MCQ Answer Key
| No. | Question | Correct Answer |
|---|---|---|
| 1 | Which attribute tells how many rows have been fetched from a cursor so far? | C. %ROWCOUNT |
| 2 | What is the name of the implicit cursor? | D. SQL |
| 3 | Which of these is NOT done automatically by a cursor FOR loop? | A. Declaring the cursor’s SELECT statement |
| 4 | Which clause must be present in the cursor declaration to use WHERE CURRENT OF? | B. FOR UPDATE |
| 5 | How is the size of a cursor parameter specified? | C. It is not specified – only the datatype (VARCHAR2) |
Chapter-19 | Procedures, Functions and Packages
Read the notes (PDF), explanation & take the MCQ test »
MCQ Answer Key
| No. | Question | Correct Answer |
|---|---|---|
| 1 | Which command displays the errors that occurred while compiling a stored procedure? | D. SHOW ERRORS |
| 2 | Which data dictionary view provides the source code of stored procedures? | A. USER_SOURCE |
| 3 | Which parameter mode specifies that a parameter is both input and output? | B. IN OUT |
| 4 | Which command explicitly recompiles a procedure? | C. ALTER PROCEDURE p COMPILE |
| 5 | Which option makes a procedure run with the privileges of the calling user? | D. AUTHID CURRENT_USER |
Chapter-20 | Database Triggers
Read the notes (PDF), explanation & take the MCQ test »
MCQ Answer Key
| No. | Question | Correct Answer |
|---|---|---|
| 1 | Which data dictionary view contains information about triggers? | A. USER_TRIGGERS |
| 2 | What is the default type of trigger? | B. Statement-level |
| 3 | In a DELETE trigger, which correlation name is available? | C. OLD only |
| 4 | How many trigger combinations of timing, level and DML command are possible as per the notes? | D. 12 |
| 5 | Which trigger type is used to make a non-updatable view accept DML? | A. INSTEAD OF trigger |
Chapter-21 | LOBs (Large Objects)
Read the notes (PDF), explanation & take the MCQ test »
MCQ Answer Key
| No. | Question | Correct Answer |
|---|---|---|
| 1 | Which LOB type is an external LOB? | B. BFILE |
| 2 | Which function initialises a CLOB column to an empty locator? | C. EMPTY_CLOB |
| 3 | Which command creates an alias for a physical directory used by BFILE? | D. CREATE DIRECTORY |
| 4 | Which DBMS_LOB function returns the length of a LOB? | A. GETLENGTH |
| 5 | When a row with a BFILE column is deleted, what is removed? | B. Only the locator |
Chapter-22 | Object Types
Read the notes (PDF), explanation & take the MCQ test »
MCQ Answer Key
| No. | Question | Correct Answer |
|---|---|---|
| 1 | Which command is used to define the methods of an object type? | C. CREATE TYPE BODY |
| 2 | Which privilege is applicable to object types? | D. EXECUTE |
| 3 | What is the return type of an ORDER MEMBER function? | A. NUMBER |
| 4 | Which operator returns the object that a REF points to? | B. DEREF |
| 5 | If an object type has neither a MAP nor an ORDER method, which comparisons are allowed? | C. Only equality and inequality |
Chapter-23 | VARRAY and Nested Table
Read the notes (PDF), explanation & take the MCQ test »
MCQ Answer Key
| No. | Question | Correct Answer |
|---|---|---|
| 1 | Which collection method removes the element at a given position? | D. DELETE(n) |
| 2 | Which command is used to create a VARRAY type? | A. CREATE TYPE … AS VARRAY(n) OF type |
| 3 | Where is the data of a nested-table column stored? | B. In a separate storage table named by NESTED TABLE … STORE AS |
| 4 | For a nested table, what does the LIMIT method return? | C. NULL |
| 5 | Which operator lets SQL treat a nested-table column as a set of rows? | D. TABLE |
Chapter-24 | Native Dynamic SQL
Read the notes (PDF), explanation & take the MCQ test »
MCQ Answer Key
| No. | Question | Correct Answer |
|---|---|---|
| 1 | Which option is used to pass bind arguments to placeholders? | A. USING |
| 2 | Which release introduced native dynamic SQL? | B. Oracle8i |
| 3 | Placeholders and bind arguments are matched by: | C. Position |
| 4 | Which statement executes a multi-row query dynamically? | D. OPEN cursor_variable FOR dynamic_string |
| 5 | Which of the following is INVALID? | A. execute immediate 'drop table :t' using tname; |