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
```


b. ```intIndex = 0
Do While intIndex < 5
intNewValues(intIndex) = intOldValues(intIndex)
intIndex = intIndex + 1
Loop
```

Computer Science & Information Technology

You might also like to view...

________ is a commonly used scripting language for creating DHTML effects

Fill in the blank(s) with correct word

Computer Science & Information Technology

A function that checks whether a field has no value.

What will be an ideal response?

Computer Science & Information Technology

In the Paint program, the white drawing area is called the ____.

A. paper B. artboard C. workspace D. canvas

Computer Science & Information Technology

These special programs continually look for new information and update the databases used by search services.

What will be an ideal response?

Computer Science & Information Technology