Pass the Oracle Oracle Database PL/SQL Developer Certified Professional 1z0-149 Questions and answers with CertsForce

Viewing page 1 out of 2 pages
Viewing questions 1-10 out of questions
Questions # 1:

The SH schema contains the PRODUCTS table with column PDT_NAME defined as VARCHAR2(10).

Which two blocks of code execute successfully when invoked by user SH? (Choose two.)

Options:

A.

1z0-149 Question 1 Option 1


B.

1


C.

1


D.

1


E.

1


Questions # 2:

Examine this DECLARE section:

Question # 2

Which line will cause an error upon execution?

Options:

A.

line 5


B.

line 3


C.

line 2


D.

line 4


E.

line 6


Questions # 3:

Examine the structure of the ora1.depts table:

Question # 3

Now, examine these statements issued by user ora1 which execute successfully:

Create or replace view dep_vu as select * from depts;

Alter table depts add dep_email varchar2(20);

Finally, examine this block of code executed by user ora1:

Question # 3

Which is true?

Options:

A.

DEP_VU must be manually recompiled to successfully run this code.


B.

It will run successfully producing a result of 4.


C.

It will result in an error because table depts has been altered.


D.

It will run successfully producing a result of 5.


Questions # 4:

Which two are true about implicit data type conversion? (Choose two.)

Options:

A.

RAW data types are always implicitly converted to a CLOB when used in a query.


B.

Collections can be implicitly converted to records.


C.

ROWIDS are always implicitly converted to a number when used in a query.


D.

Comparison between character value and a number value always implicitly converts the character value to the number data type.


E.

Implicit data type conversion can negatively impact performance.


Questions # 5:

Which two are valid MODIFIER values for the PLSQL_WARNINGS parameter? (Choose two.)

Options:

A.

DISABLE


B.

ENABLE


C.

ERROR


D.

ALL


E.

SEVERE


Questions # 6:

Which two are true about exception handling? (Choose two.)

Options:

A.

Internally defined exceptions can be handled only by the OTHERS exception handler.


B.

All declared exceptions are raised implicitly by the runtime system.


C.

User-defined exceptions can be defined in the declarative part of any PL/SQL anonymous block, subprogram, or package.


D.

Only predefined exceptions and user-defined exceptions can have a user-declared name associated with them.


E.

Predefined exceptions are globally declared in the standard package.


Questions # 7:

Which two are true about named notations in a PL/SQL subprogram? (Choose two.)

Options:

A.

The actual parameters must be specified in the same order as the formal parameters are declared.


B.

Specifying actual parameters in the wrong order results in the subprogram terminating with an exception.


C.

Only trailing optional parameters can be omitted in the invocation call.


D.

The subprogram invocations must be changed when the formal parameter list acquires new required parameters.


E.

Any optional parameters can be omitted in the invocation call.


Questions # 8:

Examine these statements issued by user SH which execute successfully:

Question # 8

DBMS_OUTPUT.PUT_LINE(p_price(i)); END LOOP; END; END products_pkg; /

Now, examine this anonymous block executed by SH:

Question # 8

Which is true about the anonymous block?

Options:

A.

It will execute successfully only if PriceList is removed from the DECLARE section and defined as a standalone collection type.


B.

It will execute successfully only if PriceList is defined as an associative array in the package and anonymous block.


C.

It will fail at lines 6 and 7.


D.

It will fail only at line 7.


Questions # 9:

Which two are true about lexical units? (Choose two.)

Options:

A.

Character literals are case-sensitive.


B.

Spaces can be embedded in delimiters.


C.

Identifiers include labels.


D.

A character literal with zero characters has the BOOLEAN value NULL.


E.

All user-defined identifiers must start with an alphabet.


Questions # 10:

SERVEROUTPUT is enabled.

Which code block will display the values from 1 to 10 in descending order?

Options:

A.

1z0-149 Question 10 Option 1


B.

10


C.

10


D.

10


Viewing page 1 out of 2 pages
Viewing questions 1-10 out of questions