Oracle Database Fundamentals - DDL, Constraints, and Memory Structures

Tests knowledge of Oracle database commands, constraints, data types, and memory structures including PGA and SGA

18 Questions Published

Questions

Question 1 True/False

You can use a column alias in order by clause

  1. True
  2. False
Question 2 True/False

You can sort query results by more than one column. The sort limit is the number of columns in the given table.

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

SGA stands for

  1. SYSTEM GLOBAL AREA
  2. SYNCHRONIZED GLOBAL AREA
  3. SORT GLOBAL AREA
  4. SCALABLE GLOBAL AREA
Question 4 True/False

DATAFILE is a physical component of the DATABASE

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

PGA stands for

  1. PRIMARY GLOBAL AREA
  2. PROGRAM GLOBAL AREA
  3. PRIME GLOBAL AREA
  4. PEAK GLOBAL AREA
Question 6 Multiple Choice (Multiple Answers)

Identify VALID data types. Choose all that apply.

  1. ROWID
  2. BFILE
  3. SHORT RAW
  4. VARCHAR2(size)
  5. LONG RAW
  6. POINTER
Question 7 Multiple Choice (Multiple Answers)

For CREATING a TABLE object, what are the pre-requisites? Choose all that apply

  1. A SCHEMA with CREATE SESSION system privilege
  2. CREATE SYNONYM system privilege
  3. A storage area with required access
  4. CREATE TABLE system privilege
  5. CREATE INDEX system privilege
Question 8 Multiple Choice (Multiple Answers)

Identify the prefix of data dictionary views. Choose all that apply.

  1. ALL_
  2. USER_
  3. ORACLE_
  4. DBA_
  5. SCHEMA_
Question 9 Multiple Choice (Multiple Answers)

Specify the actions, one can perform with ALTER TABLE statement. Choose all that apply.

  1. UPDATE the records in the table
  2. MODIFY the data type of the column
  3. DROP the table column
  4. DEFINE a default value for the column
  5. DELETE the records in the table
  6. ADD a new column to the table
Question 10 Multiple Choice (Single Answer)

What is the key difference between TRUNCATE TABLE and DELETE FROM TABLE commands?

  1. TRUNCATE is DDL and DELETE is DML
  2. TRUNCATE is DML and DELETE is DDL
  3. TRUNCATE is DCL and DELETE is DML
  4. TRUNCATE is DML and DELETE is DCL
Question 11 Multiple Choice (Multiple Answers)

What is true about PRIMARY KEY? Choose all that apply

  1. Can be defined on a single column or multiple columns in the table.
  2. Can be defined only on a single column in the table.
  3. A UNIQUE index is automatically created once PRIMARY KEY is defined on the table.
  4. A NON-UNIQUE index is automatically created once PRIMARY KEY is defined on the table.
  5. NOT NULL constraint is implicitly enforced on the columns which are part of the PRIMARY KEY
  6. NULL constraint is implicitly enforced on the columns which are part of the PRIMARY KEY
Question 12 Multiple Choice (Multiple Answers)

What is true about UNIQUE KEY? Choose all that apply

  1. Can be defined only on a single column in the table.
  2. Can be defined on a single column or multiple columns in the table.
  3. A UNIQUE index is automatically created once UNIQUE KEY is defined on the table.
  4. A NON-UNIQUE index is automatically created once UNIQUE KEY is defined on the table.
  5. NULL values are NOT acceptable on the columns, which are part of UNIQUE KEY
  6. NULL values are acceptable, which are part of UNIQUE KEY
Question 13 Multiple Choice (Multiple Answers)

What is true about NOT NULL constraint? Choose all that apply

  1. Must be defined as a part of column definition
  2. It's NOT necessary to define it as a part of column definition
  3. Can be applied to the column which may hold UNKNOWN data
  4. Can NOT be applied to the column which may hold UNKNOWN data
Question 14 Multiple Choice (Multiple Answers)

What is true about CHECK constraint? Choose all that apply

  1. Must evaluate to BOOLEAN expression
  2. Not necessarily evaluates to BOOLEAN expression
  3. Requires that a column (or combination of columns) satisfy a condition for every row in the table excluding nulls.
  4. Columns which, are part of CHECK constraint, may accept NULL values
  5. Columns which, are part of CHECK constraint, can NOT accept NULL values
Question 15 Multiple Choice (Multiple Answers)

What is true about FOREIGN KEY constraint? Choose all that apply

  1. Defines relations between the tables
  2. The table that includes the foreign key is called the dependent or child table
  3. The table that includes the foreign key is called the parent table
  4. The table that is referenced by the foreign key is called the parent table
  5. The table that is referenced by the foreign key is called the dependent or child table
Question 16 True/False

NOT NULL constraint can be added using MODIFY clause of ALTER TABLE statement

  1. True
  2. False
Question 17 True/False

Using ALTER TABLE command one can only ADD or DROP a constraint, but NOT MODIFY it's structure.

  1. True
  2. False
Question 18 True/False

Using INSERT command only ONE record can be inserted during each execution.

  1. True
  2. False