Before you keep reading...
Runestone Academy can only continue if we get support from individuals like you. As a student you are well aware of the high cost of textbooks. Our mission is to provide great books to you for free, but we ask that you consider a $10 donation, more if you can or less if $10 is a burden.
Before you keep reading...
Making great stuff takes time and $$. If you appreciate the book you are reading now and want to keep quality materials free for other students please consider a donation to Runestone Academy. We ask that you consider a $10 donation, but if you can give more thats great, if $10 is too much for your budget we would be happy with whatever you can afford as a show of support.
5.6. Quiz App Projects Loops with Lists¶
This lesson reinforces the use of if/else statements and lists to keep accurate score in the Quiz app and introduces loops with lists by adding a search function which also uses a procedure with a parameter. Students are also given an opportunity to express their creativity by creating their own version of a quiz app on a different topic, and by adding an enhancement of their choosing to the app. The AP CSP pseudocode for lists is also reviewed.
The Student Lesson: Complete the activities for Mobile CSP Unit 5: Lesson 5.6 Quiz App Projects.
- Presentation system (LCD projector/Interactive whiteboard)
- Access to computer, laptop, or Chromebook (install the Companion app on Chromebooks)
- Access to mobile device with the Companion app installed or access to the emulator installed on the computer or laptop.
- Loops with Lists Video
- Loops with Lists Slides
5.6.1. Learning Activities¶
Estimated Length: 90 minutes
- Hook/Motivation (10 minutes): The previous lesson focused on using a ListPicker component and creating lists to manage data. Recall with an elbow partner how you designed your app to manage the question and answer data in the Quiz tutorial. What component did you use and how did you represent the questions and answers in this lab? What are some possible enhancements you could do?
- Experiences and Explorations (25 minutes): Show the intro and loops with lists videos or present the information using the slides. Direct students to the Quiz App Mini Projects. Students work in pairs to complete the mini projects on their own.
- For mini project #1, keeping score accurately, you could demonstrate how the app can be "hacked" to earn higher scores if you only add a score variable without keeping track of whether a question has already been answered. (Hint: Answer any question correctly then click the Answer button repeatedly.)
- For mini project #2, talk about how a loop can be used to iterate through a list.
- As they work on their own quiz and enchancement (mini project #3), students should share and test their quizzes with each other to get feedback.
- Rethink, Reflect and/or Revise (10 minutes): Students make a new entry in their portfolios where they describe the modifications and enhancements that they made to the Quiz app. Also, ask the students to reflect on their programming experience. Discuss the the solutions to the mini projects as a class, especially the use of a list and the algorithm for keeping score and the loop for a search. Students should check their understanding by completing the interactive exercises. Any unfinished work should be completed as homework.
The College Board's AP Classroom provides a question bank and Topic Questions. You may create a formative assessment quiz in AP Classroom, assign the quiz (a set of questions), and then review the results in class to identify and address any student misunderstandings.The following are suggested topic questions that you could assign once students have completed this lesson.
Suggested Topic Questions:
- Topic 3.10 Lists
Assessment Opportunities and Solutions
Solutions Note: Solutions are only available to verified educators who have joined the Teaching Mobile CSP Google group/forum in Unit 1.
You can examine students’ work on the interactive exercise and their reflection portfolio entries to assess their progress on the following learning objectives. If students are able to do what is listed there, they are ready to move on to the next lesson.
- Interactive Exercises:
- Portfolio Reflections:
LO X.X.X - Students should be able to ...
- In the Quiz App Projects app, look for: use of a loop with lists
#1 Keeping Accurate Score - students should create a list the same size as the number of questions with each value set to false. When a correct answer is given, the corresponding spot in the list is then changed to true. The scoring algorithm should be updated so that it only increments the score if the initial value was false.
#2 Search - search of NASA brings up the right question. A loop is used.
#3 New Quiz - students should create a new quiz but with different questions, images, and answers. Algorithms should remain the same, but the media and question and answer lists content will be different.
Differentiation: More Practice
If students are struggling with lesson concepts, have them review the following resources:
Students could take a look at other quiz apps in the Play store and brainstorm other enhancements to the quizzes that they could then implement.
Background Knowledge: Lists
5.6.2. Professional Development Reflection¶
Discuss the following questions with other teachers in your professional development program.
I am confident I can teach this lesson to my students.
- 1. Strongly Agree
- 2. Agree
- 3. Neutral
- 4. Disagree
- 5. Strongly Disagree