1. Describe the significance of the global variable index. How is indexing used with lists in this app?
The global variable index specifies which question the quiz is on. If it is equal to 1, then the app will use the first element from each list, so the picture, question text, and answer will all match each other.
2. Describe how parallel lists were used in this app. Why was the parallel structure of the lists necessary?
There are three different parallel lists used in this app. These were necessary because there is a list for all of the questions, a list for all of the answers, and a list for all of the pictures. You cannot put all of these things in the same list because they correspond to each other and need to be called simultaneously for the quiz to function correctly.
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.
The code for the buttons worked because it does not count the number of questions individually, it compares the size of the list with the global index and if the global index is bigger the quiz restarts from question one. Thus, you can make the quiz however many questions long as you like and the code for this will still work.