
Chapter 5 APCSP
Authored by Alexis Galt
Computers
9th - 12th Grade
Used 30+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
28 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What shape would be drawn with this algorithm?
A triangle with side length 100
A five-sided star
A pentagon with side length 100
A rectangle with side length 500
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How could you change this algorithm with parameters to draw any regular polygon with any side length?
I. Replace the 100 with a parameter for side length
II. Replace the 5 with a parameter for number of sides
III. Replace the 72 with 360 divided by parameter for number of sides
I and II
I, II, and III
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
This procedure should draw a square with side legth L, but it has a bug. How can you fix it?
Change the 90 to "get L"
Change the 50 to "get L"
Change the 4 to "get L"
Change the 90 and the 50 to "get L"
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What code should be added to the procedure so that increment(x) adds x to the variable z?
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Define a procedure named procTwoParams that multiplies its two parameters and assigns the result to the global variable Z.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which code would successfully navigate the robot to the shaded square?
moveAndTurn(1, 2)
moveAndTurn(3, 5)
moveAndTurn(0, 3)
moveAndTurn(3, 1)
moveAndTurn(6, 3)
moveAndTurn(3, 1)
moveAndTurn(2, 1)
moveAndTurn(5, 1)
moveAndTurn(2, 1)
moveAndTurn(2, 1)
moveAndTurn(5, 3)
moveAndTurn(2,0)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which is a procedure that would NOT take a parameter?
A procedure that greets your user by name
A procedure that draws a line segment of a certain length
A procedure that doubles a number
A procedure that resets all of your global variables to 0
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?