Font size
WorksheetsAPCSP 3.7 Debugging
Total questions: 10
Worksheet time: 15mins
If you want to see each line of code highlighted as your program runs, you should ...
move the slider to the rabbit and flip the code to block mode.
move the slider to the rabbit and flip the code to text mode.
move the slider to the turtle and flip the code to block mode.
move the slider to the turtle and flip the code to text mode.
Which line(s) of code will cause the code to stop running due to an error and why?
1. "screen1" is not named properly
2. The word "text" should be in quotes
4. The word "blue" should not be in quotes
5. The word "Arial" should be in quotes
What are the dimensions of a screen in app lab?
width = 2.5 inches, height = 4.25 inches
width = 320 pixels, height = 450 pixels
they vary, the screen can be resized
width = 340 mm, height = 560 mm
When should you put an onEvent block inside another onEvent block?
Only when you are playing sounds.
Anytime you want to make your code shorter.
You almost always want to do this.
You almost never want to do this.
What do we call the process of finding and correcting errors in our code?
(a)
Sometimes app lab can identify a bug in your code before you even run it. What symbol does app lab use to indicate a problem with your code?
a red "X"
a yellow triangle
a blue exclamation mark
a green question mark
There is no need to debug your code as long as it runs without producing an error.
True
False
This code will produce colors that are random shades of ...
reds and oranges
purples and pinks
blues and greens
yellows and browns
Determine the x and y properties to place this duck image in the center of the screen as shown. Type your answer like this: x=# y=# (replace the #s with the appropriate values)
(a)
Which statement(s) are true about sequential vs event driven programming?
Event driven programs run the same way every time.
In event driven programs, some statements could be triggered by a mouse click.
In sequential programs, the statements run in order from top to bottom.
Sequential programs require user interaction.
