Week 10
Practice
Practice Materials
Parsons Problems
These problems present the complete code for a program, but in a mixed-up order. Your task is to arrange the pieces correctly to "write" the described program. These problems are a great first step in learning because they allow you to focus on the semantics of programming rather than the syntax.
- 5.15. Mixed-up Code Questions
- Problem 7
- Problem 8 - This one is challenging. Do what you can to figure it out!
"Solutions" for these two programs are included in the Code Walkthrough section below.
Debugging Problems
Fixing programs that are "almost" correct but not yet functional is a crucial skill. As teachers, we often assume students will develop this skill by debugging their own work. However, it can be beneficial to provide explicit practice in debugging. The following problem is designed to give you semi-guided practice in debugging.
The solution for this program is included in the Code Walkthrough section below.
(Paired) Practice Programs
Each week, I will provide you with several practice programs (non-graded) that I encourage you to attempt, with your partner, before tackling the graded assignments.
Additional Textbook Activities
These are great for some additional practice. You should complete these on your own rather than with a partner.
- 5.14. Multiple Choice Questions
- 5.15. Mixed-up Code Questions
- Remember that you can switch these to "Write Code" mode
- 5.16. Write Code Questions