Answer the following questions:
1. Describe the significance of the global variable index. How is indexing used with lists in this app?
Answer
The significance of the global variable index is that it corresponds with each of the lists and causes the lists to display whatever it is set to 1 through 4.Indexing is used with lists in this app because all the lists correspond to the index variables value.
2. Describe how parallel lists were used in this app. Why was the parallel structure of the lists necessary?
Answer
The lists were the answer list, question list, and picture list. They are necessary because they all are parallel so they are ordered in the same way with corresponding pictures, questions, and answers.
3. Include screenshots of your code for exercises 2 and 3 from the Enhancements section.
4. Include a screenshot of the code that added your extra question (exercise 4). Explain why the code for the buttons worked without any changes after the addition of the extra question.
Answer
The code for these buttons work without any changes after adding the extra question because the questions are still indexed in the same parallel way, meaning that the list goes up to value 4, not 3.