2
Most read
3
Most read
4
Most read
9/15/2016 W3Schools JavaScript Quiz Test
1/5
W3Schools JavaScript Quiz
JavaScript QUIZ Points: 19 out of 25
1. Inside which HTML element do we put the JavaScript?
You answered:
<script>
 Correct Answer!
2. What is the correct JavaScript syntax to change the content of the HTML
element below?
<p id="demo">This is a demonstration.</p>
You answered:
document.getElementById("demo").innerHTML = "Hello World!";
 Correct Answer!
3. Where is the correct place to insert a JavaScript?
You answered:
Both the <head> section and the <body> section are correct
 Correct Answer!
4. What is the correct syntax for referring to an external script called "xxx.js"?
You answered:
<script src="xxx.js">
 Correct Answer!
5. The external JavaScript file must contain the <script> tag.
You answered:
9/15/2016 W3Schools JavaScript Quiz Test
2/5
True
 Wrong Answer!
6. How do you write "Hello World" in an alert box?
You answered:
alert("Hello World");
 Correct Answer!
7. How do you create a function in JavaScript?
You answered:
function myFunction()
 Correct Answer!
8. How do you call a function named "myFunction"?
You answered:
myFunction()
 Correct Answer!
9. How to write an IF statement in JavaScript?
You answered:
if (i == 5)
 Correct Answer!
10. How to write an IF statement for executing some code if "i" is NOT equal to
5?
You answered:
if (i != 5)
 Correct Answer!
11. How does a WHILE loop start?
9/15/2016 W3Schools JavaScript Quiz Test
3/5
You answered:
while (i <= 10; i++)
 Wrong Answer!
12. How does a FOR loop start?
You answered:
for (i = 0; i <= 5; i++)
 Correct Answer!
13. How can you add a comment in a JavaScript?
You answered:
//This is a comment
 Correct Answer!
14. How to insert a comment that has more than one line?
You answered:
/*This comment has
more than one line*/
 Correct Answer!
15. What is the correct way to write a JavaScript array?
You answered:
var colors = ["red", "green", "blue"]
 Correct Answer!
16. How do you round the number 7.25, to the nearest integer?
You answered:
rnd(7.25)
 Wrong Answer!
9/15/2016 W3Schools JavaScript Quiz Test
4/5
17. How do you find the number with the highest value of x and y?
You answered:
ceil(x, y)
 Wrong Answer!
18. What is the correct JavaScript syntax for opening a new window called "w2"
?
You answered:
w2 = window.new("http://www.w3schools.com");
 Wrong Answer!
19. JavaScript is the same as Java.
You answered:
False
 Correct Answer!
20. How can you detect the client's browser name?
You answered:
browser.name
 Wrong Answer!
21. Which event occurs when the user clicks on an HTML element?
You answered:
onclick
 Correct Answer!
22. How do you declare a JavaScript variable?
You answered:
var carName;
 Correct Answer!
9/15/2016 W3Schools JavaScript Quiz Test
5/5
23. Which operator is used to assign a value to a variable?
You answered:
=
 Correct Answer!
24. What will the following code return: Boolean(10 > 9)
You answered:
true
 Correct Answer!
25. Is JavaScript case­sensitive?
You answered:
Yes
 Correct Answer!
By W3Schools Time spent: 3:44 
Copyright 1999­2015 by Refsnes Data. All Rights Reserved.

More Related Content

PDF
Bases de PHP - Partie 1
PPTX
Class object method constructors in java
PDF
Working with Dynamic Content and Adding Templating engines, MVC
PDF
Wrapper classes
PDF
Unit-4 networking basics in java
PPT
Java collection
DOCX
Javascript viva questions
PPT
Cbt component based technology architectures
Bases de PHP - Partie 1
Class object method constructors in java
Working with Dynamic Content and Adding Templating engines, MVC
Wrapper classes
Unit-4 networking basics in java
Java collection
Javascript viva questions
Cbt component based technology architectures

What's hot (20)

