Database Concepts and SQL Quiz

Test your knowledge of database concepts including SQL commands, data types, cursors, storage management, transactions, and database administration across Oracle and DB2 systems.

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which command will delete all data from a table and will not write to the rollback segment?

  1. DROP
  2. DELETE
  3. REMOVE
  4. TRUNCATE
Question 2 Multiple Choice (Single Answer)

What is the default behaviour of OUT parameter mode in PL/SQL

  1. By value
  2. By reference
  3. By type
  4. none of the above
Question 3 Multiple Choice (Single Answer)

What is RAC

  1. Real abstarct clusters
  2. Real application cursors
  3. Real application clusters
  4. none of the above
Question 4 Multiple Choice (Single Answer)

One Terabyte equals to

  1. 10 ^ 6
  2. 10 ^ 9
  3. 10 ^ 12
  4. 10 ^ 15
Question 5 True/False

Absence of value is NULL

  1. True
  2. False
Question 6 True/False

Predefined, stored set of SQL statements is called Macro

  1. True
  2. False
Question 7 True/False

Parsing engine Manages and retrieves data from disk storage

  1. True
  2. False
Question 8 True/False

A user will always have a password

  1. True
  2. False
Question 9 True/False

The output of the hashing algorithm is called the hash synonyms

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

MAX. NO OF ROWS PER PAGE?

  1. 127
  2. 136
  3. 100
  4. 38
Question 11 Multiple Choice (Single Answer)

What is the size of a data page?

  1. 5K to 10K
  2. 4K to 8K
  3. 4K to 10K
  4. 3K to 9K
Question 12 Multiple Choice (Single Answer)

What is the maximum number of tables that can be stored on a Partitioned Table Space?

  1. TWO
  2. ONE
  3. FIVE
  4. EIGHT
Question 13 Multiple Choice (Single Answer)

What is the maximum number of tables that can be joined?

  1. Twenty
  2. Eight
  3. Fifteen
  4. Six
Question 14 True/False

Can I use DB2 Stored Procedures with Debug Tool?

  1. True
  2. False
Question 15 True/False

When you COMMIT, is the cursor closed?

  1. True
  2. False
Question 16 True/False

Is DECLARE CURSOR Executable?

  1. True
  2. False
Question 17 True/False

Can you have more than one cursor open at any one time in a program?

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

What is the Physical Storage Length of TIMESTAMP DB2 data type?

  1. 10 Bytes
  2. 3 Bytes
  3. 8 Bytes
  4. 15 Bytes
Question 19 Multiple Choice (Single Answer)

What is the Physical Storage Length of DATE DB2 data type?

  1. 2 Bytes
  2. 4 Bytes
  3. 8 Bytes
  4. 6 Bytes
Question 20 Multiple Choice (Single Answer)

What's the output select to_Date('2009-may-25','yyyymmdd') from dual

  1. 20090525
  2. Error
  3. 2009-may-25
  4. may-25-2009