What does the getWidth() function return?

Graphic Programming Basics Flashcard

Flashcard
•
Computers
•
9th Grade
•
Hard
Quizizz Content
FREE Resource
Student preview

9 questions
Show all answers
1.
FLASHCARD QUESTION
Front
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
8.
FLASHCARD QUESTION
Front
What color will the circle be in the code: `circle.setColor(Color.blue);`?
Back
Blue
9.
FLASHCARD QUESTION
Front
How do you define the text "Hello World" in the program?
Back
`var text = new Text("Hello World");`
Similar Resources on Quizizz
6 questions
Kindergarten Shapes and Colors

Flashcard
•
KG
10 questions
Shapes

Flashcard
•
KG
10 questions
Shapes

Flashcard
•
KG
14 questions
CMU Unit 2.2.4 and 7.2 Variables

Flashcard
•
9th Grade
2 questions
Area and Perimeter

Flashcard
•
8th Grade
10 questions
Unit 3- Lesson 3 & 4 Game Lab Vocab

Flashcard
•
6th - 8th Grade
5 questions
p5.js activity

Flashcard
•
9th - 12th Grade
11 questions
Code.org Unit 3 Assessment Lessons 3-9

Flashcard
•
8th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University