188k views
5 votes
In MakeCode Arcade, blocks used to make changes to the contents of an

array are found in which section of the "Arrays" category?
O A. Read
O B. Operations
O C. Create
O D. Modify
its d

User Andy Nuss
by
8.6k points

1 Answer

2 votes

Answer: D. Modify

Explanation: The "Modify" section contains blocks that allow you to change the values stored in an array. These blocks provide various options for modifying array elements, such as setting a specific element to a new value or appending a new value to the end of the array.

For example, if you have an array called "scores" that stores the scores of a game, you can use the blocks in the "Modify" section to update the values in the array. Let's say you want to change the score at index 0 to a new value of 100. You can use a block like "set element at" from the "Modify" section, and specify the array "scores" and the index 0. Then, you can input the new value of 100 to update the score at that index.

User Oakcool
by
7.9k points