14.3k views
5 votes
Given an array of exam scores, how is the variable 'newscore' assigned?

(a) newscore=examscore[index−1]
(b) newscore=examscore[index+1]
(c) newscore=examscore[index]
(d) newscore=examscore[index×2]

1 Answer

4 votes

Final answer:

The variable 'newscore' is assigned as the exam score at a specific index in the array.

Step-by-step explanation:

The variable 'newscore' is assigned by taking the exam score at a specific index in the array. The correct assignment is (c) newscore=examscore[index]. This means that the value of 'newscore' will be the exam score at the given index.

User KrzysDan
by
7.8k points
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.