PLSQL
PLSQL
1.In
2.Outin
3.Out
4.Inout
1.Bool boolean:
2.NUM1. NUM2 number;
3.deptname dept.dname%type;
4.date1 date = sysdate
5.none of the above
Which one of the following statements about formal and actual parameters is true?
1.In the basic loop structure, sequence of statements is enclosed between the LOOP and END LOOP statements.
2.The WHILE loop repeats a statement or group of statements while a given condition is true.
3.The FOR loop executes a sequence of statements multiple times and abbreviates the code that manages the loop
variable.
4.Nesting of loops is not allowed
Which of the following is an Oracle DDL function?
1.DECODE
2.DROP
3.TO_CHAR
4.NVL
5.all of these are Oracle DDL functions
cursor are declared by ORACLE for each UPDATE, DELETE and INSERT SQL commands.
1.Implicit
2.Explicit
3.Internal
4.External
____is a procedural extension of Oracle-SQL that offers language constructs similar to those in imperative programming
languages
1.SQL
2.PL/SQL
3.Advanced SQL
4.PQL
List the correct sequence of commands to process a set of records when using explicit cursors
Enter the missing keyword If foo = 1 THEN I_text:= 'A' ____foo=2 THEN I_text:='B'; 'ELSE I_text := 'C';END IF;
1.ELSE
2.ELSE IF
3.ELFI
4.ELSIF
5.none of the above
In PL/SQL ____errors can arise from design faults, coding mistakes, hardware failures, and many other sources
1.System error
2.syntax error
3.run-time
4.Specific error
5.logic error
Functions for error trapping are contained in which section of a PL/SQL block?
1. Header
2.Declarative
3.Executable
4.Exception
1.DO
2.EXECUTE
3.THEN
4.ELSE
1.create datatype
2.create data
3.create definetype
4.create type
5.create userdata
1.COUNT
2.SUM
3.DISTINCT
4.MIN
5.All the above
1.CHAR
2.VARCHAR1
3.VARCHAR2
4.INTEGER
5.NUMBER
In this PL/SQL statement, which of the following lines will produce an error?
1.cursor CAPITALS is
2.Select CITY, STATE
3.into my_city, my_state
4.from CITIES
Which of the following is true about the parameter modes in PL/SQL Subprograms?
1.An IN parameter lets you pass a value to the subprogram. It is a read-only parameter.
2.An OUT parameter returns a value to the calling program.
3.An IN OUT parameter passes an initial value to a subprogram and returns an updated value to the caller.
4.All of the above
1.WHILE LOOP
2.END LOOP
3.FOR rec IN some_cursor LOOP_END LOOP
3.LOOP_UNTIL;END LOOP
4.LOOP_EXIT WHEN ; END LOOP
5.None of the above All are valid
Which SELECT statement wilthe result 'elloworld' from the string 'HelloWorld"?
1.Bool boolean;
2.NUM1, NUM2 number,
3.deptname dept.dname%type,
4.date1 date := sysdate
Which of the following is NOT VALID is PL/SQL
Functions for error trapping are contained in which section of a PL/SQL block?
1.Header
2.Declarative
3.Executable
4.Exception
1.DECODE
2.DROP
3.TO_CHAR
4.NVL
5.all of these are Oracle DDL functions.
CREATE TABLE is a__ statememt.
1.DML
2.DDL
3 DCL
4.Transaction Control Language
____is a database object that groups logically related PL/SOL types, objects and subprograms.
1.Module
2.Package
3.Body
4.Name
oracle client
in,out,inout
Implicit.
PL/SQL
ELSIF
Logic error.
Exception
THEN
create type
DISTINCT
VARCHAR1.
LOOP_UNTIL;END LOOP.
Bool boolean;
Exception
DROP
DDL
Package.