JAVASCRIPT.QUIZ

Quiz
•
Computers
•
University
•
Easy
Zaira Zaira
Used 2+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Where is the correct place to insert a JavaScript?
Both the head section and the body section are correct
The head section
The body section
None of the above
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is not a valid JavaScript variable name?
2java
_java_and_java_names
javaandjava
None of the above
3.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
What is the correct syntax for referring to an external script called 'gfg.js'?
«script name="gfg.js">
«script href="gfg.js">
<script src="gfg.js">
None of these
4.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
What will be the output for the following lines of code:
function sayHi) {
console.10g (name) ; console.log (age);
var name = 'Lydia';
let age = 21;
}
sayHi ();
Lydia and undefined
Lydia and ReferenceError
ReferenceError and 21
undefined and ReferenceError
5.
MULTIPLE CHOICE QUESTION
1 min • 3 pts
What's the output ?
for (var i = 0; i < 3; i++)
setTimeout (() →> console.1
for (let i = 0; 1 < 3; i++)
setTimeout (() => console.1
}
012 and 0 1 2
012 and 3 3 3
3 3 3 and 0 1 2
None of the above
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following code?
const firstName='Rishi'
lastName='Raj'
console.log(`hello ${firstName}, nice to meet you`);
hello ${firstName}, nice to meet you
hello Rishi, nice to meet you
hello Raj, nice to meet you
None of the above
7.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
Which of the following is true w.r.t. variables ?
Variables declared with let and const can’t be hoisted
Variables declared with var can be hoisted
Both a and b
None of the above
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Latihan html dan css

Quiz
•
KG - University
15 questions
HTML + CSS

Quiz
•
University
20 questions
JS Skill Assessment (Internal Exam)

Quiz
•
University
20 questions
Week 2 - Assessment 2 (ITNW0223)

Quiz
•
University
16 questions
Sistem Berkas

Quiz
•
University
13 questions
HTML beginners quiz

Quiz
•
9th Grade - Professio...
10 questions
Java Standard Tag Library (JSTL)

Quiz
•
University
10 questions
Quiz 1: HTML & CSS

Quiz
•
University
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
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University