
JavaScript Fundamentals for Students
Quiz
•
Information Technology (IT)
•
11th Grade
•
Practice Problem
•
Hard
Salma Esmat
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a variable in JavaScript?
A variable in JavaScript is a named container for storing data values.
A variable in JavaScript is a method for defining classes.
A variable in JavaScript is a function that performs calculations.
A variable in JavaScript is a type of loop used for iteration.
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 are the different data types in JavaScript?
string, number, boolean, null, undefined, symbol, object
array, function, set
date, time, list
integer, float, character
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you convert a string to a number in JavaScript?
Apply Math.round(string)
Convert using toString(string)
Use stringToNumber(string) method
Use Number(string), parseInt(string), or parseFloat(string) to convert a string to a number.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of a function in JavaScript?
To store data in variables
The purpose of a function in JavaScript is to encapsulate code for reuse and to perform specific tasks.
To define global variables
To create HTML elements
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between function declaration and function expression?
Function expression can be called before its definition.
Function declaration can only be used in strict mode.
Function declaration is hoisted and can be called before its definition, while function expression is not hoisted and must be defined before it can be called.
Function declaration and function expression are the same.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is scope in JavaScript?
Scope is the method of error handling in JavaScript.
Scope is a type of JavaScript function.
Scope refers to the speed of JavaScript execution.
Scope in JavaScript defines the visibility and lifetime of variables and functions.
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
PTS Genap Informatika Kelas XI
Quiz
•
11th Grade - University
10 questions
TAU X EVIDEN
Quiz
•
9th - 12th Grade
20 questions
Python
Quiz
•
9th - 12th Grade
20 questions
Uji Pemahaman Array dan Fungsi
Quiz
•
11th Grade - University
19 questions
SCRATCH Programming recap
Quiz
•
10th Grade - University
18 questions
Тест по функциям Python (functions 3)
Quiz
•
9th - 12th Grade
20 questions
Mesin Pencari Artikel
Quiz
•
11th Grade - University
10 questions
Bab 4 Jaringan Komputer dan Internet
Quiz
•
11th Grade - University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
20 questions
Thanksgiving Trivia
Quiz
•
11th Grade
34 questions
Geometric Terms
Quiz
•
9th - 12th Grade
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
16 questions
Proportional Relationships And Constant Of Proportionality
Quiz
•
7th - 12th Grade
10 questions
DNA Replication Concepts and Mechanisms
Interactive video
•
7th - 12th Grade
10 questions
Unit 2: LS.Bio.1.5-LS.Bio.2.2 Power Vocab
Quiz
•
9th - 12th Grade
20 questions
Food Chains and Food Webs
Quiz
•
7th - 12th Grade
