Javascript basics

Javascript basics

6th - 8th Grade

10 Qs

quiz-placeholder

Similar activities

8.CT.a.1 - Super Mario

8.CT.a.1 - Super Mario

3rd Quarter Study

3rd Quarter Study

P5: Variables, Motion, Ifs

P5: Variables, Motion, Ifs

JavaScript basics (vidcode)

JavaScript basics (vidcode)

Drawing with Code

Drawing with Code

Computer Science Discoveries Code.org U3L7-16

Computer Science Discoveries Code.org U3L7-16

Javascript basics

Javascript basics

Assessment

Quiz

Computers

6th - 8th Grade

Practice Problem

Hard

Created by

R Singhal

Used 13+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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;

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

Already have an account?

Discover more resources for Computers