
JavaScript Basics Quiz
Quiz
•
Special Education
•
3rd - 4th Grade
•
Practice Problem
•
Medium
Ngoc Nguyen
Used 2+ times
FREE Resource
Enhance your content in a minute
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
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
20 questions
Tutorial
Quiz
•
3rd Grade
16 questions
Problem Size Quiz
Quiz
•
3rd Grade
15 questions
Quiz: Performing computer operations
Quiz
•
KG - Professional Dev...
16 questions
Self-Control Quiz
Quiz
•
3rd Grade
15 questions
Supersize Me Quiz
Quiz
•
3rd Grade
20 questions
Vocational Vocabulary 1.0
Quiz
•
3rd - 5th Grade
17 questions
A Little Spot of Honesty
Quiz
•
4th - 6th Grade
16 questions
StuffAboutZelda
Quiz
•
4th Grade
Popular Resources on Wayground
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
15 questions
Solving Equations with Variables on Both Sides Review
Quiz
•
8th Grade
Discover more resources for Special Education
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
10 questions
Area
Quiz
•
3rd Grade
12 questions
Adding and Subtracting Fractions with Like Denominators
Quiz
•
4th Grade
10 questions
Division with Remainders and Interpreting Remainders
Quiz
•
4th Grade
8 questions
Predictions
Quiz
•
2nd - 4th Grade
21 questions
Factors and Multiples
Quiz
•
4th Grade
