8. Project Work Period and Practice Quiz¶
Quick Overview of Day
Work period to put the concepts learned so far into practice. Your teacher will have you create a project that uses most of the ideas seen so far – a Rock Paper Scissors game is a nice option.
CS20-CP1 Apply various problem-solving strategies to solve programming problems throughout Computer Science 20.
CS20-FP1 Utilize different data types, including integer, floating point, Boolean and string, to solve programming problems.
CS20-FP2 Investigate how control structures affect program flow.
We won’t be learning anything new today. Instead, you will be given time to work on a project that puts to use many of the ideas that we’ve seen so far. Before you begin working on your project, however, you should try the practice quiz below to confirm that you understand the ideas we’ve seen so far.
8.1. Check Your Understanding¶
- The current sprite would say "Hi" for 1 second, then say "there" for 1 second, then say "everyone" for 1 second.
- No. Be sure to look very carefully at the names of the broadcasts!
- The current sprite would say "Hi" for 1 second, then say "everyone" for 1 second, then say "there" for 1 second.
- Yes! The order is controlled by the names of the broadcasts, not which is higher or lower in your script.
- The current sprite would say "Hi" for 1 second, then say "there" for 1 second.
- No. Be sure to look very carefully at the names of the broadcasts!
scratch-project1: What would happen when you click the green flag, given the code below?
- The current sprite would say "Hi" for 1 second, then say "there" for 1 second, then say "everyone" for 1 second.
- No. Be sure to look very carefully at the names of the broadcasts!
- The current sprite would say "Hi" for 1 second, then say "everyone" for 1 second, then say "there" for 1 second.
- No. Be sure to look very carefully at the names of the broadcasts!
- The current sprite would say "Hi" for 1 second, then say "everyone" forever.
- Yes! Since the 'when I receive alpha' block of code calls itself, it will never stop repeating.
scratch-project2: What would happen when you click the green flag, given the code below?
scratch-project3: Given the code below, how far would the current sprite move when you click the green flag?
scratch-project4: Given the code below, how many times will you hear the meow sound when you click the green flag?
scratch-project5: Given the code below, how far will the current sprite move when you click the green flag?
scratch-project6: Given the code below, what would be the value of x after the following code is executed?
scratch-project7: Given the code below, how many iterations would occur when the following code is executed?
scratch-project8: Given the code below, what would be the value of the “My Number” variable after this code has executed?
scratch-project9: Given the code below, what would be the value of the “My Number” variable after this code has executed?
scratch-project10: Given the code below, what would be the value of the “My Number” variable after this code has executed?
scratch-project11: Given the code below, what would be the value of the “My Number” variable after this code has executed?
scratch-project12: Given the code below, what would be the value of the “My Number” variable after this code has executed?