Search Header Logo

Javascript basics

Authored by R Singhal

Computers

6th - 8th Grade

Used 13+ times

Javascript basics
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

Using the code above, which best describes the piece of code labeled my_graphic?

A variable

a grid

a property

a movie

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What happens when you increase the value of my_graphic.x?

the graphic becomes transparent

the graphic moves up the screen

the graphic moves to the right

nothing happens

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What line of code would move your graphic lower on your video?

my_graphic("down");

my_graphic.y = 350;

animate(my_graphic, 350);

my_graphic.y = "dear computer, please move my graphic down";

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

If my_graphic.scale = 2; doubles the size of your graphic, which code would make it half the original size?

my_graphic.scale = .5;

my_graphic.scale = "half";

scale(my_graphic, .5);

my_graphic.scale = 2.5;

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

If my_drawing.x moves your drawing left and right, what does my_drawing.y do?

Moves the drawing diagonally

Moves the drawing up and down

Moves the drawing left and right

Does nothing

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which 1 of the following symbols is used for JavaScript comments?

\\
^
?
//

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

How do I declare a new variable?

var newVariable = 5;
Variable int = new Variable();
var 5 = myVariable;
int var = 5;

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?