C2: Parameters & Shapes

C2: Parameters & Shapes

University

7 Qs

quiz-placeholder

Similar activities

Life and Career Skills

Life and Career Skills

University

10 Qs

comp. accounting quiz 9

comp. accounting quiz 9

University

10 Qs

Trách nhiệm của mỗi cá nhân với mạng xã hội

Trách nhiệm của mỗi cá nhân với mạng xã hội

University

12 Qs

Road Safety By- Ishan & Advaith S.K.

Road Safety By- Ishan & Advaith S.K.

KG - Professional Development

10 Qs

Time Management

Time Management

University

10 Qs

NẤU ĂN Ở NHÀ (COOKING AT HOME)

NẤU ĂN Ở NHÀ (COOKING AT HOME)

University

10 Qs

USS-100 Quiz 8

USS-100 Quiz 8

University

10 Qs

IM Academy

IM Academy

12th Grade - Professional Development

11 Qs

C2: Parameters & Shapes

C2: Parameters & Shapes

Assessment

Quiz

Life Skills

University

Practice Problem

Hard

Created by

Lydia Li

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

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

Media Image

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?