Search Header Logo

3.3.1 Drawing Rectangles and Using Colors in Programming

Authored by Christina LaBarron

Computers

11th Grade

130 covered

Used 1+ times

3.3.1 Drawing Rectangles and Using Colors in Programming
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What function is used to convert RGB values into a usable color in cmu_graphics?

rgb

color

fill

draw

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Fill in the blank: To set the border color of a rectangle, you use the parameter ____.

border

fill

color

width

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT an optional argument in the drawRect function?

A) border

B) rotateAngle

C) top

D) opacity

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following colors is used in the example to fill a rectangle using the rgb function?

Pistachio

Cyan

Black

Blue

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the 'borderWidth' parameter in the drawRect function?

To change the color of the rectangle

To change the width of the rectangle's border

To change the height of the rectangle

To change the fill color of the rectangle.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Fill in the blank: An opacity of 0 means the shape is completely ______.

A) visible

B) transparent

C) opaque

D) colored

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the example code, what is the rotateAngle set to for the green rectangle?

0

10

30

45

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?