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
14 questions
Processing 01 - MCSHS DIG07/DIG08

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

Quiz
•
6th - 8th Grade
20 questions
Bài 11: KIỂU MẢNG MỘT CHỀU

Quiz
•
1st - 10th Grade
20 questions
CSD Unit 3 - Games and Animation Assessment

Quiz
•
8th Grade
15 questions
Mảng 1 chiều

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

Quiz
•
8th Grade
15 questions
Code.Org U3L1-4

Quiz
•
8th Grade
20 questions
Pearson 9 Wks Test v2

Quiz
•
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
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
17 questions
Parts of Speech

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

Quiz
•
KG - University
44 questions
El fin del año- 7th

Quiz
•
7th - 12th Grade
40 questions
Word Study Assessment: Roots, Prefixes, Suffixes, and Vocabulary

Quiz
•
8th Grade
17 questions
guess the logo

Quiz
•
8th Grade
16 questions
Function or Non-Function?

Quiz
•
8th - 10th Grade
15 questions
Sentence Fragments and Run-ons

Quiz
•
8th Grade