Quiz App
Creative Project
DragAndDropCode.com, David Wolber
Model: Chapter 4 App
DragAndDropCode.com, David Wolber
What to Build?
DragAndDropCode.com, David Wolber
Process
DragAndDropCode.com, David Wolber
Quiz Code Highlights: ListViewer
Simple List
set SimpleList1.text items to some list to show in on screen. In this case, set it to one of the sublists in answerChoicesList
Note: Need to this in Next/Prev as well.
DragAndDropCode.com, David Wolber
Quiz Code Highlights: Check User’s Answer
Simple List
green boxes are called event parameters
item is the text chosen (e.g., Houston Texas)
index is the position of the chosen item (e.g., 3)
code above checks if item same as the actual answer in answerList. How else could answer have been checked?
DragAndDropCode.com, David Wolber
Quiz Code Highlights: Check User’s Answer
Simple List
You’ll need to add code to keep score and add sound effects
You may want to disallow answering each question more than once...how would you do this?
DragAndDropCode.com, David Wolber
What will you build?
Name your app and come up with a one-sentence description
What special feature will you add?
Discuss with your partner then write on whiteboard.
DragAndDropCode.com, David Wolber