Solved

In the Following Code to Insert an Item in an Array

Question 17

Multiple Choice

In the following code to insert an item in an array, what is the missing code? for x in range(logicalSize, targetIndex, -1) :
MyArray[x] = myArray[x - 1]
A[targetIndex] = newItem
< missing code >


A) targetIndex += 1
B) targetIndex -= 1
C) logicalSize += 1
D) logicalSize -= 1

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions