A mathematical quiz context happened in a school and the scores are stored in an array named quizmark. The coordinating person wants to copy the quiz score into another array named copyquizmark. Which of these options will do that?
Answer options
A
FOR index <- 0 to n
B
copyquizmark[index] <- quizmark[index]
C
index <- index+1
D
END FOR
E
copyquizmark[n] <- quizmark[n]
F
We cannot copy the values from one array to another.
G
copyquizmark <- quizmark
H
Using for loop helps to copy the elements from one array to another array
Correct answer: FOR index <- 0 to n, copyquizmark[index] <- quizmark[index], index <- index+1, END FOR
Explanation
The source marks the correct answer as: FOR index <- 0 to n copyquizmark[index] <- quizmark[index] index <- index+1 END FOR.