Describe the significance of the global variable index. How was it used in this app? Based on your answer, why might indexing be important in programming?
Answer
The index made it easy to use the same screen setup in order to allow all of the questions, linked with all of their answers and photos, to be included with the list. This made it really easy to add more questions after creating the quiz. Having to create a new screen for each question would have been tedious and would have limited a great deal of enhancements later on.
Using what you have learned about lists and indexing, how might you enhance this app so that it is a multiple choice quiz?
Answer
By making the quiz multiple choice, it would need to change the question text to include a list of possible answers with a letter associated with it from the answer index.