President Quiz: Build, Conceptualize, Customize


Build It

  1. Open a browser and navigate to http://beta.appinventor.mit.edu. Login with your Google account.
  2. Now build the President Quiz app. Follow the instructions in App Inventor chapter 6 using either the paperback version, the pdf version, or the step-by-step video lesson.

Conceptualize It

After completing the Quiz tutorial, discuss these questions with a partner or small group, jotting down notes while you discuss. Later, create a portfolio page with answers to the questions in your own words.

  1. What variables are defined for the quiz app? What is the purpose of each?
  2. The app has a Next button but not a Previous button so the user cannot navigate backward in the test. Suppose you wanted to allow two-way navigation. Sketch the blocks for the PreviousButton.Click event-handler
  3. Does the quiz have fixed data or user generated data? How useful is the app for general use?
  4. Describe how you would convert the app so that a user could change the questions
  5. In the quiz app how exact must the answer be to get it correct? How could you modify the app so that it grades more flexibly? To answer this question, explore the operations in the Text palette within the App Inventor blocks editor.
  6. How would you change the quiz so that the answers are multiple choice?

Customize It

  1. Change the "grading" of the user's answers so that a provided answer is correct even if it not the same case (upper/lower) as the given answer. So 'NEWSOM' or 'newsom' or 'nEwSoM' would be correct for the answer 'Newsom'
  2. When the user gets to the last question and clicks next, the first question appears. Change this so that 1) there is also a previous button to go back in the test, and 2) the next and previous buttons are grayed out (disabled) at appropriate times.
  3. Play question-specific music or video along with each question
  4. Create a multiple choice quiz
Solution for Customization Exercises<part 1/a>,part 2/a>. Download these zip files, then open App Inventor and choose More Actions | Upload Source.