Stationary details are stored in stationary_stock table.

 

Sample data of stationary_stock table is given below.

Download the Table & Data Scripts - Click here to download!

Examine the below PL/SQL code.

DECLARE
TYPE type_stationary IS RECORD
  (
    item_id   NUMBER(4) ,
    item_name VARCHAR2(30),
    price     NUMBER(8,2));
TYPE col_stationary IS TABLE OF type_stationary;
  v_col_stationary col_stationary := col_stationary ();
BEGIN
  SELECT item_id,item_name,price bulk collect INTO v_col_stationary FROM stationary_stock;
  
  FORALL i IN v_col_stationary.FIRST .. v_col_stationary.LAST
  UPDATE stationary_stock SET PRICE =1.25*price WHERE item_id=v_col_stationary(i).item_id;
END;

How many rows will be affected on executing the above code?

0
2
3
4
Verified Answer
Correct Option - d

To get all PLSQL Assessment Exam questions Join Telegram Group https://bit.ly/infy_premium_group

Telegram

We're passionate about offering best placement materials and courses!! A one stop place for Placement Materials. We daily post Offcampus updates and Placement Materials.

Qtr No. 213, New Town Yehlanka Indore 454775

admin@prepflix.in

Updated on Sun, 29 Jun 2025