Oracle PLSQL Online Exam Series 3, Oracle PLSQL Online Test
Oracle PLSQL Online Exam Series 3, Oracle PLSQL Online Test
Finish Quiz
0 of 30 questions completed
Questions:
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
Information
Oracle PLSQL Online Exam Series 3, Oracle PLSQL Online Test Series 3, Free Oracle PLSQL Quiz, Online Oracle PLSQL, online Test Quiz 3. Oracle PLSQL Online Test 3 Question and Answers 2019. Oracle PLSQL online Test Quiz 3. Oracle PLSQL Test 3 Free Mock Test 2019. Oracle PLSQL Online Test-3 Question and Answers in PDF. The Oracle PLSQL online mock test paper is free for all students. Oracle PLSQL Online Test is very useful for exam preparation and getting for Rank. Oracle PLSQL Online Test 3 Question and Answers in English. Oracle PLSQL Online Test for topic via String Handling Mode. Here we are providing Oracle PLSQL Online Test in English Now Test your self for “Oracle PLSQL Online Test in English” Exam by using below quiz…
This paper has 30 questions.
Time allowed is 30 minutes.
The Oracle PLSQL Online Test is Very helpful for all students. Now Scroll down below n click on “Start Quiz” or “Start Test” and Test yourself.
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading...
You must sign in or sign up to start the quiz.
You have to finish following quiz, to start this quiz:
Results
0 of 30 questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 points, (0)
Average score |
|
Your score |
|
Categories
- Not categorized 0%
Pos. | Name | Entered on | Points | Result |
---|---|---|---|---|
Table is loading | ||||
No data available | ||||
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- Answered
- Review
-
Question 1 of 30
1. Question
What shows the following code?
create or replace trigger tr
before insert on emp for each row
begin
:new.ename := upper(:new.ename)
end;Correct
Incorrect
-
Question 2 of 30
2. Question
By whom performance will improve for loading the multiple objects into memory at once?
Correct
A package is a schema object that groups logically related PL/SQL types, items, and subprograms. Packages usually have two parts, a specification and a body, although sometimes the body is unnecessary. The specification (spec for short) is the interface to your applications; it declares the types, variables, constants, exceptions, cursors, and subprograms available for use. The body fully defines cursors and subprograms, and so implements the spec.
Incorrect
A package is a schema object that groups logically related PL/SQL types, items, and subprograms. Packages usually have two parts, a specification and a body, although sometimes the body is unnecessary. The specification (spec for short) is the interface to your applications; it declares the types, variables, constants, exceptions, cursors, and subprograms available for use. The body fully defines cursors and subprograms, and so implements the spec.
-
Question 3 of 30
3. Question
Can nested transaction roll backed in stored procedure?
Correct
Yes, nested transactions are rolled back in stored procedure. If a ROLLBACK WORK or ROLLBACK TRANSACTION statement without a transaction_name parameter is executed at any level of a set of nested transaction, it rolls back all of the nested transactions, including the outermost transaction.
Incorrect
Yes, nested transactions are rolled back in stored procedure. If a ROLLBACK WORK or ROLLBACK TRANSACTION statement without a transaction_name parameter is executed at any level of a set of nested transaction, it rolls back all of the nested transactions, including the outermost transaction.
-
Question 4 of 30
4. Question
Which type of cursor variable is used to return the number of rows affected by an insert, update, delete or select statement?
Correct
A cursor attribute that can be appended to the name of a cursor or cursor variable. When a cursor is opened, %ROWCOUNT is zeroed. Before the first fetch, cursor_name%ROWCOUNT returns 0. Thereafter, it returns the number of rows fetched so far. The number is incremented if the latest fetch returned a row.
Incorrect
A cursor attribute that can be appended to the name of a cursor or cursor variable. When a cursor is opened, %ROWCOUNT is zeroed. Before the first fetch, cursor_name%ROWCOUNT returns 0. Thereafter, it returns the number of rows fetched so far. The number is incremented if the latest fetch returned a row.
-
Question 5 of 30
5. Question
Which transaction sets properties like read-write access and isolation level?
Correct
The SET TRANSACTION statement begins a read-only or read-write transaction, establishes an isolation level, or assigns the current transaction to a specified rollback segment. Read-only transactions are useful for running multiple queries against one or more tables while other users update the same tables.
Incorrect
The SET TRANSACTION statement begins a read-only or read-write transaction, establishes an isolation level, or assigns the current transaction to a specified rollback segment. Read-only transactions are useful for running multiple queries against one or more tables while other users update the same tables.
-
Question 6 of 30
6. Question
Which command is used to mark the current point in the processing of a transaction?
Correct
SAVEPOINT savepoint_names marks the current point in the processing of a transaction. Savepoints let you rollback part of a transaction instead of the whole transaction.
Incorrect
SAVEPOINT savepoint_names marks the current point in the processing of a transaction. Savepoints let you rollback part of a transaction instead of the whole transaction.
-
Question 7 of 30
7. Question
What oracle does if one program fails in the middle of a transaction?
Correct
Oracle is transaction oriented; that is, it uses transactions to ensure data integrity. A transaction is a series of one or more logically related SQL statements, you define to accomplish some task. Oracle treats the series of SQL statements as a unit so that all the changes brought about by the statements are either committed (made permanent) or rolled back (undone) at the same time. If your application program fails in the middle of a transaction, the database is automatically restored to its former (pre-transaction) state.
Incorrect
Oracle is transaction oriented; that is, it uses transactions to ensure data integrity. A transaction is a series of one or more logically related SQL statements, you define to accomplish some task. Oracle treats the series of SQL statements as a unit so that all the changes brought about by the statements are either committed (made permanent) or rolled back (undone) at the same time. If your application program fails in the middle of a transaction, the database is automatically restored to its former (pre-transaction) state.
-
Question 8 of 30
8. Question
Initially to display pl/sql query result on screen which command is necessary to execute first?
Correct
PL/SQL program execution into the Oracle engine so we always required to get ‘set serveroutput on’ command to display in the screen otherwise result can’t be displayed.
Incorrect
PL/SQL program execution into the Oracle engine so we always required to get ‘set serveroutput on’ command to display in the screen otherwise result can’t be displayed.
-
Question 9 of 30
9. Question
Which package enables to display debugging information and output?
Correct
The DBMS_OUTPUT package enables you to send messages from stored procedures, packages, and triggers. The package is especially useful for displaying PL/SQL debugging information.
Incorrect
The DBMS_OUTPUT package enables you to send messages from stored procedures, packages, and triggers. The package is especially useful for displaying PL/SQL debugging information.
-
Question 10 of 30
10. Question
Which privilege is used to allow creating or altering a system trigger on the database?
Correct
To create a trigger on a pluggable database (PDB), you must be connected to that PDB and have the ADMINISTER DATABASE TRIGGER system privilege. ADMINISTER DATABASE TRIGGER is used to allow creating or altering a system trigger on the database.
Incorrect
To create a trigger on a pluggable database (PDB), you must be connected to that PDB and have the ADMINISTER DATABASE TRIGGER system privilege. ADMINISTER DATABASE TRIGGER is used to allow creating or altering a system trigger on the database.
-
Question 11 of 30
11. Question
Once trigger is created its source code is stored in which types of data dictionary view?
Correct
USER_TRIGGERS describes the triggers owned by the current user. Its columns (except for OWNER) are the same as those in ALL_TRIGGERS.
Incorrect
USER_TRIGGERS describes the triggers owned by the current user. Its columns (except for OWNER) are the same as those in ALL_TRIGGERS.
-
Question 12 of 30
12. Question
Which built-in package is used for intersession communication?
Correct
The DBMS_PIPE package provides services that allow Oracle sessions connected to the same instance to communicate messages with each other without the need for a COMMIT. Sessions use DBMS_PIPE programs to pack data into a message buffer and then send the message to a memory area in the Oracle shared pool (the pipe ), where another session can receive it and unpack the message data into local variables.
Incorrect
The DBMS_PIPE package provides services that allow Oracle sessions connected to the same instance to communicate messages with each other without the need for a COMMIT. Sessions use DBMS_PIPE programs to pack data into a message buffer and then send the message to a memory area in the Oracle shared pool (the pipe ), where another session can receive it and unpack the message data into local variables.
-
Question 13 of 30
13. Question
Object table is based on which type of constructor?
Correct
The system-defined constructor, also known as the attribute-value constructor, requires you to pass the constructor a value for each attribute of the type. If there is no constructor defined within a class, system will create its own constructor and assigns default values into the data fields. This constructor created by the system is known as system-defined constructor.
Incorrect
The system-defined constructor, also known as the attribute-value constructor, requires you to pass the constructor a value for each attribute of the type. If there is no constructor defined within a class, system will create its own constructor and assigns default values into the data fields. This constructor created by the system is known as system-defined constructor.
-
Question 14 of 30
14. Question
Which command is used to describe more complex picture of object table?
Correct
The SET DESCRIBE setting controls the depth to which an object such as an object type or object table is described. It is used to describe more complex picture of object table.
Syntax:
SET DESCRIBE [DEPTH {levels | ALL}] [LINENUM {ON | OFF}] [INDENT {ON | OFF}]where,
DEPTH {levels | ALL} : It specifies the depth to which to recursively describe an object. The default is to describe only the top level of columns, attributes, or parameters.LINENUM {ON | OFF} : It adds or removes line numbers from the object’s description. The default is LINENUM OFF.
INDENT {ON | OFF} : It indents nested descriptions. The default is INDENT ON.
Incorrect
The SET DESCRIBE setting controls the depth to which an object such as an object type or object table is described. It is used to describe more complex picture of object table.
Syntax:
SET DESCRIBE [DEPTH {levels | ALL}] [LINENUM {ON | OFF}] [INDENT {ON | OFF}]where,
DEPTH {levels | ALL} : It specifies the depth to which to recursively describe an object. The default is to describe only the top level of columns, attributes, or parameters.LINENUM {ON | OFF} : It adds or removes line numbers from the object’s description. The default is LINENUM OFF.
INDENT {ON | OFF} : It indents nested descriptions. The default is INDENT ON.
-
Question 15 of 30
15. Question
________________ attribute can be used to declare variables based on definitions of columns in table.
Correct
The %type attribute is used to declare variables based on definitions of columns in table. It provides the datatype of a variable or table column. This is particularly useful when declaring variables that will hold values of a table column.
Incorrect
The %type attribute is used to declare variables based on definitions of columns in table. It provides the datatype of a variable or table column. This is particularly useful when declaring variables that will hold values of a table column.
-
Question 16 of 30
16. Question
A record type is a programming structure that mirrors a ________________ in a table
Correct
A record type is a programming structure that mirrors a single row in a table. A record provides the means of defining a programming structure. A programming structure is a set of variable types. They are grouped together and managed as a unit. Record types map to a stored definition of the structure.
Incorrect
A record type is a programming structure that mirrors a single row in a table. A record provides the means of defining a programming structure. A programming structure is a set of variable types. They are grouped together and managed as a unit. Record types map to a stored definition of the structure.
-
Question 17 of 30
17. Question
What is the significance of MULTISET EXCEPT operator?
Correct
MULTISET EXCEPT returns the elements of the first set that are not present in the second set. MULTISET EXCEPT takes as arguments two nested tables and returns a nested table whose elements are in the first nested table but not in the second nested table. The two input nested tables must be of the same type, and the returned nested table is of the same type as well.
The ALL keyword instructs Oracle to return all elements in nested_table1 that are not in nested_table2. For example, if a particular element occurs m times in nested_table1 and n times in nested_table2, then the result will have (m-n) occurrences of the element if m >n and 0 occurrences if m
Incorrect
MULTISET EXCEPT returns the elements of the first set that are not present in the second set. MULTISET EXCEPT takes as arguments two nested tables and returns a nested table whose elements are in the first nested table but not in the second nested table. The two input nested tables must be of the same type, and the returned nested table is of the same type as well.
The ALL keyword instructs Oracle to return all elements in nested_table1 that are not in nested_table2. For example, if a particular element occurs m times in nested_table1 and n times in nested_table2, then the result will have (m-n) occurrences of the element if m >n and 0 occurrences if m
-
Question 18 of 30
18. Question
MAP and ORDER methods cannot be defined in the same object
Correct
The above statement is true. MAP and ORDER methods cannot be defined in the same object. Map methods return values that can be used for comparing and sorting. Generally, map methods perform calculations on the attributes of the object to produce the return value. Map methods are called automatically to evaluate such comparisons. Comparisons implied by the DISTINCT, GROUP BY, UNION, and ORDER BY clauses which require sorting of rows.
Order methods make direct one-to-one object comparisons. Unlike map methods, they cannot determine the order of a number of objects. They simply tell you that the current object is less than, equal to, or greater than the object, that it is being compared to, based on the criterion used. An order method is a function for an object (SELF), with one declared parameter that is an object of the same type. As with map methods, an order method, if one is defined, is called automatically whenever two objects of that type need to be compared. Order methods are useful where comparison semantics may be too complex to use a map method.
Incorrect
The above statement is true. MAP and ORDER methods cannot be defined in the same object. Map methods return values that can be used for comparing and sorting. Generally, map methods perform calculations on the attributes of the object to produce the return value. Map methods are called automatically to evaluate such comparisons. Comparisons implied by the DISTINCT, GROUP BY, UNION, and ORDER BY clauses which require sorting of rows.
Order methods make direct one-to-one object comparisons. Unlike map methods, they cannot determine the order of a number of objects. They simply tell you that the current object is less than, equal to, or greater than the object, that it is being compared to, based on the criterion used. An order method is a function for an object (SELF), with one declared parameter that is an object of the same type. As with map methods, an order method, if one is defined, is called automatically whenever two objects of that type need to be compared. Order methods are useful where comparison semantics may be too complex to use a map method.
-
Question 19 of 30
19. Question
How many ORDER methods are allowed per object?
Correct
Only one Order method is allowed per object. Order methods make direct one-to-one object comparisons. They cannot determine the order of a number of objects. They simply tell you that the current object is less than, equal to, or greater than the object, that it is being compared to, based on the criterion used.
Incorrect
Only one Order method is allowed per object. Order methods make direct one-to-one object comparisons. They cannot determine the order of a number of objects. They simply tell you that the current object is less than, equal to, or greater than the object, that it is being compared to, based on the criterion used.
-
Question 20 of 30
20. Question
MAP allows__________
Correct
MAP allows only SELF parameter. An object type can contain only one MAP method. It accepts the built-in parameter SELF and returns one of the following scalar types: DATE, NUMBER, VARCHAR2, or an ANSI SQL type such as CHARACTER or REAL.
Incorrect
MAP allows only SELF parameter. An object type can contain only one MAP method. It accepts the built-in parameter SELF and returns one of the following scalar types: DATE, NUMBER, VARCHAR2, or an ANSI SQL type such as CHARACTER or REAL.
-
Question 21 of 30
21. Question
ORDER method returns
Correct
ORDER method is one of the member methods used in the Oracle Object Relational Model to order variables of an object type. Based on a comparative condition it returns numeric values. It compares the values of two objects based on criteria you specify.
Incorrect
ORDER method is one of the member methods used in the Oracle Object Relational Model to order variables of an object type. Based on a comparative condition it returns numeric values. It compares the values of two objects based on criteria you specify.
-
Question 22 of 30
22. Question
MAP method returns_
Correct
MAP method returns scalar. This method will convert the entire set of attribute as a scalar type in a single operation.
Incorrect
MAP method returns scalar. This method will convert the entire set of attribute as a scalar type in a single operation.
-
Question 23 of 30
23. Question
_______________ indicates the percent of total LOB blocks that can contain old LOB data.
Correct
PCTVERSION indicates the percent of total LOB blocks that can contain old LOB data. PCTVERSION is the percentage of all used BasicFiles LOB data space that can be occupied by old versions of BasicFiles LOB data pages. As soon as old versions of BasicFiles LOB data pages start to occupy more than the PCTVERSION amount of used BasicFiles LOB space, Oracle Database tries to reclaim the old versions and reuse them. In other words, PCTVERSION is the percent of used BasicFiles LOB data blocks that is available for versioning old BasicFiles LOB data.
Incorrect
PCTVERSION indicates the percent of total LOB blocks that can contain old LOB data. PCTVERSION is the percentage of all used BasicFiles LOB data space that can be occupied by old versions of BasicFiles LOB data pages. As soon as old versions of BasicFiles LOB data pages start to occupy more than the PCTVERSION amount of used BasicFiles LOB space, Oracle Database tries to reclaim the old versions and reuse them. In other words, PCTVERSION is the percent of used BasicFiles LOB data blocks that is available for versioning old BasicFiles LOB data.
-
Question 24 of 30
24. Question
To display messages in PL/SQL , the ___________ should be set ________________.
Correct
To display messages in PL/SQL, the SERVEROUTPUT should be set ON. The SQL*Plus command ‘set serveroutput on’ causes SQL*Plus to retrieve and display the buffer.
Incorrect
To display messages in PL/SQL, the SERVEROUTPUT should be set ON. The SQL*Plus command ‘set serveroutput on’ causes SQL*Plus to retrieve and display the buffer.
-
Question 25 of 30
25. Question
In PLSQL , comment line begins with
Correct
PL/SQL supports two comment styles: single-line and multi-line. Single-line comments begin with a double hyphen (- -) anywhere on a line and extend to the end of the line. Multi-line comments begin with a slash-asterisk (/*), end with an asterisk-slash (*/), and can span multiple lines.
Incorrect
PL/SQL supports two comment styles: single-line and multi-line. Single-line comments begin with a double hyphen (- -) anywhere on a line and extend to the end of the line. Multi-line comments begin with a slash-asterisk (/*), end with an asterisk-slash (*/), and can span multiple lines.
-
Question 26 of 30
26. Question
________ ends the transaction and undoes the changes
Correct
Using ROLLBACK without the TO SAVEPOINT clause performs the following operations:
– Ends the transaction.
– Undoes all changes in the current transaction.
– Erases all savepoints in the transaction.
– Releases any transaction locks.
Specify the savepoint to which you want to roll back the current transaction. If you omit TO SAVEPOINT clause, the ROLLBACK statement rolls back the entire transaction.Incorrect
Using ROLLBACK without the TO SAVEPOINT clause performs the following operations:
– Ends the transaction.
– Undoes all changes in the current transaction.
– Erases all savepoints in the transaction.
– Releases any transaction locks.
Specify the savepoint to which you want to roll back the current transaction. If you omit TO SAVEPOINT clause, the ROLLBACK statement rolls back the entire transaction. -
Question 27 of 30
27. Question
The Oracle Engine uses a work area for its internal processing in order to execute an SQL statement is called as
Correct
The oracle engine uses a work area for its internal processing in order to execute an SQL statement. The work area is private to SQL’s statements and is called a cursor.
Incorrect
The oracle engine uses a work area for its internal processing in order to execute an SQL statement. The work area is private to SQL’s statements and is called a cursor.
-
Question 28 of 30
28. Question
_____ are created by default when DML statements like, INSERT, UPDATE, and DELETE statements are executed
Correct
Implicit cursors are created by default when DML statements like, INSERT, UPDATE, and DELETE statements are executed. They are also created when a SELECT statement that returns just one row is executed.
Incorrect
Implicit cursors are created by default when DML statements like, INSERT, UPDATE, and DELETE statements are executed. They are also created when a SELECT statement that returns just one row is executed.
-
Question 29 of 30
29. Question
Which of the following is/ are true about Explicit Cursors?
Correct
Explicit cursors must be created when you are executing a SELECT statement that returns more than one row. Even though the cursor stores multiple records, only one record can be processed at a time, which is called as current row. When you fetch a row the current row position moves to next row. Both implicit and explicit cursors have the same functionality, but they differ in the way they are accessed.
Incorrect
Explicit cursors must be created when you are executing a SELECT statement that returns more than one row. Even though the cursor stores multiple records, only one record can be processed at a time, which is called as current row. When you fetch a row the current row position moves to next row. Both implicit and explicit cursors have the same functionality, but they differ in the way they are accessed.
-
Question 30 of 30
30. Question
What is the significance of symbol in PL/SQL?
Correct
The range operator(..) is used as a shorthand way to set up arrays. When used with arrays, the range operator simplifies the process of creating arrays with contiguous sequences of numbers and letters.
Incorrect
The range operator(..) is used as a shorthand way to set up arrays. When used with arrays, the range operator simplifies the process of creating arrays with contiguous sequences of numbers and letters.