PDF
cours Php
PDF
Intro to Dynamic Web Pages
PPTX
PDF
Action Script
PDF
PPTX
Java tokens
PPT
Php with MYSQL Database
PPTX
Java architecture
PDF
JAVASCRIPT PROGRAM.pdf
PDF
React js
PPTX
Java virtual machine
PDF
An Introduction to Programming in Java: Arrays
PPTX
Webpack Introduction
DOC
Data Management Project for Car Dealership
PPTX
Array in c++
PPTX
Observer Software Design Pattern
PPTX
Std 12 chapter 7 Java Basics Important MCQs
PPT
Simple Java Programs
DOCX
DBMS Assignments Questions
PPTX
C programming Training in Ambala ! Batra Computer Centre
cours Php
Intro to Dynamic Web Pages
Action Script
Java tokens
Php with MYSQL Database
Java architecture
JAVASCRIPT PROGRAM.pdf
React js
Java virtual machine
An Introduction to Programming in Java: Arrays
Webpack Introduction
Data Management Project for Car Dealership
Array in c++
Observer Software Design Pattern
Std 12 chapter 7 Java Basics Important MCQs
Simple Java Programs
DBMS Assignments Questions
C programming Training in Ambala ! Batra Computer Centre
Ad

Viewers also liked (20)

PPTX
The Typical Chennai Quiz (March 2014)
PPTX
School Assembly Quiz (Grade wise)
PPT
The Bollywod Quiz- NSIT Quiz Fest 2013
DOCX
Assembly anchoring
PPTX
General knowledge questions
DOCX
College fest anchoring script
PDF
General Knowledge
PDF
basic Anchoring script for buiness quiz competition
DOCX
Anchoring Script
PPTX
PresentacióN Proyecto Sagrada Familia
PPT
Out Innovaciones Gestion Easp July 2008
PPT
Podcasting Qué Es Y Como Se Hace
PPT
Formacion Continuada Marco
PPT
Bomberos La Fria
DOC
Curriculum Vitae
PDF
Como el pez fuera del agua
DOC
English CV CISSE 1
PPTX
Tecnoadicciones ana pp
PPT
Exoplaneta
PPTX
2 tema ii planeacion - adm150-dy
The Typical Chennai Quiz (March 2014)
School Assembly Quiz (Grade wise)
The Bollywod Quiz- NSIT Quiz Fest 2013
Assembly anchoring
General knowledge questions
College fest anchoring script
General Knowledge
basic Anchoring script for buiness quiz competition
Anchoring Script
PresentacióN Proyecto Sagrada Familia
Out Innovaciones Gestion Easp July 2008
Podcasting Qué Es Y Como Se Hace
Formacion Continuada Marco
Bomberos La Fria
Curriculum Vitae
Como el pez fuera del agua
English CV CISSE 1
Tecnoadicciones ana pp
Exoplaneta
2 tema ii planeacion - adm150-dy
Ad

Similar to W3 schools javascript quiz test (20)

TXT
PPTX
Mcq Of Java Script ppt for Teaching and self preparation
PDF
Essential_Javascript_--_A_Javascript_Tutorial
PDF
Essential Javascript -- A Javascript &lt;b>Tutorial&lt;/b>
PDF
&lt;img src="../i/r_14.png" />
PDF
Essential_Javascript_--_A_Javascript_Tutorial
PDF
Basic JavaScript Tutorial
PPTX
Lecture6
PPTX
JavaScript - Getting Started.pptx
XLS
Lt web quiz_answer
PPT
FSJavaScript.ppt
PDF
Fiverr html5 test answers 2020
PPTX
Internet Based Programming -3-JAVASCRIPT
DOCX
LabsLab8.htmlLab 8 Im Thinking of a NumberBefore yo.docx
PDF
Itjs124
PPTX
wp-UNIT_III.pptx
PDF
Deck 6-456 (1)
PPTX
Module 5-Positioning and Navigation(Chapters 5 & 6).pptx
PDF
ABCs of Programming_eBook Contents
PDF
JAVA SCRIPT
Mcq Of Java Script ppt for Teaching and self preparation
Essential_Javascript_--_A_Javascript_Tutorial
Essential Javascript -- A Javascript &lt;b>Tutorial&lt;/b>
&lt;img src="../i/r_14.png" />
Essential_Javascript_--_A_Javascript_Tutorial
Basic JavaScript Tutorial
Lecture6
JavaScript - Getting Started.pptx
Lt web quiz_answer
FSJavaScript.ppt
Fiverr html5 test answers 2020
Internet Based Programming -3-JAVASCRIPT
LabsLab8.htmlLab 8 Im Thinking of a NumberBefore yo.docx
Itjs124
wp-UNIT_III.pptx
Deck 6-456 (1)
Module 5-Positioning and Navigation(Chapters 5 & 6).pptx
ABCs of Programming_eBook Contents
JAVA SCRIPT

