Which of these lines of JS code are syntactically correct?

Programming Practice

Quiz
•
Computers
•
8th Grade
•
Hard
Saif Alghlayini
Used 2+ times
FREE Resource
19 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
rect(100, 100, 50, 50);
rect[100, 100, 50, 50];
rect(100 100 50 50);
rect(100, 100, 50, 50):
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these lines of JS code are syntactically correct?
ellipse(100; 100; 50; 50);
ellipse(100 100 50 50);
ellipse (100, 100, 50, 50)
ellipse(100, 100, 50, 50);
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the Khan Academy programming environment, where is the point (0, 0)?
upper left corner
center
upper right corner
lower left corner
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
How many parameters should you pass to the line() function?
1
2
4
6
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of these function calls draws a perfect circle?
ellipse(100, 100, 200, 50);
ellipse(50, 200, 100, 100);
ellipse(50, 100, 100, 200);
ellipse(100, 50, 200, 100);
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
For the line() function, what numbers should you pass to the third and fourth parameters?
The width and height of the line
The end x position and end y position of the line
The amount to rotate and skew the line
Your 2 favorite numbers in the world
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these function calls draws a square?
rect(100, 100, 75, 60);
rect(75, 60, 100, 100);
rect(100, 60, 75, 100);
rect(60, 100, 100, 75);
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
CSD Unit 3 - Week 1 (L1-L5)

Quiz
•
7th - 8th Grade
17 questions
TURINGLAB - IMAGES AND SHAPES

Quiz
•
7th Grade - University
16 questions
Tournament 2 - B

Quiz
•
3rd - 12th Grade
19 questions
Animations and Games L.3-5

Quiz
•
7th - 8th Grade
22 questions
Code.org Game Lab 1 Shapes

Quiz
•
8th Grade
15 questions
Javascript Assessment

Quiz
•
6th - 8th Grade
20 questions
3rd 9 weeks test 2025 CF II

Quiz
•
6th - 8th Grade
20 questions
Computer Science Discoveries Unit 3 L1 - L 9

Quiz
•
7th - 12th Grade
Popular Resources on Quizizz
10 questions
Chains by Laurie Halse Anderson Chapters 1-3 Quiz

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
15 questions
Character Analysis

Quiz
•
4th Grade
12 questions
Multiplying Fractions

Quiz
•
6th Grade
30 questions
Biology Regents Review #1

Quiz
•
9th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
50 questions
Biology Regents Review: Structure & Function

Quiz
•
9th - 12th Grade