Oracle PL/SQL Programming Quiz

Test your knowledge of Oracle database programming including PL/SQL procedures, triggers, cursors, packages, views, and collection types

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

How many LONG columns are allowed in a table ?

  1. 0
  2. 1
  3. 8
  4. Any number
Question 2 True/False

The data contained in Materialized view will be deleted automatically if the base tables will be deleted?

  1. True
  2. False
Question 3 Multiple Choice (Single Answer)

Find the error in the line for the query written below?

  1. Line 1
  2. Line 2
  3. Line 3
  4. Line 4
Question 4 True/False

Can a view be created be based on another view definition?

  1. True
  2. False
Question 5 True/False

Does the view exist if the table is dropped from the database?

  1. True
  2. False
Question 6 True/False

Is this a valid join condition written in the query below?

  1. True
  2. False
Question 7 True/False

Can we create index on Materialized Views?

  1. True
  2. False
Question 8 True/False

The RowID can be changed for the particular row whenever any insert or update operation is performed on the table?

  1. True
  2. False
Question 9 Multiple Choice (Single Answer)

Which of the following will be a better compilation methodology for a Procedure that involves only looping structures.

  1. NATIVE
  2. INTERPRETTED
  3. BOTH
  4. NONE
Question 10 Multiple Choice (Single Answer)

You can commit inside a trigger

  1. Yes, there is a workaround, but not directly
  2. yes directly
  3. no
  4. I dont Know
Question 11 Multiple Choice (Single Answer)

The keyword IS & AS in Procedure definition

  1. Both are same
  2. IS will only work
  3. AS will only work
  4. Both cannot be used in procedure definition
Question 12 True/False

Native dynamic sql works faster than dbms_sql

  1. True
  2. False
Question 13 Multiple Choice (Single Answer)

If a procedure that has overloaded procedures is called

  1. Normal Procedure
  2. Overloaded Procedure
  3. Packaged Procedure
  4. None of these
Question 14 Multiple Choice (Single Answer)

Which is performance friendly

  1. VARRAY
  2. PL/SQL TABLE
  3. NESTED TABLE
  4. NONE OF THESE
Question 15 True/False

ascii() function would display the corresponding ASCII code of the string enclosed

  1. True
  2. False
Question 16 Multiple Choice (Single Answer)

In Program overloading, You have two procedures with same name. which of the following will not work

  1. Having the data type different
  2. Just interchange the input parameter
  3. having the name diffferent
  4. both a & b
Question 17 Multiple Choice (Single Answer)

CURSOR FOR loop can be opened with the command...

  1. OPEN
  2. FETCH
  3. PARSE
  4. None, cursor for loops handle cursor opening implicitly
Question 18 True/False

In Oracle 9i, we can specify the FIRING order in which the that are created on a table

  1. True
  2. False
Question 19 Multiple Choice (Single Answer)

procedure to create a customized ERROR message

  1. RAISE_ERROR
  2. SQLERRM
  3. RAISE_APPLICATION_ERROR
  4. RAISE_SERVER_ERROR
Question 20 Multiple Choice (Single Answer)

Which of the following is false statement of the package.

  1. Dependency simplified
  2. Loaded once into memory , used subsequently
  3. Privileges to objects cannot be controlled
  4. Encapsulation of code logic