Oracle PL/SQL and SQL Fundamentals

Test your knowledge of Oracle database concepts including PL/SQL programming, SQL queries, data types, and database objects like tables, views, indexes, and sequences.

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which Oracle access method is the fastest way for Oracle to retrieve a single row?

  1. Primary key access
  2. Access via unique index
  3. Table access by ROWID
  4. Full table scan
Question 2 True/False

Tables, views , incexes are all part of database objects

  1. True
  2. False
Question 3 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. CASCADE
  4. TRUNCATE
Question 4 Multiple Choice (Single Answer)

Which character function can be used to return a specified portion of a character string?

  1. INSTR
  2. SUBSTRING
  3. SUBSTR
  4. POS
Question 5 Multiple Choice (Single Answer)

AUTONOMUS_TRANSACTION is a

  1. Programming technique
  2. Automatically used in all prpgramme
  3. PL/SQL compiler directive
  4. All of the above
Question 6 Multiple Choice (Single Answer)

PACK_MESSAGE is used in

  1. queeing
  2. piping
  3. Autonomus transaction
  4. Host I/O
Question 7 Multiple Choice (Single Answer)

What is the command used to encrypt a PL/SQL application

  1. ENCRYPT
  2. DECRYPT
  3. WRAP
  4. UNWRAP
Question 8 Multiple Choice (Single Answer)

Which is true for ROWID% data type

  1. Binary data upto 4GB
  2. Character data upto 4 GB
  3. A hexadecimal string representing the unique address of a row in its table
  4. Binary data stored in an external file
Question 9 Multiple Choice (Single Answer)

SELECT ROUND(TRUNC(MOD(1600,10),-1),2)

  1. ERROR
  2. 0
  3. 1
  4. 0.00
Question 10 Multiple Choice (Single Answer)

What can you create to restrict user access to a table?

  1. Index
  2. synonym
  3. view
  4. trigger
Question 11 Multiple Choice (Single Answer)

What can be used in a SELECT statement to obtain search criteria for the SELECT statement?

  1. HAVING clause
  2. ORDER BY clause
  3. Subquery
  4. GROUP BY clause
Question 12 Multiple Choice (Single Answer)

What database object is used to increase performance for accessing data within a database?

  1. Roles
  2. Sequences
  3. Synonyms
  4. Index
Question 13 Multiple Choice (Single Answer)

Which clause of the CREATE SEQUENCE statement will cause the sequence to continue to generate numbers even after the maximum limit is reached?

  1. MAXVALUE
  2. MINVALUE
  3. CYCLE
  4. INCREMENT BY
Question 14 Multiple Choice (Single Answer)

Which datatypes are alphanumeric?

  1. Number
  2. Blob
  3. Char
  4. Raw
Question 15 Multiple Choice (Single Answer)

How do you execute an anonymous block within SQL*Plus?

  1. exec command
  2. / command
  3. execute command
  4. None of these
Question 16 Multiple Choice (Single Answer)

Where can NOT a subquery be used within a SQL statement that is in a PL/SQL block?

  1. WHERE
  2. FROM
  3. INSERT
  4. UPDATE
Question 17 Multiple Choice (Multiple Answers)

What tasks are you able to perform within a PL/SQL block?

  1. DELETE
  2. CREATE
  3. UPDATE
  4. ALTER
Question 18 Multiple Choice (Single Answer)

Which database model allows you to store and execute a PL/SQL program as part of an object?

  1. Hierarchical
  2. Relational
  3. Object Relational
  4. Network
Question 19 Multiple Choice (Single Answer)

What data dictionary view will display information about the columns in the database that have constraints?

  1. USER_CONSTRAINTS
  2. USER_CONS_COLUMNS
  3. DBA_CONSTRAINTS
  4. DBA_TABLE
Question 20 Multiple Choice (Single Answer)

What PL/SQL control structure is known as an IF-THEN statement?

  1. Conditional
  2. Sequential
  3. Iterative
  4. Loop