InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What are exceptions in PL SQL? |
|
Answer» In PL/SQL, an exception is technically an error CONDITION during the execution of a program. There are two TYPES of limitations in PL/SQL, NAMELY:
|
|
| 2. |
Why indexing is used in PL SQL? |
|
Answer» Nowadays, Databases are getting COLOSSAL, and there is a large amount of DATA to go through while finding anything in particular when required. Indexing in PL/SQL helps to speed up the process of finding a specific PIECE of data by RETURNING a small portion of table rows in order to make the process of accessing data accurate and faster. |
|
| 3. |
What are the differences between stored procedure and functions? |
|||||||||||||||||||||||||||||||||
Answer»
|
||||||||||||||||||||||||||||||||||
| 4. |
Why do we need cursor in PL SQL? |
|
Answer» In PL/SQL a cursor is needed for the FOLLOWING reasons: |
|
| 5. |
What is scalar data type in PL SQL? |
|
Answer» A SCALAR data type in PL/SQL is one in which there are single VALUES with no internal components such as DATE, BOOLEAN, or NUMBER. |
|
| 6. |
How are multi line comments defined in PL SQL? |
|
Answer» To define a multi-line comment style in PLSQL, there are two steps. |
|
| 7. |
What are parameter modes in PL SQL functions and procedures? |
|
Answer» In PL/SQL, procedures support all the parameter MODES listed below, whereas, functions only support the IN parameter mode. Here are all the parameter modes in PL/SQL for procedures and functions:
|
|
| 8. |
What is the difference between constraints and triggers? |
|||||||||||||||
Answer»
|
||||||||||||||||
| 9. |
What are the difference between syntax and runtime errors in pl/sql? |
|||||||||||||||
Answer»
|
||||||||||||||||
| 10. |
What is function overloading in PL SQL? |
|
Answer» The Function overloading in PL/SQL is based on the CONCEPT of polymorphism. It actually REFERS to the CAPABILITY of any programming method to perform multiple operations based on the input data type and the CONTEXT in which the PROCESS, i.e., function, is used. |
|
| 11. |
What is PGA and UGA? |
|
Answer» SERVER processes assigned in a CLIENT program to be used as a memory for PRIVATE data are known as Process Global Area. UGA or User Global Area is used to retain data during a session database such as PACKAGE Variables and Private SQL areas. |
|
| 12. |
What is the difference between Case and decode? |
||||||
Answer»
|
|||||||
| 13. |
What is attribute indicator in PL SQL? |
|
Answer» Attributes in PL/SQL are properties which let the USER reference the DATA type and structure of a PRESENT item without having to REPEAT its definition. Attributes are mainly used for EASY maintenance of database tables. |
|
| 14. |
What is Savepoint in PL SQL? |
|
Answer» In, PL/SQL, a SAVEPOINT is a TCL(Transition Control Language), statement is used to create a breakpoint during a specific/current transaction at a PARTICULAR location. A Savepoint is basically a PIT stop for transactions and ROLLBACK can be used to ERASE any PART of a transaction. |
|
| 15. |
What is difference between commit and rollback? |
||||||||||
Answer»
|
|||||||||||
| 16. |
Why packages are used in PL SQL? |
|
Answer» In PL/SQL modules, packages are used to encapsulate LOGICALLY related DATA types, constants, variables, subprograms, CURSORS, and any other exceptions. Each package can be used to simplify the level of understanding inside an interface using SIMPLE, clear and well-defined functions within. |
|
| 17. |
Why do we use Rowtype in PL SQL? |
|
Answer» In PL/SQL, Rowtype is used to PROVIDE a RECORD type/data type in the form of ROWS in a database. Variables declared using the %ROWTYPE attribute are CONSIDERED to be declared using a data type name. 4. How many types of triggers are there in PL SQL?In PL/SQL, there are two types of triggers:
|
|
| 18. |
What is delimiter in PL SQL? |
|
Answer» DELIMITER in PL/SQL is a simple/compound symbol. In PL/SQL, DELIMITERS are used to represent ARITHMETIC operations like addition and subtraction. |
|
| 19. |
What is the difference between SQL and PL SQL? |
||||||||||||
Answer»
|
|||||||||||||