Ask Question
4 December, 00:45

Glven an array named Scores with 25 elements, what is the correct way to assign the 25th element to myScore? A. myScores + 25 B. myScore Scores[24] C. myScore Scores[25) D. myScore= = Score[last]

+4
Answers (1)
  1. 4 December, 00:56
    0
    myScore Scores[24]

    Explanation:

    The array is used to store the data in continuous memory location.

    The index of array start from zero, it means first element store in the index zero and second element store in the index 1. So, the index at which the element store is less than 1 from the number of element.

    so, the last element is 25 - 1=24.

    Option A: myScores + 25

    It is not the correct way to store the element.

    Option B: myScore Scores[24]

    it is the correct form and also the index location is correct.

    Option C: myScore Scores[25)

    index number is wrong and also the bracket is wrong, it must be [ ].

    Option D: myScore= = Score[last]

    It is not the correct way to store the element.

    There, the correct option is B.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Glven an array named Scores with 25 elements, what is the correct way to assign the 25th element to myScore? A. myScores + 25 B. myScore ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers