Activity 01
Pair Programming: Quiz Score Saver
Pairs create a 5-question quiz program. Prompt answers, save correct ones in a list using append(). Write a load function to sum scores and display results. Test with different inputs and debug resets.
Explain why data persistence is important for many applications.
Facilitation TipDuring Pair Programming: Quiz Score Saver, encourage partners to swap roles every five minutes so both see the data flow from input to storage.
What to look forAsk students to write down one reason why data is lost when a program closes. Then, have them describe one way they could make a program 'remember' a user's favorite color during a single run.