Oracle PLSQL Online Test Series 1, Oracle PLSQL Online Exam
Oracle PLSQL Online Test Series 1, Oracle PLSQL Online Exam
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 Test Series 1, Oracle PLSQL Online Exam, Free Oracle PLSQL Quiz, Online Oracle PLSQL, online Test Quiz 1. Oracle PLSQL Online Test 1 Question and Answers 2019. Oracle PLSQL online Test Quiz 1. Oracle PLSQL Test 1 Free Mock Test 2019. Oracle PLSQL Online Test 1 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-1 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
The SQL operators allow you to limit rows based on
Correct
The SQL operators allow you to limit rows based on,
1. pattern matching of strings,
2. lists of values,
3. ranges of values, and
4. null values.Incorrect
The SQL operators allow you to limit rows based on,
1. pattern matching of strings,
2. lists of values,
3. ranges of values, and
4. null values. -
Question 2 of 30
2. Question
Can we use NOT operator to reverse the meaning of LIKE, IN?
Correct
Yes, we can use NOT operator to reverse the meaning of LIKE, IN, BETWEEN, and IS NULL:
NOT LIKE
NOT IN
NOT BETWEEN
IS NOT NULL
IS NOT NAN
IS NOT INFINITEIncorrect
Yes, we can use NOT operator to reverse the meaning of LIKE, IN, BETWEEN, and IS NULL:
NOT LIKE
NOT IN
NOT BETWEEN
IS NOT NULL
IS NOT NAN
IS NOT INFINITE -
Question 3 of 30
3. Question
The _____________ operator returns rows that are retrieved by both queries?
Correct
Union returns all distinct rows that are in both queries.
Union all returns all rows that are in both queries
intersect returns rows that exist in both queries only
if one is pedantic , technically this occurs in all three operators to some degreeIncorrect
Union returns all distinct rows that are in both queries.
Union all returns all rows that are in both queries
intersect returns rows that exist in both queries only
if one is pedantic , technically this occurs in all three operators to some degree -
Question 4 of 30
4. Question
In a Sequence, what is the purpose of CYCLE?
Correct
Sequence is a feature supported by some database systems to produce unique values on demand.
Syntax:
CREATE Sequence sequence-name
start with initial-value
increment by increment-value
maxvalue maximum-value
cycle|nocyclewhere,
initial-value specifies the starting value of the Sequence.
increment-value is the value by which sequence will be incremented.
maxvalue specifies the maximum value until which sequence will increment itself.
Cycle specifies that if the maximum value exceeds the set limit, sequence will restart its cycle from the begining.
No cycle specifies that if sequence exceeds maxvalue an error will be thrown.Incorrect
Sequence is a feature supported by some database systems to produce unique values on demand.
Syntax:
CREATE Sequence sequence-name
start with initial-value
increment by increment-value
maxvalue maximum-value
cycle|nocyclewhere,
initial-value specifies the starting value of the Sequence.
increment-value is the value by which sequence will be incremented.
maxvalue specifies the maximum value until which sequence will increment itself.
Cycle specifies that if the maximum value exceeds the set limit, sequence will restart its cycle from the begining.
No cycle specifies that if sequence exceeds maxvalue an error will be thrown. -
Question 5 of 30
5. Question
In a sequence, _________________ is used to specify no integers are to be stored
Correct
NOCACHE specifies no integers are to be stored. Specify NOCACHE to indicate that the values of the sequence are not preallocated. If you omit both CACHE and NOCACHE, then the database caches 20 sequence numbers by default.
Incorrect
NOCACHE specifies no integers are to be stored. Specify NOCACHE to indicate that the values of the sequence are not preallocated. If you omit both CACHE and NOCACHE, then the database caches 20 sequence numbers by default.
-
Question 6 of 30
6. Question
In a view, WITH CHECK OPTION
Correct
The WITH CHECK OPTION clause is an optional part of the CREATE VIEW statement. The WITH CHECK OPTION clause prevents you from updating or inserting rows that are not visible through the view. In other words, whenever you update or insert a row of the base table through a view, MySQL ensures that the insert or update operation conforms to the definition of the view.
Syntax:
CREATE OR REPLACE VIEW view_name
AS
select_statement
WITH CHECK OPTION;Note that you put the semicolon (;) at the end of the WITH CHECK OPTION clause, not at the end of the SELECT statement defined the view.
Incorrect
The WITH CHECK OPTION clause is an optional part of the CREATE VIEW statement. The WITH CHECK OPTION clause prevents you from updating or inserting rows that are not visible through the view. In other words, whenever you update or insert a row of the base table through a view, MySQL ensures that the insert or update operation conforms to the definition of the view.
Syntax:
CREATE OR REPLACE VIEW view_name
AS
select_statement
WITH CHECK OPTION;Note that you put the semicolon (;) at the end of the WITH CHECK OPTION clause, not at the end of the SELECT statement defined the view.
-
Question 7 of 30
7. Question
In a view, ____________ specifies that rows may only read from the base tables
Correct
WITH READ ONLY implies that there can be no operations can be performed on this view. Now an updatable view is one you can use to insert, update, or delete base table rows. You can create a view to be inherently updatable, or you can create an INSTEAD OF trigger on any view to make it updatable. You write WITH READ ONLY to indicate that the table or view cannot be updated.
Incorrect
WITH READ ONLY implies that there can be no operations can be performed on this view. Now an updatable view is one you can use to insert, update, or delete base table rows. You can create a view to be inherently updatable, or you can create an INSTEAD OF trigger on any view to make it updatable. You write WITH READ ONLY to indicate that the table or view cannot be updated.
-
Question 8 of 30
8. Question
Oracle database automatically creates an index for the primary key of a table and for columns included in a unique constraint.
Correct
The above statement is true. Oracle database automatically creates an index for the primary key of a table and for columns included in a unique constraint. When a unique or primary key constraint is enabled, Oracle Database creates an index automatically, but Oracle recommends that you create these indexes explicitly. If you want to use an index with a foreign key constraint, then you must create the index explicitly.
Incorrect
The above statement is true. Oracle database automatically creates an index for the primary key of a table and for columns included in a unique constraint. When a unique or primary key constraint is enabled, Oracle Database creates an index automatically, but Oracle recommends that you create these indexes explicitly. If you want to use an index with a foreign key constraint, then you must create the index explicitly.
-
Question 9 of 30
9. Question
Which of the following way or ways before is/are correct to insert DATE in a table?
Correct
Incorrect
-
Question 10 of 30
10. Question
Trim removes a set of characters from the left of a string
Correct
The above statement is false. Ltrim removes a set of characters from the left of a string.
Incorrect
The above statement is false. Ltrim removes a set of characters from the left of a string.
-
Question 11 of 30
11. Question
Which of the following way is correct to calculate variance of a column?
Correct
SELECT VARIANCE(salary) FROM employee; – This is a correct way to calculate variance of a column. VARIANCE returns the variance of expression. You can use it as an aggregate or analytic function. This function takes as an argument any numeric datatype or any non-numeric datatype that can be implicitly converted to a numeric datatype. The function returns the same datatype as the numeric datatype of the argument.
Incorrect
SELECT VARIANCE(salary) FROM employee; – This is a correct way to calculate variance of a column. VARIANCE returns the variance of expression. You can use it as an aggregate or analytic function. This function takes as an argument any numeric datatype or any non-numeric datatype that can be implicitly converted to a numeric datatype. The function returns the same datatype as the numeric datatype of the argument.
-
Question 12 of 30
12. Question
Which of the following way is correct to add x months to a month?
Correct
Incorrect
-
Question 13 of 30
13. Question
Which of the following gets the largest integer less than or equal to x?
Correct
FLOOR(x) gets the largest integer less than or equal to x.
Incorrect
FLOOR(x) gets the largest integer less than or equal to x.
-
Question 14 of 30
14. Question
What is UNISTR(x) used for?
Correct
UNISTR(x) converts the characters in x to the national language character set (NCHAR). UNISTR takes as its argument a text literal or an expression that resolves to character data and returns it in the national character set. The national character set of the database can be either AL16UTF16 or UTF8. UNISTR provides support for Unicode string literals by letting you specify the Unicode encoding value of characters in the string. This is useful, for example, for inserting data into NCHAR columns.
Incorrect
UNISTR(x) converts the characters in x to the national language character set (NCHAR). UNISTR takes as its argument a text literal or an expression that resolves to character data and returns it in the national character set. The national character set of the database can be either AL16UTF16 or UTF8. UNISTR provides support for Unicode string literals by letting you specify the Unicode encoding value of characters in the string. This is useful, for example, for inserting data into NCHAR columns.
-
Question 15 of 30
15. Question
SQLCODE Returns an error code based upon the current error.
Correct
The above statement is true. SQLCODE returns an error code based upon the current error. The SQLCODE option holds the value returned by the Oracle RDBMS after the most recently attempted SQL operation.
Incorrect
The above statement is true. SQLCODE returns an error code based upon the current error. The SQLCODE option holds the value returned by the Oracle RDBMS after the most recently attempted SQL operation.
-
Question 16 of 30
16. Question
Which of the following Metacharacter Matches the position at the start of the string?
Correct
Following are the metacharacters with their standard meanings:
\ : Quote the next metacharacter.
^ : Match the beginning of the line.
. : Match any character (except newline).
$ : Match the end of the line (or before newline at the end).
| : Alternation.
() : Grouping.
[] : Character class.Incorrect
Following are the metacharacters with their standard meanings:
\ : Quote the next metacharacter.
^ : Match the beginning of the line.
. : Match any character (except newline).
$ : Match the end of the line (or before newline at the end).
| : Alternation.
() : Grouping.
[] : Character class. -
Question 17 of 30
17. Question
[==]Metacharacter is used for?
Correct
Metacharacter [==] specifies equivalence classes. Use [= and =] to surround a letter when you want to match all accented and unaccented versions of that letter. The resulting equivalence class reference must always be within a bracket expression.
Incorrect
Metacharacter [==] specifies equivalence classes. Use [= and =] to surround a letter when you want to match all accented and unaccented versions of that letter. The resulting equivalence class reference must always be within a bracket expression.
-
Question 18 of 30
18. Question
What is REGR_R2(y, x) used for?
Correct
REGR_R2(y, x) returns the coefficient of determination, or R-squared, of the regression. REGR_R2 is a linear regression analytic function which takes two numeric inputs and returns a numeric output which denotes how well a regression line is fitted. Another way of stating this is that it returns the coefficient of determination, or R-squared, of the regression line.
Incorrect
REGR_R2(y, x) returns the coefficient of determination, or R-squared, of the regression. REGR_R2 is a linear regression analytic function which takes two numeric inputs and returns a numeric output which denotes how well a regression line is fitted. Another way of stating this is that it returns the coefficient of determination, or R-squared, of the regression line.
-
Question 19 of 30
19. Question
The declaration and exception blocks are optional in PL/SQL block
Correct
The above statement is true. The declaration and exception blocks are optional in PL/SQL block. The basic program unit in PL/SQL is the block. A PL/SQL block is defined by the keywords DECLARE, BEGIN, EXCEPTION, and END. These keywords partition the block into a declarative part, an executable part, and an exception-handling part. Only the executable part is required. You can nest a block within another block wherever you can place an executable statement.
Incorrect
The above statement is true. The declaration and exception blocks are optional in PL/SQL block. The basic program unit in PL/SQL is the block. A PL/SQL block is defined by the keywords DECLARE, BEGIN, EXCEPTION, and END. These keywords partition the block into a declarative part, an executable part, and an exception-handling part. Only the executable part is required. You can nest a block within another block wherever you can place an executable statement.
-
Question 20 of 30
20. Question
When does a ORA-04098 occur?
Correct
For an ORA-04098 error, the cause might be a trigger was attempted to be retrieved for execution and was found to be invalid. This also means that compilation/authorization failed for the trigger. The options are to resolve the compilation/authorization errors, disable the trigger, or drop the trigger. You can also try running the following command to check for errors on the trigger:
SHOW ERRORS TRIGGER trigger_name;
Incorrect
For an ORA-04098 error, the cause might be a trigger was attempted to be retrieved for execution and was found to be invalid. This also means that compilation/authorization failed for the trigger. The options are to resolve the compilation/authorization errors, disable the trigger, or drop the trigger. You can also try running the following command to check for errors on the trigger:
SHOW ERRORS TRIGGER trigger_name;
-
Question 21 of 30
21. Question
What is the difference between an “empty” value and a “null” value?
Correct
An empty string is treated as a null value in Oracle. A NULL value represents the absence of a value for a record in a field (other software calls it a missing value). An empty value is a “field-formatted” value with no significant data in it. Null has no bounds, it can be used for string, integer, date, etc. fields in a database. Empty string is just regarding a string. If you have no value for a field, use null, not an empty string.
Incorrect
An empty string is treated as a null value in Oracle. A NULL value represents the absence of a value for a record in a field (other software calls it a missing value). An empty value is a “field-formatted” value with no significant data in it. Null has no bounds, it can be used for string, integer, date, etc. fields in a database. Empty string is just regarding a string. If you have no value for a field, use null, not an empty string.
-
Question 22 of 30
22. Question
What is the syntax for disabling a trigger?
Correct
A disabled trigger does not execute its trigger body, even if a triggering statement is issued and the trigger restriction (if any) evaluates to true. To enable or disable triggers using the ALTER TABLE statement, you must own the table, have the ALTER object privilege for the table, or have the ALTER ANY TABLE system privilege. To enable or disable an individual trigger using the ALTER TRIGGER statement, you must own the trigger or have the ALTER ANY TRIGGER system privilege.
Incorrect
A disabled trigger does not execute its trigger body, even if a triggering statement is issued and the trigger restriction (if any) evaluates to true. To enable or disable triggers using the ALTER TABLE statement, you must own the table, have the ALTER object privilege for the table, or have the ALTER ANY TABLE system privilege. To enable or disable an individual trigger using the ALTER TRIGGER statement, you must own the trigger or have the ALTER ANY TRIGGER system privilege.
-
Question 23 of 30
23. Question
Can a unique constraint be a combination of fields that uniquely defines a record?
Correct
Yes, a unique constraint can be a combination of fields that uniquely defines a record. A unique constraint is a single field or combination of fields that uniquely defines a record. Some of the fields can contain null values as long as the combination of values is unique.
Incorrect
Yes, a unique constraint can be a combination of fields that uniquely defines a record. A unique constraint is a single field or combination of fields that uniquely defines a record. Some of the fields can contain null values as long as the combination of values is unique.
-
Question 24 of 30
24. Question
Which type of join returns all rows from one table and only those rows from a secondary table?
Correct
Left Outer Join,
Right Outer Join and
Full Outer JoinIncorrect
Left Outer Join,
Right Outer Join and
Full Outer Join -
Question 25 of 30
25. Question
What is the meaning of + sign in a condition like where consumer. consumer _id = orders.consumer _id(+);
Correct
indicates that, if a consumer _id value in the consumer table does not exist in the orders table, all data in the consumer table will display as in the result set. (Macthing+unmatched records form orders data will dispaly)
Incorrect
indicates that, if a consumer _id value in the consumer table does not exist in the orders table, all data in the consumer table will display as in the result set. (Macthing+unmatched records form orders data will dispaly)
-
Question 26 of 30
26. Question
Which of the following below are types of parameters for a function?
Correct
In PL/SQL, we can pass parameters to procedures and functions in three ways:
1) IN type parameter: These types of parameters are used to send values to stored procedures.
2) OUT type parameter: These types of parameters are used to get values from stored procedures. This is similar to a return type in functions.
3) IN OUT parameter: These types of parameters are used to send values and get values from stored procedures.NOTE: If a parameter is not explicitly defined a parameter type then by default it is an IN type parameter.
Incorrect
In PL/SQL, we can pass parameters to procedures and functions in three ways:
1) IN type parameter: These types of parameters are used to send values to stored procedures.
2) OUT type parameter: These types of parameters are used to get values from stored procedures. This is similar to a return type in functions.
3) IN OUT parameter: These types of parameters are used to send values and get values from stored procedures.NOTE: If a parameter is not explicitly defined a parameter type then by default it is an IN type parameter.
-
Question 27 of 30
27. Question
Which of the below should be used if I only want records that exist in one query and not in the other?
Correct
UNION operator eliminates duplicate selected rows and returns only distinct rows that appear in either result.
UNION ALL operator returns all rows and does not eliminate duplicate selected rows.
INTERSECT operator returns only those rows returned by both queries.
DISTINCT statement is used to return only distinct (different) values.
MINUS operator returns only unique rows returned by the first query but not by the second.Incorrect
UNION operator eliminates duplicate selected rows and returns only distinct rows that appear in either result.
UNION ALL operator returns all rows and does not eliminate duplicate selected rows.
INTERSECT operator returns only those rows returned by both queries.
DISTINCT statement is used to return only distinct (different) values.
MINUS operator returns only unique rows returned by the first query but not by the second. -
Question 28 of 30
28. Question
The HAVING clause is used in combination with the ORDER BY clause
Correct
The HAVING clause enables you to specify conditions that filter which group results appear in the final results. The WHERE clause places conditions on the selected columns, whereas the HAVING clause places conditions on groups created by the GROUP BY clause.
Syntax:
SELECT
FROM
WHERE
GROUP BY
HAVING
ORDER BYThe HAVING clause must follow the GROUP BY clause in a query and must also precede the ORDER BY clause if used.
The following is the syntax of the SELECT statement, including the HAVING clause:SELECT column1, column2
FROM table1, table2
WHERE [ conditions ]
GROUP BY column1, column2
HAVING [ conditions ]
ORDER BY column1, column2Incorrect
The HAVING clause enables you to specify conditions that filter which group results appear in the final results. The WHERE clause places conditions on the selected columns, whereas the HAVING clause places conditions on groups created by the GROUP BY clause.
Syntax:
SELECT
FROM
WHERE
GROUP BY
HAVING
ORDER BYThe HAVING clause must follow the GROUP BY clause in a query and must also precede the ORDER BY clause if used.
The following is the syntax of the SELECT statement, including the HAVING clause:SELECT column1, column2
FROM table1, table2
WHERE [ conditions ]
GROUP BY column1, column2
HAVING [ conditions ]
ORDER BY column1, column2 -
Question 29 of 30
29. Question
The ORDER BY clause can only be used in
Correct
The Oracle ORDER BY clause is used to sort the records in your result set. The ORDER BY clause can only be used in SELECT statements.
Syntax:
SELECT expressions
FROM tables
[WHERE conditions]
ORDER BY expression [ ASC | DESC ];where,
expressions: The columns or calculations that you wish to retrieve.
tables: The tables that you wish to retrieve records from. There must be at least one table listed in the FROM clause.
WHERE condition is optional. The conditions that must be met for the records to be selected.
ASC condition is optional. It sorts the result set in ascending order by expression (default, if no modifier is provider).
DESC condition is optional. It sorts the result set in descending order by expression.Incorrect
The Oracle ORDER BY clause is used to sort the records in your result set. The ORDER BY clause can only be used in SELECT statements.
Syntax:
SELECT expressions
FROM tables
[WHERE conditions]
ORDER BY expression [ ASC | DESC ];where,
expressions: The columns or calculations that you wish to retrieve.
tables: The tables that you wish to retrieve records from. There must be at least one table listed in the FROM clause.
WHERE condition is optional. The conditions that must be met for the records to be selected.
ASC condition is optional. It sorts the result set in ascending order by expression (default, if no modifier is provider).
DESC condition is optional. It sorts the result set in descending order by expression. -
Question 30 of 30
30. Question
Which of the following Commit allows you to return to the client without waiting for the redo to be written to the disk?
Correct
Asynchronous commit is an option that allows transaction to complete more quickly, at the cost that the most recent transactions may be lost if the database should crash. In many applications this is an acceptable trade-off.
Incorrect
Asynchronous commit is an option that allows transaction to complete more quickly, at the cost that the most recent transactions may be lost if the database should crash. In many applications this is an acceptable trade-off.