We will meet in the board room at 25N at 5:45 tonight.
Tonight’s Agenda:
- Welcome & Introductions for anyone new tonight
- Breifly review
- Variables
- Loops – specifically infinite loops!
- Conditionals
- Procedures
- Sample AP Exam Question: We will analyze Sample Question #17 for the AP Computer Science Principles Course and Exam shown below.
- Let’s see if we can build our own infinite loop in Scratch.
#17. Consider the following program code:
i = 0 sum = 0 REPEAT UNTIL i = 4 { i = 1 sum = sum + i i = i + 1 }
Which of the following best describes the result of running the program code?
a) The number 0 is displayed
b) The number 6 is displayed
c) The number 10 is displayed
d) Nothing is displayed; the program results in an infinite loop.
Not sure what the answer is? Play the Scratch project!
This Scratch Project brings to life Sample Question #17 for the AP Computer Science Principles Course and Exam Description.