Solved

Which of the Following Code Segments Will Copy the Values

Question 10

Multiple Choice

Which of the following code segments will copy the values of a 5 element array named intOldValues into another 5 element array named intNewValues?


A) intIndex = 1 Do While intIndex < =5
IntNewValues(intIndex) = intOldValues(intIndex)
IntIndex = intIndex + 1
Loop
B) intIndex = 0 Do While intIndex < 5
IntNewValues(intIndex) = intOldValues(intIndex)
IntIndex = intIndex + 1
Loop
C) For intIndex = 1 To 5 intNewValues(intIndex) = intOldValues(intIndex)
Next intIndex
D) For intIndex = 0 To 4 intOldValues(intIndex) = intNewValues(intIndex)
Next intIndex

Correct Answer:

verifed

Verified

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

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents