Programming in PL/SQL (Basic Concepts)
Description: Imporove your PL/SQL Skills | |
Number of Questions: 25 | |
Created by: Karuna Seth | |
Tags: PL/SQL SQL.Oracle Database Programming Computers Java/Oracle /C/C++ |
How many sections or parts are there in a PL/SQL program?
A group of related data items stored in fields, each with its own name and datatype, is called
Which of the following is NOT a valid loop in PL/SQL?
When a 'Select' command is written inside a PL/SQL program, the ____ keyword must be included in it.
Which of the following is NOT a valid cursor attribute?
Which of the following is a schema object that groups logically related PL/SQL types, items and sub-programs?
For which of the following SQL statements can a trigger not be written?
In PL/SQL, which of the following is the correct syntax of the 'if-else' statement?
Which of the following is NOT a correct way of passing parameters to a function or a procedure in PL/SQL?
Which named exception is thrown when an attempt is made to open a cursor that is already open?
Which of the following is the correct difference between a procedure and a function?
Which of the following statements is FALSE about packages?
Which of the following statements is FALSE regarding triggers?
Which of the following is the correct method of declaring a constant in PL/SQL?
Which of the following keywords is NOT present in a 'function declaration'?
Which of the following is NOT a difference between SQL and PL/SQL ?
In a PL/SQL 'case' statement, if all the given conditions are false, the statements written in the ____ block are executed.
Which of the following is the correct method of handling exceptions in the 'Exception' section?
In a PL/SQL program, to declare a variable with the same data type as a column of a table (anchored declaration), the correct syntax will be
Which of the following is NOT an advantage of subprograms (procedures and functions)?
With reference to OLD and NEW pseudorecords, which of the following statements is FALSE ?
Which of the following statements is FALSE regarding 'Parameters in Cursor' (Parameterized Cursor)?
Which of the following statements is FALSE about 'Implicit Cursors'?
Which of the following statements is FALSE regarding variable names?
Which line in the above code has an error?
declare
no number;
sq number;
begin
no:=&number; --Line 1
if no>10000 then -- Line 2
dbms_output.put_line('Too large value'); -- Line 3
else -- Line 4
sq=no*no; -- Line 5
dbms_output.put_line(\\\\\\'Square of \\\\\\' || no || \\\\\\' is \\\\\\' || sq); -- Line 6
end if; -- Line 7
end;
/