Question: 2. Consider the following code segment. What is displayed as a result of executing the code segment? petList Dog APPEND petlist, Cat APPEND petlist, Fish

2. Consider the following code segment. What is displayed as a result of executing the code segment? petList "Dog" APPEND petlist, "Cat" APPEND petlist, "Fish" INSERT petlist, 2, "Golden Bandicoot REMOVE petlist, 1 FOR EACH item In petList DISPLAY(item) (A) Dog Cat Fish Golden Bandicoot (B) Dog Cat Fish (C) Dog Golden Bandicoot Cat Fish (D) Golden Bandicoot Cat Fish
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
