
JavaScript Fundamentals for Grade 9

Quiz
•
Computers
•
9th Grade
•
Hard
Kiranmayi Ravuri
Used 3+ times
FREE Resource
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
Similar Resources on Wayground
25 questions
TDP112 Introduction to Laravel

Quiz
•
8th - 10th Grade
16 questions
Java Conditional Statements

Quiz
•
9th Grade
20 questions
Computer Science: Chapter 1 Test Review

Quiz
•
9th - 12th Grade
20 questions
Programming Quiz 4

Quiz
•
9th - 10th Grade
20 questions
uCertify Lesson 2 Quiz Advanced HTML

Quiz
•
8th - 12th Grade
21 questions
Java vs JavaScript Operators

Quiz
•
3rd - 12th Grade
22 questions
Basic Boolean Logic Practice

Quiz
•
9th - 12th Grade
15 questions
Basics in Java

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade