Examine the below PL/SQL code snippet.

DECLARE
   TYPE t_associative_array IS TABLE OF VARCHAR2 (50) INDEX BY PLS_INTEGER;
   col_associative_array   t_associative_array;
BEGIN
   col_associative_array (1)  := 'a';
   col_associative_array (2)  := 'b';
   col_associative_array (-1) := 'c';
   DBMS_OUTPUT.PUT_LINE('Next : '||col_associative_array.NEXT(-1));
END;

What will be the output of the above code snippet?

 

Next : 1
Next : 0
Next :
Next : a
Verified Answer
Correct Option - a

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