36,206 views
37 votes
37 votes
You want to search for a certain value and then return the index of that

value, which section of MakeCode Arcade's toolbox would you use?
A. Modify
O B. Operations
C. Read
D. Create

User Jleeothon
by
2.9k points

2 Answers

26 votes
26 votes

Final answer:

In MakeCode Arcade, to search for a value and return its index, you would use the "Arrays" block within the Read section of the toolbox.

Step-by-step explanation:

If you want to search for a certain value and then return the index of that value in MakeCode Arcade, you would use the "Arrays" section of the toolbox. There, you can find blocks that allow you to both search for a value in a list and obtain the index of that value. Specifically, you might use a block that helps find the position of a particular item, which corresponds to its index in the array.

Remember, when you're programming, indexing typically starts at 0. So the first position in an array is index 0, the second is index 1, and so on. This can be slightly different than how we usually count in everyday life, where we would start at 1.

So if this were a test question, and you had to choose the correct answer, you would choose C. Read as the correct section for this functionality.

User Delance
by
2.5k points
12 votes
12 votes

Answer: Read

Step-by-step explanation:

took the test

User Bosskovic
by
2.5k points