Free Oracle 1Z0-144 Exam Practice Questions & Explanations

Last updated on: Nov 28, 2026
Prepared & Reviewed by the ValidExamDumps Editorial Team

At ValidExamDumps, we consistently monitor updates to the Oracle 1Z0-144 exam questions by Oracle. Whenever our team identifies changes in the exam questions, objectives, focus areas or requirements, We immediately update our exam questions for both PDF and online practice exams. This commitment ensures our customers always have access to the most current and accurate questions. By preparing with these up to date and 100% exam domain coverage questions, our customers can successfully pass the Oracle Database 11g: Program with PL/SQL exam on their first attempt without needing additional materials or study guides.

Other certification materials providers often include outdated or removed questions by Oracle in their 1Z0-144 exam. These outdated questions lead to customers failing their Oracle Database 11g: Program with PL/SQL exam. In contrast, we ensure our questions bank includes only precise and up-to-date questions. Our main priority is your success in the Oracle 1Z0-144 exam, not profiting from selling obsolete exam questions in PDF or Online Practice Test.

 

Question 1

A developer writes the following anonymous block to display employee information:

DECLARE
  v_name VARCHAR2(30);
BEGIN
  SELECT last_name INTO v_name
  FROM employees
  WHERE department_id = 50;
  DBMS_OUTPUT.PUT_LINE('Employee: ' || v_name);
END;

Department 50 contains multiple employees. What happens when this block is executed?

Answer Options
Correct Answer: B
Explanation

A SELECT INTO statement in PL/SQL expects exactly one row to be returned into the scalar variable(s) specified. If department 50 has more than one employee, the query returns multiple rows, which causes the predefined exception TOO_MANY_ROWS to be raised. Option A is incorrect because SELECT INTO does not silently pick the first row. Option C is wrong because NO_DATA_FOUND occurs when zero rows are returned, not multiple. Option D is incorrect since a scalar variable cannot hold multiple values without using BULK COLLECT. Option E is incorrect because PL/SQL does not implicitly convert variable types.

Question 2

A developer needs to retrieve a single employee's employee_id, salary, and department_id into PL/SQL variables using a SELECT statement with an INTO clause. Which requirement must be satisfied for this to work correctly?

Answer Options
Correct Answer: A
Explanation

When using SELECT INTO, the list of variables in the INTO clause must correspond positionally to the columns in the SELECT list, and each variable's data type must be compatible with (or implicitly convertible from) the corresponding column's data type. Option B is false; ordinary scalar variables can be used, not just table types. Option C is false; INTO works with any column list, not just SELECT *. Option D is false; %TYPE is a good practice but not mandatory. Option E is irrelevant to this scenario since BULK COLLECT is a different construct.

Question 3

A developer wants to retrieve an entire row from the employees table into a single variable so that all columns are automatically available without listing each column individually, and so that the structure automatically adjusts if columns are added to the table later. Which approach should be used?

Answer Options
Correct Answer: B
Explanation

The %ROWTYPE attribute lets you declare a record whose structure matches all the columns of a table (or cursor), automatically staying in sync if columns are added or removed. Using SELECT * INTO with a %ROWTYPE variable populates all the fields in one statement. Option A is inefficient and defeats the purpose of using %ROWTYPE since you would still be selecting columns individually. Option C is invalid because a scalar VARCHAR2 cannot receive multiple columns via SELECT * INTO. Option D is unrelated since PL/SQL table types are for collections, not single-row structures. Option E is invalid syntax; %TYPE is for a single column or variable, not an entire table.

Question 4

A developer declares a record using emp_rec employees%ROWTYPE; inside a PL/SQL block, but never assigns it individual field values before calling DBMS_OUTPUT.PUT_LINE(emp_rec.salary);. The block compiles and runs without any prior SELECT INTO or assignment statement for emp_rec.

True or False: This will raise a runtime error because %ROWTYPE records must be initialized with a SELECT INTO statement before any field can be referenced.

Answer Options
Correct Answer: B
Explanation

This statement is false. A record declared with %ROWTYPE, like any PL/SQL variable, is automatically initialized to NULL for all its fields when declared (unless explicitly given default values). Referencing emp_rec.salary without a prior assignment simply returns NULL and DBMS_OUTPUT.PUT_LINE will print nothing (or a blank line) for that value; it does not raise a runtime error. A record only needs to be populated via SELECT INTO, assignment, or field-by-field assignment if you want it to hold actual data, but referencing an uninitialized field is not itself an error.

Question 5

A junior developer is troubleshooting why messages from DBMS_OUTPUT.PUT_LINE are not appearing when running a PL/SQL block in SQL*Plus, even though the block compiles and executes without errors. Which action most likely resolves the issue?

Answer Options
Correct Answer: A
Explanation

DBMS_OUTPUT.PUT_LINE writes messages to a buffer, but this buffer is only displayed by client tools like SQL*Plus or SQL Developer if output display is enabled. In SQL*Plus, this is done using SET SERVEROUTPUT ON. Without this setting, the buffered output is never shown to the user, even though the procedure executes successfully. Option B would not fix the display issue since PUT does not add a line terminator and still requires SERVEROUTPUT to be enabled. Option C is unnecessary since DBMS_OUTPUT is typically granted to PUBLIC by default. Option D is irrelevant because DBMS_OUTPUT has nothing to do with transaction control. Option E affects line wrapping of SQL*Plus output, not whether DBMS_OUTPUT messages are displayed at all.