Ask Question
24 March, 03:23

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]

+3
Answers (1)
  1. 24 March, 03:32
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers