
Java Script Concepts

Quiz
•
Computers
•
12th Grade
•
Medium
Akhil Badugu
Used 2+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between let, const, and var in JavaScript?
var is block-scoped, let is block-scoped, and const is function-scoped but can be reassigned.
var is block-scoped, let is function-scoped, and const is block-scoped but cannot be reassigned.
var is function-scoped, let is block-scoped, and const is block-scoped but cannot be reassigned.
var is block-scoped, let is block-scoped, and const is block-scoped but can be reassigned.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Explain the difference between == and === in JavaScript.
== checks for equality after type coercion, while === checks for strict equality without type coercion.
== checks for strict equality with type coercion, while === checks for equality without type coercion.
== checks for equality without type coercion, while === checks for strict equality with type coercion.
== checks for strict equality without type coercion, while === checks for equality after type coercion.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you loop through an array in JavaScript?
map method: array.map(item => { // access item })
while loop: let i = 0; while(i < array.length) { // access array[i]; i++; }
do...while loop: let i = 0; do { // access array[i]; i++; } while(i < array.length)
for loop: for(let i = 0; i < array.length; i++) { // access array[i] } forEach method: array.forEach(item => { // access item }) for...of loop: for(const item of array) { // access item }
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of a function in JavaScript?
The purpose of a function in JavaScript is to encapsulate a block of code that can be executed whenever needed.
The purpose of a function in JavaScript is to slow down code execution
The purpose of a function in JavaScript is to increase file size unnecessarily
The purpose of a function in JavaScript is to confuse developers
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you define an object in JavaScript?
const obj = { key1: value1, key2: value2 };
const obj = { key1 = value1, key2 = value2 };
const obj = (key1: value1, key2: value2);
const obj = [key1: value1, key2: value2];
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Explain the concept of DOM Manipulation in JavaScript.
DOM Manipulation is only possible by reloading the entire webpage.
DOM Manipulation is used to create static web pages that do not change based on user interactions.
DOM Manipulation allows developers to dynamically update the webpage based on user interactions, data changes, or other events without needing to reload the entire page.
DOM Manipulation is a feature exclusive to CSS and cannot be achieved with JavaScript.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is event handling in JavaScript?
Event handling in JavaScript is the process of generating random numbers.
Event handling in JavaScript is the process of styling HTML elements.
Event handling in JavaScript is the process of capturing and responding to user interactions or system events.
Event handling in JavaScript is the process of creating animations on a webpage.
Create a free account and access millions of resources
Similar Resources on Wayground
17 questions
Lección1 - JavaScript

Quiz
•
1st Grade - Professio...
20 questions
JavaScript Basics Review

Quiz
•
7th - 12th Grade
18 questions
js basics

Quiz
•
4th Grade - University
15 questions
MM - JavaScript

Quiz
•
12th Grade
15 questions
prueba de conocimeintos basicos Frontend Development Quiz

Quiz
•
12th Grade
22 questions
SUBAŞI_java script

Quiz
•
12th Grade - University
20 questions
Javascript Basics Test

Quiz
•
7th - 12th Grade
20 questions
Python Basics & Syntax

Quiz
•
10th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade