Khan Academy JavaScript

Khan Academy JavaScript

Assessment

Flashcard

Computers

8th Grade

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

12 questions

Show all answers

1.

FLASHCARD QUESTION

Front

Which of these lines of JS code are syntactically correct? rect(100, 100, 50, 50);, rect(100 100 50 50);, rect[100, 100, 50, 50];, rect(100, 100, 50, 50):

Back

rect(100, 100, 50, 50);

2.

FLASHCARD QUESTION

Front

Which is the correct way to write a comment in JavaScript? Options: (#...#), (!...!), {{.....}}, //....

Back

//....

3.

FLASHCARD QUESTION

Front

Which of these lines of JS code are syntactically correct? Options: rect100, 100, 50, 50, rect(100 100 50 50);, rect(100, 100, 50, 50);, rect(100, 100, 50, 50):

Back

rect(100, 100, 50, 50);

4.

FLASHCARD QUESTION

Front

You want to draw a circle, which command is written correctly? Options: //circle, circle();, ellipse();, //ellipse

Back

ellipse();

5.

FLASHCARD QUESTION

Front

In the following line of code - rect(200, 150, 50, 120); What does the last number (120) stand for?

Back

H

6.

FLASHCARD QUESTION

Front

In the following line of code - rect(200, 150, 50, 120); What does the first number (200) stand for?

Back

X

7.

FLASHCARD QUESTION

Front

In the following line of code - rect(200, 150, 50, 120); What does the 3rd number(50) stand for? Options: X, Y, W, H

Back

W

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?

Discover more resources for Computers