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?
The index variable is very useful, in this case for determining what the current question should be and therefore what the correct answer should be. Indexing allows a programmer to reference lists, enhancing the abilities of data abstraction.
Using what you have learned about lists and indexing, how might you enhance this app so that it is a multiple choice quiz?
You could make this app to be multiple choice by adding a list for the answer choices. Then instead of the answer itself, the answer list should include which number answer is the correct one. In this way the answer list can reference the index of the answer choices list.