Updated Jan-2024 1z1-149 Exam Practice Test Questions [Q24-Q44]

Share

Updated Jan-2024 1z1-149 Exam Practice Test Questions

Verified 1z1-149 dumps Q&As 100% Pass in First Attempt Guaranteed Updated Dump


Oracle 1z1-149 certification exam is an essential milestone for PL/SQL developers who want to showcase their skills and expertise in Oracle Database 19c. It is a rigorous and challenging test that requires a deep understanding of database concepts and advanced PL/SQL programming techniques. Passing 1z1-149 exam can lead to career advancement, increased job opportunities, and recognition as a skilled and competent developer in the industry.

 

NEW QUESTION # 24
Which two blocks of code display a numerical zero? (Choose two.)

  • A.
  • B.
  • C.
  • D.

Answer: A,B


NEW QUESTION # 25
Examine the SH.PRODUCTS table:

A row exists in SH.PRODUCTS with PDT_ID = 1.
Now, examine this code and output executed by SH:

Now, examine this block of code:

Which error message(s) does it display on execution by user SH?

  • A. Error in inner block Error in outer block Error in calling block
  • B. Error in inner block Error in outer block
  • C. Error in inner block Error in calling block
  • D. Error in inner block

Answer: D


NEW QUESTION # 26
Examine the structure of the ora1.depts table:

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:

Which is true?

  • A. It will run successfully producing a result of 5.
  • B. It will run successfully producing a result of 4.
  • C. DEP_VU must be manually recompiled to successfully run this code.
  • D. It will result in an error because table depts has been altered.

Answer: B


NEW QUESTION # 27
Examine these statements from a block of code:

Which two are true? (Choose two.)

  • A. Only the PRICE column can be updated in the PRODUCTS table.
  • B. The WHERE CURRENT OF clause can be used only if the FOR UPDATE clause is used in the cursor definition.
  • 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. An OPEN c1 command will acquire a lock only on the PRICE column in the PRODUCTS table.
  • E. The lock acquired when executing the OPEN c1 command will be released only after a COMMIT or ROLLBACK statement is issued.

Answer: B,E


NEW QUESTION # 28
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.)

  • A.
  • B.
  • C.
  • D.
  • E.

Answer: B,E


NEW QUESTION # 29
Examine this table in the SH schema:

User SH executes this code:

The program must terminate with a user-defined message and no rows displayed if more than one product's price is 1000.
With which option must "---placeholder" be replaced?

  • A.
  • B.
  • C.
  • D.
  • E.

Answer: B


NEW QUESTION # 30
Sequence S and table PRODUCTS exist in your schema.
Examine the table description:

Now, examine this block of code:

Which two lines each result in a compilation error? (Choose two.)

  • A. line 2
  • B. line 7
  • C. line 3
  • D. line 1
  • E. line 8
  • F. line 6

Answer: D,F


NEW QUESTION # 31
Examine this DECLARE section:

Which two lines are valid? (Choose two.)

  • A. line 7
  • B. line 3
  • C. line 4
  • D. line 6
  • E. line 5
  • F. line 2

Answer: E,F


NEW QUESTION # 32
Which two are true about using the ACCESSIBLE BY clause? (Choose two.)

  • A. It can be used in the declaration of object types.
  • B. It must be specified in the heading of a package body.
  • C. It can be used for individual procedures and functions declared in a package specification.
  • D. It must be specified in the heading of a package specification.
  • E. The check is enforced by this clause for direct access and access through dynamic SQL.

Answer: A,C

Explanation:
https://docs.oracle.com/database/122/LNPLS/ACCESSIBLE-BY-clause.htm


NEW QUESTION # 33
Which two are true about collections and RECORD types? (Choose two.)

  • A. Collections and RECORD types are always dense.
  • B. VARRAYS, nested tables and each field in %ROWTYPE type variables have a default value of null.
  • C. All collections and RECORD types can be defined in PL/SQL blocks, packages, or at the schema level.
  • D. A variable of RECORD type can contain fields of another RECORD type or any collection type.
  • E. All collections and RECORD types can be stored in table columns.
  • F. Only associative arrays and nested tables can have elements of RECORD type.

Answer: B,F


NEW QUESTION # 34
Which three are true about DDL triggers? (Choose three.)

  • A. They can be fired either before or after a DDL statement executes.
  • B. They can be fired when a privilege is granted to a user.
  • C. They cannot include the WHEN clause.
  • D. They must be created in an enabled state.
  • E. They can be fired when a table is truncated.
  • F. They fire only when a DDL statement is executed by the owner of the trigger.
  • G. They must be created in a disabled state.

Answer: A,E,F


NEW QUESTION # 35
Examine these statements:

Which two are true? (Choose two.)

  • A. Neither table will have a row inserted and committed.
  • B. Only one table will have a row inserted and committed.
  • C. The bank_activity_proc will not compile because of the commit.
  • D. Both tables will have a row inserted and committed.
  • E. The transaction for the bank_activity_proc is independent of the bank_transaction_proc.

