Oracle Database and SQL Fundamentals

Test your knowledge of Oracle database concepts including table structure, indexes, constraints, views, SQL statements, and PL/SQL programming.

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

What is a CPK

  1. PK
  2. CPK
  3. FK
  4. UK
Question 2 Multiple Choice (Single Answer)

What is a U K

  1. FK
  2. CPK
  3. UK
  4. PK
Question 3 Multiple Choice (Single Answer)

You are developing a PL/SQL block designed for bulk data operations. When attemping to store table data for multiple rows in a PL/SQL variable, which one of the following choices identifies the mechanism best suited for this task (choose one)?

  1. Cursor
  2. Varchar2
  3. PL/SQL table
  4. Table of records
  5. Record
Question 4 Multiple Choice (Single Answer)

What is the maximum number of sub programs allowed inside a package

  1. 12
  2. 256
  3. 1024
  4. Unlimited
Question 5 Multiple Choice (Single Answer)

What is the maximum parsed size of the PL/SQL block

  1. 64K
  2. 128K
  3. 256K
  4. Unlimited
Question 6 Multiple Choice (Single Answer)

What command will you use to encrypt a PL/SQL block

  1. COMPILE DEBUG
  2. WRAP
  3. ENCRYPT
  4. COMPILE
Question 7 Multiple Choice (Single Answer)

how many distinct triggers can be created on the table

  1. 12
  2. 4
  3. 2
  4. Unlimited
Question 8 Multiple Choice (Single Answer)

Maximum number of coulmns allowed in a table

  1. 256
  2. 128
  3. 512
  4. 1000
Question 9 Multiple Choice (Single Answer)

Maximum number of columns allowed inside an index

  1. 12
  2. 256
  3. 128
  4. 32
Question 10 Multiple Choice (Single Answer)

Which of the following is DDL Statement

  1. Truncate
  2. Merge
  3. Revoke
  4. Grant
Question 11 Multiple Choice (Single Answer)

Select the incorrect Oracle Select Statement

  1. select distinct * from T1
  2. select C1 from T1 order by C2
  3. select distinct C1 from T1
  4. select 12*14 from T1
  5. select C1 AS 'column1",C1 AS 'column2',C2 AS 'column1' from T1.
Question 12 Multiple Choice (Single Answer)

Which of the following is a DML Statement

  1. Truncate
  2. Merge
  3. Revoke
  4. Grant
Question 13 True/False

We can sort by a column without present in the SELECT List

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

Select Incorrect Oracle Group Function

  1. floor
  2. sum
  3. variance
  4. stddev
Question 15 Multiple Choice (Single Answer)

which of the following views identify the status of the view in the database

  1. USER_VIEWS
  2. USER_TAB_COLUMNS
  3. USER_TABLES
  4. USER_OBJECTS
Question 16 True/False

ROWID is a column datatype

  1. True
  2. False
Question 17 True/False

we can select while LOCk is on a rows

  1. True
  2. False
Question 18 True/False

reference to sysdate,nextval,currval is allowed on constraint definition

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

Which index is automatically created if you enable a UNIQUE KEY or PRIMARY KEY constraint

  1. cluster index
  2. simple index
  3. unique index
  4. functional index
Question 20 True/False

We can insert a new column in between two existing columns without altering the table.

  1. True
  2. False