Unit 4 Javascript Graphics Quiz Review
Quiz
•
Computers
•
12th Grade
•
Practice Problem
•
Medium
Katy Fleming
Used 3+ times
FREE Resource
Enhance your content in a minute
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Where is the anchor point of a Text object located?
Top left
Top right
Center
Bottom left
Bottom right
Answer explanation
Good job! The anchor point of a Text object is located at the bottom left.
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
The following program should draw a circle on the screen, but when we run this code, we don’t see the circle. What is missing from our main function?
We never set the circle’s radius.
We need to add the line
circle.setRadius(40);
After line 4
We are setting the position of the ball to be off the canvas.
We need to change line 3 to be
circle.setPosition(0, 0);
We are creating the circle incorrectly. We need to specify the width and height.
We need to change line 2 to be
let circle = new Circle(40, 40);
We create the circle and position it correctly on the screen, but we never add it to the screen.
We need to add the line
add(circle);
after line 4
Answer explanation
Good job! In order to add an object to our canvas, we need to use the add function.
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Where is the anchor point of a rectangle located?
Top left corner
Top right corner
Center
Bottom left corner
Bottom right corner
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Consider the following code of a circle:
If we wanted to move the circle 10 pixels to the left, what change would we need to make?
Add 10 to line 1:
1 let circ = new Circle(60);
Subtract 10 from the first number on line 2:
2 circ.setPosition(190, 200);
Subtract 10 from the second number on line 2:
2 circ.setPosition(200, 190);
Add 10 to the first number on line 2:
2 circ.setPosition(210, 200);
Add 10 to the second number on line 2:
2 circ.setPosition(200, 210);
Answer explanation
Good job! The first value of setPosition controls the horizontal positioning of an object. Increasing the number will move an object to the right and decreasing the number will move an object to the left.
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What are the x and y coordinates of the following point on the grid?
(300, 200)
(200, 300)
(200, -300)
(-300, 200)
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Where is the anchor point of a circle located?
Left edge
Right edge
Center
Top edge
Bottom edge
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What function do you need to call to get the width of the canvas?
width();
getWidth();
canvasWidth();
getCanvasWidth();
8.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
True or False: All Text objects are enclosed by a rectangular box.
True
False
Similar Resources on Wayground
10 questions
emtech
Quiz
•
12th Grade
10 questions
Visual Basic 2010
Quiz
•
8th Grade - University
12 questions
1.2.4. Types of Programming Language
Quiz
•
12th Grade
11 questions
Types of Mass Media
Quiz
•
10th Grade - Professi...
10 questions
Quiz 8 (01.09.2021)
Quiz
•
1st - 12th Grade
8 questions
Basic computer
Quiz
•
9th - 12th Grade
10 questions
Cap Cut
Quiz
•
12th Grade
10 questions
ICT as Platform for Change
Quiz
•
11th - 12th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
15 questions
Christmas Song Emoji Pictionary
Quiz
•
7th - 12th Grade
20 questions
Christmas Movies
Quiz
•
1st - 12th Grade
55 questions
CHS Holiday Trivia
Quiz
•
12th Grade
20 questions
Christmas Movie Trivia
Quiz
•
9th - 12th Grade
29 questions
christmas facts
Lesson
•
5th - 12th Grade
20 questions
Christmas Trivia
Quiz
•
5th - 12th Grade
20 questions
Stages of Meiosis
Quiz
•
9th - 12th Grade
