3.3.1 Drawing Rectangles and Using Colors in Programming

3.3.1 Drawing Rectangles and Using Colors in Programming

11th Grade

15 Qs

quiz-placeholder

Similar activities

Digital Information

Digital Information

10th - 12th Grade

17 Qs

CMU Graphics Rectangles etc

CMU Graphics Rectangles etc

9th - 12th Grade

18 Qs

Game Lab Basics

Game Lab Basics

9th - 12th Grade

20 Qs

CMU Academy 1.2

CMU Academy 1.2

9th - 12th Grade

14 Qs

Ch 07_Publishing Awesome

Ch 07_Publishing Awesome

9th - 12th Grade

20 Qs

CP M.6 Assessment Review

CP M.6 Assessment Review

9th - 12th Grade

17 Qs

LocoRobo LEDs

LocoRobo LEDs

5th - 12th Grade

14 Qs

6 - Color Photoshop Tutorial

6 - Color Photoshop Tutorial

9th - 12th Grade

18 Qs

3.3.1 Drawing Rectangles and Using Colors in Programming

3.3.1 Drawing Rectangles and Using Colors in Programming

Assessment

Quiz

Computers

11th Grade

Easy

130.93

Standards-aligned

Created by

Christina LaBarron

Used 1+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?