Software Engineering
Accenture PrimermediumSoftware Engineering05 Arrays

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

Correct answer: FOR index <- 0 to n copyquizmark[index] <- quizmark[index] index <- index+1 END FOR

Explanation

Correct answer: FOR index <- 0 to n copyquizmark[index] <- quizmark[index] index <- index+1 END FOR.

Related Accenture Software Engineering questions

Practice more Accenture Software Engineering questions

PrimerDumps has 1400+ primer questions, 2026 mocks and coding hands-on — all free.