Question: 1.) What is the purpose of using arrays in programming? 2.) Provide a concrete example of when you would use an array to solve a

1.) What is the purpose of using arrays in programming?

2.) Provide a concrete example of when you would use an array to solve a programming problem.

3.) What is a subscript as it relates to arrays? As a second part of this question, what is another name used for subscript?

4.) What does it mean to populate an array?

5.) Provide an example of when you would want to initialize an array when the array is declared.

6.) Explain what "out of bounds" means in relationship to subscript bounds. As part of your answer, provide an example of going "out of bounds" of an array.

7.) Consider an array named students of size 10 is declared. This array holds the last name of all 10 students in the class. It would then be possible to loop through this array and print out all the last names. Why would this not be possible if using separate variable names (student1, student2, student3...etc.) in place of the array? Explain.

8.) Explain why programmers often use for loops in place of while loops to loop through an array. What is the advantage?

9.) Consider the array named students of size 10. What would be the subscript of the first element in the array? What would be the subscript of the last element in the array?

10.) Once more, consider the array named students of size 10. If a variable named index exists, you can access an array element in pseudocode with the following expression:

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!