Ask Question
1 May, 16:12

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]

+5
Answers (1)
  1. 1 May, 17:24
    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?
Get 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 & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers