Oracle Database and PL/SQL Concepts

Test your knowledge of Oracle database concepts including SQL queries, transactions, triggers, constraints, data types, and PL/SQL programming

20 Questions Published

Questions

Question 1 Multiple Choice (Multiple Answers)

A Database Procedure is stored in the Database

  1. In compiled form
  2. As source code
  3. Both A & B
  4. Not stored
Question 2 Multiple Choice (Multiple Answers)

If an UNIQUE KEY constraint on DATE column is created, will it accept the rows that are inserted with SYSDATE?

  1. will
  2. won't
  3. sometimes possible
  4. None of the above
Question 3 Multiple Choice (Single Answer)

What is the Result of the following 'AXA'||NULL||'US' ?

  1. Error
  2. NULL
  3. AXA US
  4. AXAUS
Question 4 Multiple Choice (Single Answer)

Use these data for the following Questions EMPNO ENAME SAL A822 RAMASWAMY 3500 A812 NARAYAN 5000 A973 UMESH 2850 A500 BALAJI 5750 Select SAL from EMP E1 where 3 > ( Select count(*) from Emp E2 where E1.SAL > E2.SAL ) will retrieve

  1. 3500,5000,2850
  2. 5000,2850
  3. 2850,5750
  4. 5000,5750
Question 5 Multiple Choice (Single Answer)

What is a trigger?

  1. A piece of logic written in PL/SQL
  2. Executed at the arrival of a SQL event
  3. Both A & B
  4. None of the above
Question 6 Multiple Choice (Single Answer)

A Transaction ends

  1. Only when it is Committed
  2. Only when it is Rolled back
  3. When it is Committed or Rolled back
  4. None of the above
Question 7 Multiple Choice (Single Answer)

What are the different events in Triggers?

  1. Define, Create
  2. Insert, Update, Delete
  3. Drop, Comment
  4. All of the above
Question 8 Multiple Choice (Single Answer)

Use these data for the following Questions EMPNO ENAME SAL E100 John 3250 E200 Praveen 2000 E300 Mahesh E400 Prasanth 5500 E500 Vikram 6650 Select count (sal) from Emp will retrieve

  1. 1
  2. 0
  3. 3
  4. 4
  5. None of the above
Question 9 Multiple Choice (Single Answer)

The Data Manipulation Language statements are

  1. INSERT
  2. UPDATE
  3. SELECT
  4. All of the above
Question 10 Multiple Choice (Multiple Answers)

Declare a number := 5; b number := null; c number := 10; Begin if a > b AND a < c then a := c * a; end if; End; What will be the value of 'a' after execution?

  1. 50
  2. NULL
  3. 5
  4. None of the above
Question 11 Multiple Choice (Multiple Answers)

Find the ODD Datatype out

  1. VARCHAR2
  2. RECORD
  3. BOOLEAN
  4. RAW
Question 12 Multiple Choice (Multiple Answers)

A Database Procedure is stored in the Database

  1. In compiled form
  2. As source code
  3. Both A & B
  4. Not stored
Question 13 Multiple Choice (Multiple Answers)

If an UNIQUE KEY constraint on DATE column is created, will it accept the rows that are inserted with SYSDATE?

  1. will
  2. won't
  3. sometimes possible
  4. None of the above
Question 14 Multiple Choice (Single Answer)

What is the Result of the following 'AXA'||NULL||'US' ?

  1. Error
  2. NULL
  3. AXA US
  4. AXAUS
Question 15 Multiple Choice (Single Answer)

Use these data for the following Questions EMPNO ENAME SAL A822 RAMASWAMY 3500 A812 NARAYAN 5000 A973 UMESH 2850 A500 BALAJI 5750 Select SAL from EMP E1 where 3 > ( Select count(*) from Emp E2 where E1.SAL > E2.SAL ) will retrieve

  1. 3500,5000,2850
  2. 5000,2850
  3. 2850,5750
  4. 5000,5750
Question 16 Multiple Choice (Single Answer)

What is a trigger?

  1. A piece of logic written in PL/SQL
  2. Executed at the arrival of a SQL event
  3. Both A & B
  4. None of the above
Question 17 Multiple Choice (Single Answer)

A Transaction ends

  1. Only when it is Committed
  2. Only when it is Rolled back
  3. When it is Committed or Rolled back
  4. None of the above
Question 18 Multiple Choice (Single Answer)

In "Select 1 from dual;" who is the owner of Dual table?

  1. scott
  2. john
  3. sys
  4. system
Question 19 True/False

Dropping a table causes its synonym to drop.

  1. True
  2. False
Question 20 True/False

can we rename a Synonym?

  1. True
  2. False