Answer: B,E


NEW QUESTION # 36
Which three are true about anonymous blocks and subprograms? (Choose three.)

  • A. FUNCTION subprograms must be called and passed through one or more parameters.
  • B. Anonymous blocks must always start with the Declare keyword.
  • C. Named subprograms are stored in the database server.
  • D. Anonymous blocks cannot use packaged variables.
  • E. PROCEDURE subprograms can accept parameters.
  • F. Named subprograms cannot be called from other packages.
  • G. A FUNCTION subprogram must return one or more values.

Answer: C,E,G


NEW QUESTION # 37
Which three are true about the procedure overloading feature? (Choose three.)

  • A. Each procedure can be a nested subprogram.
  • B. Each procedure's formal parameters can differ in data type or name.
  • C. Each procedure's formal parameters must differ in name.
  • D. Each procedure can be a standalone subprogram.
  • E. Each procedure must use named notation to specify the corresponding actual parameters.
  • F. Each procedure must use positional notation to specify the corresponding actual parameters.
  • G. Each procedure can be a packaged subprogram.

Answer: B,F,G


NEW QUESTION # 38
For which three SYSTEM EVENTS can triggers be created? (Choose three.)

  • A. DDL
  • B. AFTER AUDIT
  • C. SERVERERROR
  • D. SHUTDOWN
  • E. BEFORE GRANT
  • F. STARTUP
  • G. BEFORE ANALYZE

Answer: C,D,F


NEW QUESTION # 39
Which three are valid PL/SQL variable names? (Choose three.)

  • A. 1to7number
  • B. v_fname
  • C. leap$year
  • D. printer_name#
  • E. Number_of_days_between_March_and_April
  • F. #printer_name
  • G. yesterday's_date

Answer: B,C,D


NEW QUESTION # 40
Which three are true about the NOCOPY hint, the PARALLEL ENABLE hint, and the DETERMINISTIC clause? (Choose three.)

  • A. The NOCOPY hint asks the compiler to pass the actual parameters by value.
  • B. A deterministic function's results always depend on the state of session variables.
  • C. The NOCOPY hint asks the compiler to pass the actual parameters by reference.
  • D. A function is deterministic if it always returns the same result for a specific combination of input values.
  • E. The PARALLEL_ENABLE clause can be specified for a nested function.
  • F. A function defined with the PARALLEL_ENABLE clause may be executed in parallel in a SELECT statement or a subquery in a DML statement.
  • G. The PARALLEL_ENABLE clause can be used only in the CREATE FUNCTION statement.

Answer: C,D,F


NEW QUESTION # 41
Examine this statement which is submitted for compilation:

Which three are true? (Choose three.)

  • A. Initialization of loan_amount can be done while using this packaged variable in another program.
  • B. This is a PACKAGE specification. A PACKAGE BODY is needed to use this.
  • C. This is BODILESS PACKAGE. A PACKAGE BODY is not required to use this.
  • D. This will not compile successfully because the loan_amount variable is declared NOT NULL but lacks an initialization assignment.
  • E. This program unit will compile successfully.
  • F. Initialization of min_bal can be done while using this packaged constant in another program.
  • G. This will not compile successfully because the min_bal constant must be initialized.

Answer: C,D,G


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

  • A. Any optional parameters can be omitted in the invocation call.
  • B. The actual parameters must be specified in the same order as the formal parameters are declared.
  • C. Specifying actual parameters in the wrong order results in the subprogram terminating with an exception.
  • D. The subprogram invocations must be changed when the formal parameter list acquires new required parameters.
  • E. Only trailing optional parameters can be omitted in the invocation call.

Answer: A,B


NEW QUESTION # 43
Examine this statement which executes successfully:
SQL> SET SERVEROUTPUT ON;
Now, examine this code which is executed:

What is true about the result?

  • A. It executes and displays output.
  • B. It returns an error in line 2.
  • C. It returns an error in line 9.
  • D. It returns an error in line 4.

Answer: D


NEW QUESTION # 44
......


Oracle 1Z0-149 certification exam is designed to test the skills and knowledge of professionals who work with the Oracle Database 19c and program with PL/SQL. 1z1-149 exam is a great way for developers, database administrators, and other IT professionals to demonstrate their expertise in Oracle database programming using PL/SQL.


Oracle 1z1-149 is a certification exam that is designed to test the knowledge and skills of PL/SQL developers. 1z1-149 exam is targeted at professionals who are interested in obtaining the Oracle Database 19c: Program with PL/SQL certification. Oracle Database 19c: Program with PL/SQL certification is intended to validate the candidate's ability to develop and implement database solutions using the PL/SQL language.

 

Pass Oracle Database PL/SQL Developer Certified Professional 1z1-149 Exam With 67 Questions: https://www.premiumvcedump.com/Oracle/valid-1z1-149-premium-vce-exam-dumps.html