Drawing Shapes with Code

Drawing Shapes with Code

Assessment

Interactive Video

Computers, Design, Arts

5th - 8th Grade

Practice Problem

Hard

Created by

Ethan Morris

FREE Resource

The video tutorial covers the use of the 'ellipse', 'rect', and 'line' functions in drawing shapes. It explains how to adjust parameters for these functions, the importance of using comments for code clarity, and the significance of the order in which shapes are drawn. The tutorial also demonstrates converting a human face into a robot face using rectangles and adding a unibrow with a line, emphasizing the need for parameter adjustments and the impact of drawing order on visibility.

Read more

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the third parameter in the 'ellipse' function used for?

Width

Y-coordinate

Height

X-coordinate

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the 'rect' function, what do the first two parameters represent?

Center of the rectangle

Start and end points

Width and height

Upper left corner of the rectangle

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why might a rectangle appear in a different position than an ellipse with the same parameters?

The parameters are interpreted differently

The rectangle is larger

The ellipse is smaller

The rectangle is drawn last

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a good practice to get the right numbers for drawing shapes?

Use only even numbers

Guess and check

Draw on graph paper first

Use random numbers

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of adding comments in code?

To change the appearance of shapes

To make the code run in a specific order

To help humans understand the code

To execute the code faster

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What do the last two parameters in the 'line' function specify?

Color and thickness

X and Y coordinates

Width and height

Start and end points

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you ensure a line is drawn straight across?

Use the same y-coordinate for start and end

Use different start and end points

Use the same x-coordinate for start and end

Make the line width zero

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?

Similar Resources on Wayground