Are you familiar with PL/SQL in Oracle? Take this Oracle PL/SQL test and test your knowledge. If you learned Oracle, this quiz would be an easy one for you. We have got a set of questions for your practice and knowledge-testing on PL/SQL in Oracle. Just go for it, and find out your results. Even if you are not sure See moreabout any of your answers, we will help you with the correct answer. All the best! Don't forget to share the quiz with other Oracle users.
Add_dept;
Add_dept('Accounting');
Add_dept(, 'New York');
Add_dept(p_location=>'New York);
Rate this question:
You can call the BONUS.CALC_SALARY packaged function from an INSERT command against the EMPLOYEES table.
You can call the BONUS.CALC_SALARY packaged function from a SELECT command against the EMPLOYEES table
You can call the BONUS.CALC_SALARY packaged function form a DELETE command against the EMPLOYEES table.
You can call the BONUS.CALC_SALARY packaged function from an UPDATE command against the EMPLOYEES table
Rate this question:
FOR EACH ROW trigger on the EMP table.
Statement-level trigger on the EMP table.
FOR EACH ROW trigger on the AUDIT_TABLE table
Statement-level trigger on the AUDIT_TABLE table
FOR EACH ROW statement-level trigger on the EMPtable.
Rate this question:
In
Out
Return
None of the above
Rate this question:
100
1
0
Same no of rows as in emp table
Rate this question:
Trigger timing
Trigger event
Trigger type
Trigger body
Rate this question:
Show compilation errors
Display errors
Show errors
Show procedure errors
Rate this question:
Drop trigger emp_trig;
Delete trigger emp_trig;
Delete from user_triggers where trigger_name=’emp_trig’;
Alter trigger emp_trig disable
Rate this question:
Sql%isopen
Sql%rowcount
Sql%found
You cannot use cursor attributes for pl/sql loops
Rate this question:
No_data_found
Too_many_rows
Zero_divide
Invalid_cursor
Rate this question:
Value_error
No_data_found
Others
None of the above
Rate this question:
Cursors with parameters
Use explicit cursor so many time in the PL/SQL block
Cursors with attributes
Any of the above
Rate this question:
0
Undefined
NULL
None of the above
Rate this question:
0
NULL
Show error
None of the above
Rate this question:
Where current of
FOR UPDATE OF
Any cursor Attribute
Any Cursor Variable
Rate this question:
FOR UPDATE OF
Where current of
Any cursor Attribute
Any Cursor Variable
Rate this question:
0
4
8
10
Rate this question:
No error
Should initialize with value.
Should not mention width for data type.
Syntax error that constant should be after data type
Rate this question:
0
1
4
5
Rate this question:
0
6
3
10
Rate this question:
2501
2502
2504
NULL
Rate this question:
Null
4500
3500
2500
Rate this question:
When the select returns zero rows
When the select returns one row
When the select returns more than one row
When DML operations are performed
Rate this question:
A cursor FOR loop.
A multiple selection cursor.
A cursor for each active set.
A cursor that uses parameters
Rate this question:
You must explicitly fetch the rows within a cursor FOR loop.
You must explicitly open the cursor prior to the cursor FOR loop
You must explicitly close the cursor prior to the end of program
You do not explicitly open, fetch or close a cursor within a cursor FOR loop
You must explicitly declare the record variable that holds the row returned fromthe cursor.
Rate this question:
Implicit cursors are declared implicitly only for DML statements.
Implicit cursors are declared implicitly for all the DML and SELECTstatements.
Programmers need to close all the implicit cursors before the end of the PL/SQLprogram.
Programmers can declare implicit cursors by using the cursor type in thedeclaration section.
Rate this question:
DECLAREv_hiredate DATE:=SYSDATE:BEGININSERT INTO emp(empnp, ename, hiredate, deptno)VALUES(empno_sequence.nextval, ‘and name’,v_hiredate and deptno)
DECLAREv-hiredate DATE:=SYSDATE:BEGININSERT INTO emp(empnp,ename,hiredate,deptno)
DECLAREv-hiredate DATE:=SYSDATE:BEGININSERT INTO emp(empnp,ename,hiredate)VALUES(empno_sequence.nextval, name, v_hiredate)END:
DECLAREv-hiredate DATE:=SYSDATE:BEGININSERT INTO emp(empnp,ename,heridate,deptno)VALUES(empno_sequence.nextval, ‘and name’,v_hitedate and deptno)Job=ClerkEND:
Rate this question:
The value f V_found cannot be YES.
Variable V_found is declared at more than one location.
Variable Y is declared in the inner block and referenced in the outer block.
Variable V_sal is declared in the outer block and referenced in the inner block.
Rate this question:
The cursor needs to be opened.
Terminating conditions are missing.
No FETCH statements were issued
The cursor does not need to be explicitly closed.
Rate this question:
Heading.
Executable.
Declarative.
Exception handling.
Rate this question:
True
False
Rate this question:
True
False
Rate this question:
True
False
Rate this question:
True
False
Rate this question:
Ceil
Substr
Decode
All of the above
Rate this question:
Exec p1
Exec :x := p1(10)
Both ways
None of the above
Rate this question:
0
1
Undefined
None of the above
Rate this question:
It throws an exception
Errorerror2
Syntax error
None of the above
Rate this question:
It raises application error and program terminates abnormally
It throws syntax error
Both options are correct
None of the above
Rate this question:
Quiz Review Timeline (Updated): Aug 22, 2023 +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
Wait!
Here's an interesting quiz for you.