C2: Parameters & Shapes

C2: Parameters & Shapes

University

7 Qs

quiz-placeholder

Similar activities

Agatha Christie

Agatha Christie

1st Grade - Professional Development

11 Qs

Your Job Experience

Your Job Experience

University

8 Qs

AIM Hei Syllabus Trivia

AIM Hei Syllabus Trivia

University

8 Qs

chess

chess

1st Grade - Professional Development

10 Qs

Mastery Part 1

Mastery Part 1

9th Grade - University

11 Qs

How to be productive when home working - comprehension quiz

How to be productive when home working - comprehension quiz

11th Grade - Professional Development

10 Qs

QUIZ FOR TODAY'S CLASS(26-08-2020)

QUIZ FOR TODAY'S CLASS(26-08-2020)

University

10 Qs

Habit 6: Synergy Mini Quiz:)

Habit 6: Synergy Mini Quiz:)

University - Professional Development

9 Qs

C2: Parameters & Shapes

C2: Parameters & Shapes

Assessment

Quiz

Life Skills

University

Hard

Created by

Lydia Li

Used 1+ times

FREE Resource

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.