Winter Special Sale - Limited Time 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 575363r9

Welcome To DumpsPedia

1z0-149 Sample Questions Answers

Questions 4

Which three are true about user-defined functions? (Choose three.)

Options:

A.

They can be used in ORDER BY and GROUP BY clauses.

B.

They can be executed as standalone commands.

C.

They must be defined with at least one parameter.

D.

They need not return any values.

E.

They can appear in the select list of a SELECT statement.

F.

Functions can call only other functions.

G.

They can be used in CONNECT BY and START WITH clauses.

Buy Now
Questions 5

Examine this table definition in the SH schema.

A row with PDT_ID = 1 exists. Which two blocks of code will execute successfully by user SH and give the same output? (Choose two.)

Options:

A.

B.

C.

D.

Buy Now
Questions 6

Examine this statement which executes successfully:

SQL> SET SERVEROUTPUT ON;

Now, examine this code which is executed:

What is true about the result?

Options:

A.

It returns an error in line 2.

B.

It returns an error in line 4.

C.

It returns an error in line 9.

D.

It executes and displays output.

Buy Now
Questions 7

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.

Buy Now
Questions 8

Examine this DECLARE section:

Which line will cause an error upon execution?

Options:

A.

line 5

B.

line 3

C.

line 2

D.

line 4

E.

line 6

Buy Now
Questions 9

Which two are true about INDEX-BY tables? (Choose two.)

Options:

A.

The index can be integer or string.

B.

The index can be integer only.

C.

INDEX-BY table types can be created in PL/SQL blocks only.

D.

INDEX-BY table types can be created both with the CREATE TYPE statement and in PL/SQL blocks.

E.

INDEX-BY table types can be created with the CREATE TYPE statement.

Buy Now
Questions 10

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

Options:

A.

B.

C.

D.

Buy Now
Questions 11

Examine these statements from a block of code:

Which two are true? (Choose two.)

Options:

A.

The lock acquired when executing the OPEN c1 command will be released only after a COMMIT or ROLLBACK statement is issued.

B.

Only the PRICE column can be updated in the PRODUCTS table.

C.

The FOR UPDATE OF clause can be used only if the WHERE CURRENT OF clause is used in the executable part of the block.

D.

The WHERE CURRENT OF clause can be used only if the FOR UPDATE clause is used in the cursor definition.

E.

An OPEN c1 command will acquire a lock only on the PRICE column in the PRODUCTS table.

Buy Now
Questions 12

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.

B.

C.

D.

E.

Buy Now
Questions 13

Which block of code displays the error message “Incorrect price value”?

Options:

A.

B.

C.

D.

Buy Now
Questions 14

Examine these statements:

Which two are true? (Choose two.)

Options:

A.

Neither table will have a row inserted and committed.

B.

Both tables will have a row inserted and committed.

C.

The transaction for the bank_activity_proc is independent of the bank_transaction_proc.

D.

The bank_activity_proc will not compile because of the commit.

E.

Only one table will have a row inserted and committed.

Buy Now
Questions 15

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
Questions 16

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.

Buy Now
Questions 17

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.

Buy Now
Questions 18

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

Buy Now
Questions 19

Examine the EMPLOYEES table structure:

Now, examine this code:

Which statement is true about the result of executing this block?

Options:

A.

It will execute successfully provided the salary of EMP_ID 200 does not exceed the value 99999.

B.

It will return an error at line 2.

C.

It will return an error at line 3.

D.

It will return an error at line 8.

E.

It will execute successfully by rounding up the salary of EMP_ID 200 to the appropriate value.

Buy Now
Exam Code: 1z0-149
Exam Name: Oracle Database 19c: Program with PL/SQL
Last Update: Nov 22, 2024
Questions: 65
$64  $159.99
$48  $119.99
$40  $99.99
buy now 1z0-149