
JavaScript Fundamentals for Grade 9
Quiz
•
Computers
•
9th Grade
•
Hard
Kiranmayi Ravuri
Used 3+ times
FREE Resource
Enhance your content
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a variable in JavaScript?
A variable in JavaScript is a type of loop used for iteration.
A variable in JavaScript is a function that performs calculations.
A variable in JavaScript is a method for defining classes.
A variable in JavaScript is a named container for storing data values.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid way to declare a variable?
let x = 5;
x := 5;
const x = 5;
var x = 5;
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What data type is used to represent true or false values?
integer
boolean
string
float
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create a random number between 1 and 10 in JavaScript?
Math.ceil(Math.random() * 10)
Math.floor(Math.random() * 10) + 1
Math.random() * 10
Math.floor(Math.random() * 11)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the expression '5' + 5 in JavaScript?
55
55.0
'55'
10
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What keyword is used to declare a constant variable?
const
final
static
immutable
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you write a conditional statement in JavaScript?
if (condition) { // code to execute if condition is true } else { // code to execute if condition is false }
if condition { // code }
condition ? // code : // code to execute
if (condition) // code to execute
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
JavaScript Operators
Quiz
•
9th - 12th Grade
20 questions
Web development
Quiz
•
9th - 12th Grade
23 questions
Java conditional/loop/method/user input
Quiz
•
9th - 12th Grade
20 questions
Computer quiz Grade- 9 & 10
Quiz
•
9th - 10th Grade
15 questions
Crash Course Computer Science #4 - Binary
Quiz
•
9th - 12th Grade
20 questions
INICIO HTML
Quiz
•
9th Grade
22 questions
IST CodeHS Unit 8 JavaScript Review
Quiz
•
9th - 12th Grade
15 questions
JavaScript and Graphics
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
30 questions
Computer Terminology Exercise #1 ( Fill Ins)
Quiz
•
9th Grade
15 questions
MLA Formatting
Quiz
•
9th Grade
20 questions
Typing Practice
Quiz
•
7th - 12th Grade
14 questions
Inputs and Outputs: Computer Science Intro
Lesson
•
5th - 9th Grade
20 questions
Google Sheets Quiz
Quiz
•
9th Grade