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://rebrand.ly/lex-telegram-236dee

Telegram