Oracle Database and PL/SQL Programming

Test your knowledge of Oracle database concepts, PL/SQL programming, SQL functions, triggers, stored procedures, and database architecture.

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which company coined the word Data Warehouse Appliance?

  1. Teradata
  2. DATAllegro
  3. Netezza
  4. Greenplum
Question 2 Multiple Choice (Single Answer)

Name the DW database recently released by Oracle in co-operation with HP -

  1. Petadata
  2. Exadata
  3. Megadb
  4. OracleMPP
Question 3 Multiple Choice (Multiple Answers)

Choose the 3 Massively Parallel Processing (MPP) architecture based DBMS below -

  1. Teradata
  2. Netezza
  3. DATAllegro
  4. Sybase IQ
Question 4 Multiple Choice (Multiple Answers)

SELECT LAST_DAY('15-MAR-00') FROM DUAL.

  1. 30-MAR-00
  2. 31-MAR-00
  3. 15-MAR-00
  4. THERE IS NO FUNCTION LIKE LAST_DAY
Question 5 Multiple Choice (Multiple Answers)

What is the result of this: initsmall("GANESH");

  1. ganesh
  2. gANESH
  3. Ganesh
  4. THERE IS NO FUNCTION LIKE initsmall();
Question 6 Multiple Choice (Multiple Answers)

What is the result of this: initcap("gadde");

  1. GADDE
  2. Gadde
  3. gADDE
  4. THERE IS NO FUNCTION LIKE initcap();
Question 7 Multiple Choice (Multiple Answers)

What is the result of this: initcap("gadde");

  1. GADDE
  2. Gadde
  3. gADDE
  4. THERE IS NO FUNCTION LIKE initcap();
Question 8 Multiple Choice (Multiple Answers)

create global temporary table employee (eno number, ename varchar(20));

  1. Error generates
  2. Temporary table is created with name "employee" and it get removed at the end of transaction.
  3. similar to normally creating table.
  4. created in database permenantly
Question 9 Multiple Choice (Multiple Answers)

This is the name of the database object containing information about all comments on table....

  1. USER_COMMENTS
  2. USER_ALL_COMMENTS
  3. USER_TAB_ALL
  4. USER_TAB_COMMENTS
Question 10 Multiple Choice (Multiple Answers)

CREATE TABLE Persons( P_Id int NOT NULL AUTO_INCREMENT=100, LastName varchar(255) NOT NULL);

  1. When trying to enter NULL value for P_Id then 100 will be placed there.
  2. P_Id value starts from 1 and then it is auto incremented by value 1 upto 100.
  3. Generates error as there is no constraint like "AUTO_GENERATE".
  4. P_Id value starts from 100 and then it is auto incremented by value 1.
Question 11 Multiple Choice (Multiple Answers)

what is true about function now();

  1. Returns current system date and time.
  2. Returns only current time
  3. Returns only current date.
  4. There is no function like now();
Question 12 Multiple Choice (Multiple Answers)

select round(1601.916718 -3) from dual.

  1. 1601.916
  2. 2000
  3. 1598
  4. 1598.916
Question 13 Multiple Choice (Multiple Answers)

REPLACE('GEORGE' 'GE' NULL);

  1. NULLORNULL
  2. GEGE
  3. OR
  4. 2
Question 14 Multiple Choice (Single Answer)

What are the Sql Cursor Attributes in Pl/sql?

  1. SQL%ROWCOUNT, SQL%ISFOUND,SQL%NOTFOUND,SQL%ISOPEN
  2. SQL%ROWCOUNT, SQL%FOUND,SQL%NOTFOUND,SQL%OPEN
  3. SQL%ROWCOUNT, SQL%FOUND,SQL%NOTFOUND,SQL%ISOPEN
  4. All of the above
Question 15 Multiple Choice (Single Answer)

How Many minimum lines of code required to compile the Pl/Sql block successfully?

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

Which statement removes the function?

  1. DROP gen_email_name;
  2. REMOVE gen_email_name;
  3. DELETE gen_email_name;
  4. DROP FUNCTION gen_eamil_name;
Question 17 Multiple Choice (Single Answer)

Is it possible to use Transaction control Statements such a ROLLBACK or COMMIT in Database Trigger ?

  1. Yes
  2. No
  3. 1 & 2
  4. None of the above
Question 18 Multiple Choice (Single Answer)

What is true about stored procedures?

  1. A stored procedure uses the DELCLARE keyword in the procedure specification to declare formal parameters
  2. A stored procedure is named PL/SQL block with at least one parameter declaration in the procedure specification.
  3. A stored procedure must have at least one executable statement in the procedure body.
  4. A stored procedure uses the DECLARE keyword in the procedure body to declare formal parameters.
Question 19 Multiple Choice (Single Answer)

How many types of database triggers can be specified on a table ?

  1. 14
  2. 10
  3. 12
  4. None of the above
Question 20 Multiple Choice (Single Answer)

The OLD and NEW qualifiers can be used in which type of trigger?

  1. Row level DML trigger
  2. Row level system trigger
  3. Statement level DML trigger
  4. Row level application trigger