JavaScript Quiz

Inside which HTML element do we put the JavaScript?
js
script
scripting
javascript
Which is the correct attribute for referring to an external script called "xxx.js"?
src="xxx.js"
name="xxx.js"
href="xxx.js"
url="xxx.js"
How do you find the number with the highest value of x and y?
ceil(x, y)
Math.max(x, y)
top(x, y)
Math.ceil(x, y)
Which event occurs when the user clicks on an HTML element?
onclick
onmouseclick
onmouseover
onchange
Which operator is used to assign a value to a variable?
==
===
=
-
How can you add a comment in a JavaScript?
!--This is a comment
'This is a comment'
//This is a comment
"This is a comment"
What is the correct way to write a JavaScript array?
var colors = 1 = ("red"), 2 = ("green"), 3 = ("blue")
var colors = "red", "green", "blue"
var colors = ["red", "green", "blue"]
var colors = (1:"red", 2:"green", 3:"blue")
Which was the first browser to support JavaScript ?
Mozilla Firefox
Google Chrome
IE
Netscape
"++" is __________ type of operator.
Ternary
Binary
Unary
None of these
Integer Variable is declared using following syntax in JavaScript.
Integer num;
var num;
int num;
integer num;
Vriables declared inside function are visible _______________.
Inside the function in which it is declared
to all the functions
All the scripts inside same File
None of these
JavaScript Statements are executed by ________ .
Server
JVM
Compiler
Browser
0
{"name":"JavaScript Quiz", "url":"https://www.quiz-maker.com/QBDCZ4O","txt":"Inside which HTML element do we put the JavaScript?, Which is the correct attribute for referring to an external script called \"xxx.js\"?, How do you find the number with the highest value of x and y?","img":"https://www.quiz-maker.com/3012/images/ogquiz.png"}
Powered by: Quiz Maker