
Web Development Concepts Assessment
Authored by Duc Anh Pham
Computers
12th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of a loop in JavaScript?
The purpose of a loop in JavaScript is to execute code only once
The purpose of a loop in JavaScript is to repeatedly execute a block of code.
The purpose of a loop in JavaScript is to stop the code execution
The purpose of a loop in JavaScript is to skip certain code blocks
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare an array in JavaScript?
let myArray = [];
myArray = []
var myArray = []
const myArray = []
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the syntax for creating an object in JavaScript?
const myObject = { key1: value1, key2: value2 };
const myObject = ( key1: value1, key2: value2 );
let myObject = { key1: value1, key2: value2 };
const myObject = [ key1: value1, key2: value2 ];
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Explain the difference between localStorage and sessionStorage in JavaScript.
localStorage and sessionStorage are the same and can be used interchangeably.
localStorage persists data even after the browser is closed, while sessionStorage clears data when the browser is closed.
localStorage clears data when the browser is closed, while sessionStorage persists data even after the browser is closed.
localStorage and sessionStorage are deprecated in modern browsers.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following loop: for (let i = 0; i < 5; i++) { console.log(i); }
0 1 2 3 4
5
7
6
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you access the third element of an array in JavaScript?
arrayName.third()
arrayName(2)
arrayName[2]
arrayName[3]
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the use of the 'this' keyword in JavaScript objects?
To refer to the current object instance within its own scope.
To access properties of a different object
To define a function within the object
To declare a new variable within the object
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
10 questions
IT Quiz
Quiz
•
11th - 12th Grade
16 questions
OCR Sys Arch J277
Quiz
•
10th - 12th Grade
14 questions
ITGS - IT Systems (Hardware)
Quiz
•
10th - 12th Grade
11 questions
Unit 2, 1.3 Types of information access and storage devices
Quiz
•
12th Grade
14 questions
[Lớp 12] Access - Ôn tập
Quiz
•
12th Grade
10 questions
Fun with Paint and Storage
Quiz
•
1st Grade - University
15 questions
Virtual Private Server
Quiz
•
12th Grade
11 questions
Quiz 1 - Hardware and Software
Quiz
•
9th - 12th 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