1 of 8

Quiz App

Creative Project

DragAndDropCode.com, David Wolber

2 of 8

Model: Chapter 4 App

DragAndDropCode.com, David Wolber

3 of 8

What to Build?

  • Trivia app�
  • Study guide for one of your classes, or for some test, e.g., citizenship test�
  • Name that Tune�
  • An Educational Trivia app for your little niece or nephew�
  • Be Creative!�
  • Make something that will be used in real life!

DragAndDropCode.com, David Wolber

4 of 8

Process

  1. Build the Chapter 4 quiz app if you haven’t. �-- Use the chapter or the video below chapter at https://draganddropcode.com/bookch4/
  2. Collect/Device your questions, multiple choice answers, and media�
  3. Customize the quiz app you built with your own stuff�
  4. Code the details in the rubric
    1. Add previous button
    2. Don’t wrap around, add code to disable/re-enable prev/next
    3. Keep score-- somehow keep track of and show user how they’ve done on quiz
    4. sound effects on answers
    5. at least one sound clip or video for a question
    6. splash screen
    7. nice UI
    8. one feature of your own

DragAndDropCode.com, David Wolber

5 of 8

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

6 of 8

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

7 of 8

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

8 of 8

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