
JavaScript Fundamentals for Grade 9
Authored by Kiranmayi Ravuri
Computers
9th Grade
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
Access all questions and much more by creating a free account
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
CS-9 Chapter-2 Types of Computer Part1: Rabin Ghimire
Quiz
•
8th - 9th Grade
20 questions
SOFTWARE 7I
Quiz
•
7th Grade - University
17 questions
Grade 4 Computer Science Quiz
Quiz
•
4th Grade - University
15 questions
PYTHON LIST
Quiz
•
9th Grade
20 questions
Câu hỏi ôn tập GK2
Quiz
•
9th Grade
18 questions
Publisher Basics
Quiz
•
7th - 10th Grade
25 questions
CPA Inkscape Quiz 01
Quiz
•
7th - 12th Grade
20 questions
Introduction to Spreadsheet
Quiz
•
9th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade