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.
Questions
Which Oracle access method is the fastest way for Oracle to retrieve a single row?
- Primary key access
- Access via unique index
- Table access by ROWID
- Full table scan
Tables, views , incexes are all part of database objects
- True
- False
Which command will delete all data from a table and will not write to the rollback segment?
- DROP
- DELETE
- CASCADE
- TRUNCATE
Which character function can be used to return a specified portion of a character string?
- INSTR
- SUBSTRING
- SUBSTR
- POS
AUTONOMUS_TRANSACTION is a
- Programming technique
- Automatically used in all prpgramme
- PL/SQL compiler directive
- All of the above
PACK_MESSAGE is used in
- queeing
- piping
- Autonomus transaction
- Host I/O
What is the command used to encrypt a PL/SQL application
- ENCRYPT
- DECRYPT
- WRAP
- UNWRAP
Which is true for ROWID% data type
- Binary data upto 4GB
- Character data upto 4 GB
- A hexadecimal string representing the unique address of a row in its table
- Binary data stored in an external file
SELECT ROUND(TRUNC(MOD(1600,10),-1),2)
- ERROR
- 0
- 1
- 0.00
What can you create to restrict user access to a table?
- Index
- synonym
- view
- trigger
What can be used in a SELECT statement to obtain search criteria for the SELECT statement?
- HAVING clause
- ORDER BY clause
- Subquery
- GROUP BY clause
What database object is used to increase performance for accessing data within a database?
- Roles
- Sequences
- Synonyms
- Index
Which clause of the CREATE SEQUENCE statement will cause the sequence to continue to generate numbers even after the maximum limit is reached?
- MAXVALUE
- MINVALUE
- CYCLE
- INCREMENT BY
Which datatypes are alphanumeric?
- Number
- Blob
- Char
- Raw
How do you execute an anonymous block within SQL*Plus?
- exec command
- / command
- execute command
- None of these
Where can NOT a subquery be used within a SQL statement that is in a PL/SQL block?
- WHERE
- FROM
- INSERT
- UPDATE
What tasks are you able to perform within a PL/SQL block?
- DELETE
- CREATE
- UPDATE
- ALTER
Which database model allows you to store and execute a PL/SQL program as part of an object?
- Hierarchical
- Relational
- Object Relational
- Network
What data dictionary view will display information about the columns in the database that have constraints?
- USER_CONSTRAINTS
- USER_CONS_COLUMNS
- DBA_CONSTRAINTS
- DBA_TABLE
What PL/SQL control structure is known as an IF-THEN statement?
- Conditional
- Sequential
- Iterative
- Loop