
C2: Parameters & Shapes
Quiz
•
Life Skills
•
University
•
Practice Problem
•
Hard
Lydia Li
Used 1+ times
FREE Resource
Enhance your content in a minute
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How many distinct issues would you comment on for this implementation of Option 1: Random Regular Shapes?
1
2
3
100
Answer explanation
1. Off by one when generating shape length from 1 to maxSize inclusive
2. New length only randomly generated once outside the for loop
2.
MULTIPLE SELECT QUESTION
2 mins • 1 pt
The following code for "Option 4: Draw Roadmap" would receive an S...why?
Random bound for shape sides is off
Random bound for turn angle is off
Unused parameters
Draw too many destinations/shapes
Answer explanation
1. The random shape must have at least 3 sides
2. With fenceposting, their loop should run (numDestinations - 1) times
*we recommend turn angle to be between 20 and 120 degrees, but student can generate any angle
3.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Students are required to call drawNgon() in which option(s)?
Option 1: Random Regular Shapes
Option 2: Random Changes
Option 3: Draw Grid
Option 4: Draw Roadmap
Application - Create a Picture
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
For application, it's okay if the student doesn't wrap their three method calls in one overall method, as long as they call the three methods in main.
True
False
Answer explanation
Yes
5.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Kailey...(pick three truths about her!)
Is licensed to drive a tractor
Was an extra in a movie
Can play the viola an double bass
Can read/write japanese
6.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
We grade on which of the following code quality things?
Class and method comment
Incorrect naming convention
Long lines
Missing blank line between methods
Indentation
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Missing both class comment and method comments (but no other quality issue) is an ____
E
S
Answer explanation
Class comment and method comment falls into the same category -- counts as one quality issue.
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
9 questions
November All-hands
Quiz
•
University
7 questions
Poems and crafts
Quiz
•
University
12 questions
quiz-sccu
Quiz
•
University
10 questions
Journalizing Transactions
Quiz
•
University
10 questions
PPM Quiz: Meat & poultry
Quiz
•
University
10 questions
Agro-product Packaging
Quiz
•
University
10 questions
Procrastinación
Quiz
•
University
10 questions
FOP_BANANA CHIPS QUIZ
Quiz
•
11th Grade - University
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
Discover more resources for Life Skills
7 questions
How James Brown Invented Funk
Interactive video
•
10th Grade - University
5 questions
Helping Build the Internet: Valerie Thomas | Great Minds
Interactive video
•
11th Grade - University
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
19 questions
Review2-TEACHER
Quiz
•
University
15 questions
Pre2_STUDENT
Quiz
•
University
20 questions
Ch. 7 Quadrilateral Quiz Review
Quiz
•
KG - University