Recently uploaded (20)

PDF
Connector Corner: Transform Unstructured Documents with Agentic Automation
PDF
The-Future-of-Automotive-Quality-is-Here-AI-Driven-Engineering.pdf
PDF
Lung cancer patients survival prediction using outlier detection and optimize...
PDF
substrate PowerPoint Presentation basic one
PPTX
Presentation - Principles of Instructional Design.pptx
PDF
Identification of potential depression in social media posts
PPTX
Blending method and technology for hydrogen.pptx
PDF
5-Ways-AI-is-Revolutionizing-Telecom-Quality-Engineering.pdf
PPTX
AQUEEL MUSHTAQUE FAKIH COMPUTER CENTER .
PDF
Transform-Your-Factory-with-AI-Driven-Quality-Engineering.pdf
PDF
The-2025-Engineering-Revolution-AI-Quality-and-DevOps-Convergence.pdf
PDF
Co-training pseudo-labeling for text classification with support vector machi...
PDF
Data Virtualization in Action: Scaling APIs and Apps with FME
PDF
Transform-Your-Supply-Chain-with-AI-Driven-Quality-Engineering.pdf
PDF
A hybrid framework for wild animal classification using fine-tuned DenseNet12...
PDF
CXOs-Are-you-still-doing-manual-DevOps-in-the-age-of-AI.pdf
PPTX
Build automations faster and more reliably with UiPath ScreenPlay
PDF
Altius execution marketplace concept.pdf
PDF
Launch a Bumble-Style App with AI Features in 2025.pdf
PPTX
Rise of the Digital Control Grid Zeee Media and Hope and Tivon FTWProject.com
Connector Corner: Transform Unstructured Documents with Agentic Automation
The-Future-of-Automotive-Quality-is-Here-AI-Driven-Engineering.pdf
Lung cancer patients survival prediction using outlier detection and optimize...
substrate PowerPoint Presentation basic one
Presentation - Principles of Instructional Design.pptx
Identification of potential depression in social media posts
Blending method and technology for hydrogen.pptx
5-Ways-AI-is-Revolutionizing-Telecom-Quality-Engineering.pdf
AQUEEL MUSHTAQUE FAKIH COMPUTER CENTER .
Transform-Your-Factory-with-AI-Driven-Quality-Engineering.pdf
The-2025-Engineering-Revolution-AI-Quality-and-DevOps-Convergence.pdf
Co-training pseudo-labeling for text classification with support vector machi...
Data Virtualization in Action: Scaling APIs and Apps with FME
Transform-Your-Supply-Chain-with-AI-Driven-Quality-Engineering.pdf
A hybrid framework for wild animal classification using fine-tuned DenseNet12...
CXOs-Are-you-still-doing-manual-DevOps-in-the-age-of-AI.pdf
Build automations faster and more reliably with UiPath ScreenPlay
Altius execution marketplace concept.pdf
Launch a Bumble-Style App with AI Features in 2025.pdf
Rise of the Digital Control Grid Zeee Media and Hope and Tivon FTWProject.com

W3 schools javascript quiz test