Font size
WorksheetsAP CSP code.org Unit 3 2020
Total questions: 10
Worksheet time: 5mins
Any programming language that lets users create programs by manipulating “blocks” or graphical programming elements, rather than writing code using text.
Command
Run Program
Algorithm
Block-based programming language
A sequence of steps written in a programming language that can be followed to solve a problem, especially by a computer.
Debug
Event
Algorithm
Computer Program
An error in a program that prevents the program from running as expected
onEvent
Bug
Moth
Fly in the Ointment
Statements that should only run upon a specific user action should be placed
inside an onAction block
below an onEvent command
after the first programming statement
within an onEvent programming statement
Finding and fixing problems in an algorithm or program
Debugging
Event Driven Programming
Run Programs
Algorithms
Cause the computer to execute the commands you've written in your program
console.log
Run Program
Debug
onEvent
A single instruction for the computer. Put many together and you get algorithms and computer programs.
Algorithm
onEvent
console.log
Command
A set of steps you can follow in order to solve a problem or achieve a result often written down in regular spoken language.
Debugging
Event
Algorithm
Computer Program
When the user hovers their mouse over the hawk, the
both birds will appear only in the middle of the screen
The sparrow will be confined to the upper right and the hawk to the upper left
The sparrow will be confined to the lower right and the hawk to the upper left
The sparrow will be confined to the lower left and the hawk to the upper right
Choose all the correct options. When debugging, you should
run the program over and over, staring really hard at it
add some console.log statements to see what is going on
describe your program and the odd behavior to a friend
reduce the amount of code and see if the behavior improves
