Search Header Logo

Javascript Basics

Authored by John Maklary

Computers

6th - 8th Grade

Used 2+ times

Javascript Basics
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

31 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What command draws a rectangle?

rec (10, 20, 100, 200);
rect (10, 20, 100, 200)
rect (10, 20, 100, 200);
ellipse (10, 20, 40, 40)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command colors the background of your canvas?

background 
endShape
var = color
fill

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What command removes the outlines from shapes?

noOutline ();
noColor();
noBorder();
noStroke ();

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What command draws a perfect circle?

ellipse (80, 60, 100, 105);
ellipse(80, 60, 100, 100);
circle (80, 60, 80, 60):
ellipse (80, 60, 105, 100);

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What command colors a shape?

color (43, 255, 0);
bucket (43, 255, 0);
fill (43, 255, 0);
bucket (43, 255, 0);

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What command draws a line?

stroke (200, 220, 275, 220);
line (200, 220, 275, 220);
horizontal (200, 220,  60, 75);
pencil (200, 220, 275, 220);

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is at the end of a line of code?

#
;
)
>

Access all questions and much more by creating a free account

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

Already have an account?