KA Intro to JS Variables

KA Intro to JS Variables

KG - University

5 Qs

quiz-placeholder

Similar activities

Pygame кітапханасы

Pygame кітапханасы

9th Grade

10 Qs

JavaScript Canvas Introduction Quiz

JavaScript Canvas Introduction Quiz

9th - 12th Grade

10 Qs

Processing 10

Processing 10

10th Grade

10 Qs

Unit 3, Lessons 3 & 4

Unit 3, Lessons 3 & 4

6th - 8th Grade

10 Qs

Day 2 Pygame - 24th June

Day 2 Pygame - 24th June

Professional Development

10 Qs

Graphics Programming Review

Graphics Programming Review

8th - 10th Grade

10 Qs

Use of Variables in JavaScript

Use of Variables in JavaScript

KG - University

5 Qs

Code.org lesson 1.9

Code.org lesson 1.9

7th Grade

10 Qs

KA Intro to JS Variables

KA Intro to JS Variables

Assessment

Quiz

Computers

KG - University

Medium

Used 549+ times

FREE Resource

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these lines of code is valid JavaScript for defining a variable?
var noseSize = 10;
noseSize is 10
var noseSize == 10;
var nose Size = 10;

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is a valid variable name in JavaScript?
123abc
abc123
abc   123
abc123!

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these lines show the correct way to reassign a variable to a new value?
myFace = 10;
10 -> myFace;
var myFace = 10;
10 = myFace;

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If boxSize is a variable holding the value 20, which of these lines of code would make a 20x20 square?
rect(10, 10, boxSize, boxSize);
rect(boxSize, 10, 10, boxSize);
rect(10, 10, boxSize);
rect(10, 10, boxSize * boxSize);

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If cPos is a variable holding the value 200, which of these would draw a circle with a center point of 150, 
ellipse(cPos-50, cPos-50, 20, 20);
ellipse(cPos+50, cPos+50, 20, 20);
ellipse(cPos-50, 20, 20);
ellipse(cPos-=50, cPos-=50, 20);