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
copyquizmark[n] <- quizmark[n]
B
We cannot copy the values from one array to another.
C
copyquizmark <- quizmark
D
FOR index <- 0 to n copyquizmark[index] <- quizmark[index] END FOR
Correct answer: FOR index <- 0 to n copyquizmark[index] <- quizmark[index] END FOR
Explanation
Correct answer: FOR index <- 0 to n copyquizmark[index] <- quizmark[index] END FOR.