Black Friday Special 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: save70

Free and Premium Oracle 1z0-149 Dumps Questions Answers

Page: 1 / 2
Total 65 questions

Oracle Database 19c: Program with PL/SQL Questions and Answers

Question 1

Examine these statements:

Which is true?

Options:

A.

It will result in a compilation error for protected_proc because calling_proc does not exist.

B.

It will result in a compilation error for protected_proc because calling_proc must be prefixed with the schema name.

C.

It will result in a successful compilation because objects referenced in an ACCESSIBLE BY clause are not checked at compile time.

D.

With adequate privileges, PROTECTED_PROC procedure can be called by other programs apart from CALLING_PROC.

Buy Now
Question 2

Examine this row of data from the EMPLOYEES table:

Now, examine this block of code which executes successfully:

What is the value of v_commission?

Options:

A.

5000

B.

15000

C.

2500

D.

10000

Question 3

Which three are valid PL/SQL variable names? (Choose three.)

Options:

A.

printer_name#

B.

1to7number

C.

yesterday's_date

D.

leap$year

E.

Number_of_days_between_March_and_April

F.

#printer_name

G.

v_fname

Question 4

Which three statements are true about passing parameters to subprograms? (Choose three.)

Options:

A.

PL/SQL assigns values to actual parameters in subprograms with unhandled exceptions.

B.

IN parameters passed to subprograms act like constants, to which values cannot be assigned by the subprogram.

C.

IN OUT parameters pass initial values to subprograms and return values updated by subprograms to the caller.

D.

The actual parameter must be a variable when calling a subprogram with an OUT parameter.

E.

IN parameters passed to subprograms act like variables, to which values can be assigned by the subprogram.

F.

OUT parameters returning values to calling subprograms act like constants in the called subprogram.

G.

Actual parameters corresponding to IN OUT formal parameters can be constants or expressions.

Question 5

Which statement is true about user-defined records?

Options:

A.

They can be returned from a function.

B.

Field types must match column types.

C.

The number of fields must match the number of columns in a table.

D.

Field names must match selected column names.

Question 6

Which two are true about using the ACCESSIBLE BY clause? (Choose two.)

Options:

A.

It can be used in the declaration of object types.

B.

It must be specified in the heading of a package specification.

C.

The check is enforced by this clause for direct access and access through dynamic SQL.

D.

It can be used for individual procedures and functions declared in a package specification.

E.

It must be specified in the heading of a package body.

Question 7

Which three are true about functions and procedures? (Choose three.)

Options:

A.

The ACCESSIBLE BY clause can be used only for procedures.

B.

In a function, every execution path must lead to a RETURN statement.

C.

Both can have only constants as actual parameters for IN mode parameters.

D.

Both can be invoked from within SQL statements.

E.

In a procedure the RETURN statement cannot specify an expression.

F.

In a function every RETURN statement must specify an expression.

Question 8

Which is the correct method to implement a local subprogram in an anonymous block?

Options:

A.

B.

C.

D.

Question 9

Which two are true about collections and RECORD types? (Choose two.)

Options:

A.

A variable of RECORD type can contain fields of another RECORD type or any collection type.

B.

Only associative arrays and nested tables can have elements of RECORD type.

C.

All collections and RECORD types can be defined in PL/SQL blocks, packages, or at the schema level.

D.

Collections and RECORD types are always dense.

E.

All collections and RECORD types can be stored in table columns.

F.

VARRAYS, nested tables and each field in %ROWTYPE type variables have a default value of null.

Page: 1 / 2
Total 65 questions