Which of these lines of JS code are syntactically correct?
Khan Academy JavaScript

Quiz
•
Computers
•
8th Grade
•
Medium
Stacy Faculty
Used 43+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 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
20 sec • 1 pt
Which is the correct way to write a comment in JavaScript?
(#...#)
(!...!)
{{.....}}
//....
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of these lines of JS code are syntactically correct?
rect100, 100, 50, 50
rect(100 100 50 50);
rect(100, 100, 50, 50);
rect(100, 100, 50, 50):
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
You want to draw a circle, which command is written correctly?
//circle
circle();
ellipse();
//ellipse
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
In the following line of code - rect(200, 150, 50, 120); What does the last number (120) stand for?
X
Y
W
H
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
In the following line of code - rect(200, 150, 50, 120); What does the first number (200) stand for?
X
Y
W
H
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
In the following line of code - rect(200, 150, 50, 120); What does the 3rd number(50) stand for?
X
Y
W
H
Create a free account and access millions of resources
Similar Resources on Quizizz
17 questions
TURINGLAB - IMAGES AND SHAPES

Quiz
•
7th Grade - University
15 questions
Unit 3: Interactive Animations and Games - Lessons 3-6

Quiz
•
6th Grade - University
10 questions
Scratch 3 Multiplayer

Quiz
•
5th - 8th Grade
15 questions
Javascript Assessment

Quiz
•
6th - 8th Grade
12 questions
Tracy 🐢 CodeHS

Quiz
•
5th - 8th Grade
10 questions
Pygame

Quiz
•
6th - 8th Grade
7 questions
KA Intro to JS: Drawing Basics

Quiz
•
KG - University
15 questions
Code.Org U3L1-4

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