WorksheetsCode.org Unit 3 Lesson 3 and 4
Total questions: 15
Worksheet time: 9mins
What is x value in the following code?
rect(250, 200, 75, 225);
250
200
75
225
What is y value in the following code?
rect(250, 200, 75, 225);
250
200
75
225
What is width of the rectangle in the following code?
rect(250, 200, 75, 225);
250
200
75
225
What is height of the rectangle in the following code?
rect(250, 200, 75, 225);
250
200
75
225
The common programming structure that implements "conditional statements".
IF Statement
Boolean
Expression
Variable
Finding and fixing problems in an algorithm or program.
Parameter
Animation
FRame
Debugging
1. When is a good time to use a parameter?
Choice A: When you need to repeat the same line of code multiple times without re-writing it each time
Choice B: When you need to change the height, length, or size of something you are coding
Both A and B
Neither A nor B
This is a type of code that allows you to repeat a certain code over and over again without having to manually put it in.
Function
Parameter
Loop
API
An extra piece of information that you pass to the function to customize it for a specific need:
Packets
Parameter
Chunk
Data
Placing Lines 1-9 of your algorithm in a particular order shows which of the following is important?
Sequencing
Selection
Iteration
