

Graphic Programming Basics Flashcard
Flashcard
•
Computers
•
9th Grade
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

9 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What does the getWidth() function return?
Back
The width of the canvas
2.
FLASHCARD QUESTION
Front
In the coordinate system, what are the coordinates of the top-left corner? Options: (100, 100), (0, 0), (200, 0), (0, 100)
Back
(0, 0)
3.
FLASHCARD QUESTION
Front
What is the correct way to create a circle with a radius of 30? Options: `var circle = new Rectangle(30);`, `var circle = new Circle(30);`, `var circle = Circle(30);`, `var circle = new Shape(30);`
Back
`var circle = new Circle(30);`
4.
FLASHCARD QUESTION
Front
What function is used to position a circle on the canvas?
Back
`circle.setPosition(x, y);`
5.
FLASHCARD QUESTION
Front
How do you add a rectangle to the canvas? Options: `add(rect);`, `draw(rect);`, `append(rect);`, `addRectangle(rect);`
Back
`add(rect);`
6.
FLASHCARD QUESTION
Front
What are the dimensions of the rectangle created with `new Rectangle(100, 50);`?
Back
100 pixels wide and 50 pixels tall
7.
FLASHCARD QUESTION
Front
What does the function `add(text)` do?
Back
Adds the text to the canvas
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?