Examine the below PL/SQL code snippet.

DECLARE
TYPE number_array IS TABLE OF NUMBER (30);
  v_number number_array := number_array(37,82,55,25);
BEGIN
  v_number.EXTEND;
  FOR loop_index IN v_number.FIRST..v_number.LAST
  LOOP
    DBMS_OUTPUT.PUT_LINE(loop_index||'='||v_number(loop_index)) ;
  END LOOP;
  v_number.TRIM;
  DBMS_OUTPUT.PUT_LINE('Count '||v_number.COUNT) ;
EXCEPTION
WHEN OTHERS THEN
  DBMS_OUTPUT.PUT_LINE (SQLERRM);
END;

What will be the output of the code snippet?

 

Option 1
Option 2
Option 3
Option 4
Verified Answer
Correct Option - c

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 Fri, 13 Jun 2025