Search Header Logo
CMU CS Academy 2.3.1 General Shape Properties

CMU CS Academy 2.3.1 General Shape Properties

Assessment

Presentation

Computers

9th - 12th Grade

Practice Problem

Easy

Created by

Maria Cruz Farooqi

Used 2+ times

FREE Resource

1 Slide • 12 Questions

1

CMU CS Academy
2.3.1 General Shape Properties.

Learning Target: I can recognize and change different shape properties, like position and size, and use math operations to see how these changes affect the shape's appearance.

By Maria Cruz Farooqi

2

Dropdown

Question image

Position Properties

The position properties are: left, ​
, top, ​
, centerX, and ​
.

3

Multiple Choice

Question image

Which of the following are not position properties?

1

right and bottom

2

centerX and centerY

3

width and height

4

left and top

4

Dropdown

Question image

Size Properties

The size
are: ​ width and ​
.

5

Dropdown

Question image

Align Property

The ​
property can be useful when ​
a shape and aligning it in ​
.

6

Dropdown

Question image
There are ​
legal values for align -- the same as the ​
for a gradient. The previous example shows 5 of these 9 legal values. Here we see see an image showing ​
.

7

Multiple Choice

Question image

What error prints in the console when you run the previous code and then click the mouse?

1

You can't get or set the align property

2

We can only use align when we first create a shape.

3

Don't do that!

4

There is no error message.

8

Dropdown

Question image

Fill and Border Properties

The ​
and border properties are: fill, ​
, borderWidth, ​
, and dashes.

9

Multiple Choice

Which of the following are not fill and border properties?

1


fill and border

2


opacity and dashes

3

borderWidth

4


gradient and rgb

10

Dropdown

Question image

Other Properties

Some other ​
include: ​
and visible.

11

Multiple Choice

Question image

Which rectangle turns counterclockwise when you click the mouse in the previous example?

1


none of them

2


the blue one (r2)

3

the red one (r1)

4

the green one (r3)

12

Dropdown

Question image

Changing Properties

Now that we know about all these shape properties, we will want to know how we can ​
them. We can use += ​
to a property, and - = ​
from it.

13

Multiple Choice

Question image

In the previous example, what happens if we change this line:

r 1.centerX += 10

to this:

r 1.centerX -= 10

1

The gold rectangle would move up.

2

The gold rectangle would move to the left.

3


The gold rectangle would move down.

4

The gold rectangle would move to the right.

CMU CS Academy
2.3.1 General Shape Properties.

Learning Target: I can recognize and change different shape properties, like position and size, and use math operations to see how these changes affect the shape's appearance.

By Maria Cruz Farooqi

Show answer

Auto Play

Slide 1 / 13

SLIDE