PL/SQL and DB2 Database Concepts

Covers Oracle PL/SQL exception handling and DB2 database administration topics including tablespaces, referential integrity, query optimization, and authorization

20 Questions Published

Questions

Question 1 True/False

Is any modification in logical level should not affect the view level?

  1. True
  2. False
Question 2 Multiple Choice (Multiple Answers)

select the valid Definition Languages in DBMS:

  1. Data Definition Language
  2. View Definition Language
  3. Query Definition Language
  4. Storage Definition Language
Question 3 True/False

Low-level instruction generated by compiler are executed by DDL Interpreter.(True/False)

  1. True
  2. False
Question 4 Multiple Choice (Multiple Answers)

Which one of the following does not help to maintain referential integrity?

  1. Unique constraints
  2. Primary keys
  3. Cascading actions
  4. Foreign keys
Question 5 Multiple Choice (Multiple Answers)

When is the authorization check on DB2 objects done?

  1. at BIND time
  2. at RUN time
  3. at Execution time
  4. at End time
Question 6 Multiple Choice (Multiple Answers)

What is a synonym?

  1. A View of a table
  2. an alternate name for a table
  3. A Secondary table
  4. A Primary table
Question 7 Multiple Choice (Multiple Answers)

What is index cardinality?

  1. Number of distinct values a column contain
  2. Number of distinct values a column or columns contain
  3. Number of distinct values a row contain
  4. Number of distinct values a row or rows contain
Question 8 Multiple Choice (Multiple Answers)

What is filter factor?

  1. One divided by the number of distinct values of a column.
  2. Zero divided by the number of distinct values of a column.
  3. Zero divided by the number of distinct values of a row.
  4. One divided by the number of distinct values of a Rrow.
Question 9 Multiple Choice (Multiple Answers)

What is referential integrity?

  1. The relation of the primary key of a base table with foreign key of the reference table is known as referential integriety.
  2. The relation of the secondary key of a base table with foreign key of the reference table is known as referential integriety.
  3. The relation of the primary key of a secondary table with foreign key of the reference table is known as referential integriety.
  4. The relation of the primary key of a base table with index key of the reference table is known as referential integriety.
Question 10 Multiple Choice (Multiple Answers)

What is FREEPAGE and PCTFREE in TABLESPACE creation?

  1. PCTFREE: percentage of each page to be left free and FREEPAGE: Number of pages to be loaded with data between each free page.
  2. PCTFREE: percentage of each page to be loaded with data and FREEPAGE: Number of pages to be loaded with data between each free page.
  3. PCTFREE: percentage of each page to be left free and FREEPAGE: Number of pages to be left free with data between each loaded page.
  4. PCTFREE: percentage of each page to be loaded with data between each free page and FREEPAGE: Number of pages to be left free.
Question 11 Multiple Choice (Multiple Answers)

What are the 4 environments which can access DB2?

  1. TSO and CICS
  2. IMS and BATCH
  3. TSO, CICS, IMS and DB2
  4. TSO, CICS, IMS and VSAM
Question 12 Multiple Choice (Multiple Answers)

When will you chose to run RUNSTATS?

  1. After a load
  2. After mass updates
  3. After a deletes
  4. After a inserts
Question 13 True/False

Each PL/SQL block can have its own exception section

  1. True
  2. False
Question 14 Multiple Choice (Multiple Answers)

PL/SQL Exception message consists of

  1. Type of Exception
  2. Finally block
  3. An Error Code
  4. A message
Question 15 Multiple Choice (Multiple Answers)

Types of PL/SQL exceptions are

  1. Named System Exceptions
  2. Unnamed System Exceptions
  3. Implicit Exceptions
  4. Explicit Exceptions
  5. User-defined Exceptions
Question 16 Multiple Choice (Single Answer)

Named system exceptions are:

  1. Not Declared explicitly
  2. Raised implicitly when a predefined Oracle error occurs
  3. caught by referencing the standard name within an exception-handling routine
  4. All of the above
  5. None of the above
Question 17 True/False

To handle the exception explicity, they must be declared using Pragma EXCEPTION_INIT

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

When you declare your own exception, you must ____ it explicitly

  1. DECLARE
  2. RAISE
  3. PRAGMA
  4. INITIATE
Question 19 Multiple Choice (Single Answer)

Run-time errors arise from

  1. Hardware failures
  2. Design faults
  3. Coding mistakes
  4. None of the above
  5. All of the above
Question 20 Multiple Choice (Single Answer)

___ exception is raised ___ whenever your PL/SQL program violates an Oracle rule or exceeds a system-dependent limit

  1. internal, explicitly
  2. internal, implicitly
  3. user-defined, explicitly
  4. user-defined, implicitly