
JavaScript Basics Quiz

Quiz
•
Special Education
•
3rd - 4th Grade
•
Medium
Ngoc Nguyen
Used 2+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
What does console.log do?
Runs a function
Outputs text or values to the console screen
Changes a variable
Starts a loop
2.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
Which line correctly declares a variable called score with a value of 10?
var score = 10;
var score 10;
let = 10 score;
score var = 10;
3.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
What is the purpose of getNumber("inputBox") in Code.org?
Sets a number in an input box
Retrieves a number from a user’s input box
Creates a new input box
Adds a number to a variable
4.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
Given the function below, what will be the output if you call greet("Alice")?
function greet(name) {
return "Hello, " + name + "!"; }
"Hello, Alice!"
"Hello, name!"
"Hello, !"
"Alice"
5.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
What will this code display?
var x = 5;
console.log(x * 2);
2
5
10
"x * 2"
6.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
What does if (score > 10) check for?
If score is less than 10
If score is equal to 10
If score is more than 10
If score is 10
7.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
Which line correctly assigns a value to a variable named age?
age = 15;
var age;
let age: 15;
age 15;
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Gawat Darurat

Quiz
•
1st - 12th Grade
15 questions
School Vocabulary

Quiz
•
KG - 12th Grade
23 questions
WNBA Facts

Quiz
•
KG - 10th Grade
20 questions
PAS X PPLG

Quiz
•
1st - 3rd Grade
20 questions
Hard and Soft c and g

Quiz
•
1st - 8th Grade
21 questions
Ziemassvētku acīte

Quiz
•
1st Grade - University
15 questions
Autism

Quiz
•
2nd - 12th Grade
16 questions
MCFC Discord Quiz Night!

Quiz
•
KG - Professional Dev...
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Special Education
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
9 questions
A Fine, Fine School Comprehension

Quiz
•
3rd Grade
12 questions
Passport Quiz 1

Quiz
•
1st - 5th Grade
10 questions
Making Predictions

Quiz
•
4th - 5th Grade
6 questions
Spiral Review 8/5

Quiz
•
4th Grade
18 questions
Rotation/Revolution Quiz

Quiz
•
4th Grade
10 questions
Place Value

Quiz
•
3rd Grade
8 questions
Writing Complete Sentences - Waiting for the Biblioburro

Lesson
•
3rd Grade