
Chapter 5 APCSP
Authored by Alexis Galt
Computers
9th - 12th Grade
Used 29+ 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?
Similar Resources on Wayground
25 questions
KIEM TRA TX-K11 (BO SUNG)
Quiz
•
11th Grade - University
25 questions
TIK01
Quiz
•
12th Grade
25 questions
Test IP
Quiz
•
12th Grade
24 questions
Computer Architecture A Level CS
Quiz
•
10th - 11th Grade
25 questions
Programming in Python
Quiz
•
9th Grade
26 questions
Macromedia Flash
Quiz
•
8th Grade - Professio...
25 questions
ANIMASI 2D PAS GANJIL KISI-KISI 2023
Quiz
•
11th Grade
25 questions
TAD Quiz SAS
Quiz
•
11th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade