October 28, 2016 Meeting

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.

screenshot-2016-10-22-14-25-58

https://scratch.mit.edu/projects/127025645/

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s