Display()
Prompt()
Alert()
Confirm()
<script src="script.js"></script>
<javascript src="script.js"></javascript>
<link href="script.js" rel="script">
<script href="script.js"></script>
It is triggered when an element is clicked
It is triggered when an element gains focus
It is triggered when an element is hovered
It is triggered when the window is resized
To Perform Server Side Scripting Opertion
To Execute Query Related to DB on Server
To add interactivity to HTML Pages
To Style HTML Pages
JavaScript must always be placed inside the <head> tag
JavaScript can be placed either in the <head> or <body> tag
JavaScript can only be placed in external files
JavaScript cannot be placed in the <head> tag
//This is a comment
<!--This is a comment-->
/* This is a comment */
Both A and C
onclick
onmousescroller
onmouseover
onmousemove
element.addEventListener("click", function);
element.addEventHandler("click", function);
element.attach("click", function);
element.on("click", function);
Microsoft
Sun Microsystems
Netscape
Oracle
document. write()
console.log()
window. alert()
innerHTML
push()
pop()
shift()
unshift()
var
let
const
none of the above
alert("Hello World")
alertBox("Hello World")
msgBox("Hello World")
msg("Hello World")
Client Side
Server Side
Both A and B
None of These
onload
DOMContentLoaded
onstart
oninit
What type of value gets printed if we add the following two variables ?
var a = "10";var b =50;
Long
Text
Integer
Number
onsize
onresize
onzoom
onexpand
5myvalue
myvalue5
Myvalue
onmove
onscroll
onchange
<script> alert('Hello, World!'); </script>
<js> alert('Hello, World!'); </js>
<style> alert('Hello, World!'); </style>
=
==
===
!=
var defines a variable while let defines a constant.
There is no such major difference between them.
The value of a variable declared with var can be changed while the value of a variable declared with let cannot be changed.
var defined function scoped variable while let define block scoped variable.
CSS
Python
HTML
JavaScript
classList.add()
classList.remove()
classList.toggle()
classList.replace()
System.out.println("Hello Word")
println ("Hello Word")
document.write("Hello Word")
response.write("Hello Word")
upload
load
onmouseout
stopImmediatePropagation()
preventDefault()
stopPropagation()
cancelPropagation()
onsubmit
oninput
onreset
element.addEvent()
element.addEventListener()
element.attachEvent()
element.onEvent()
round(7.25)
Math.rnd(7.25)
rnd(7.25)
Math.round(7.25)
parseInt ()
Number()
parseFloat()
valueOf()
To style HTML Pages
To perform server-side scripting operation
To execute query related to DB on server
onkeypress
onkeydown
onkeyup
All of the above
document.getElementByClassName()
document.getElementsByClassName()
document.querySelectorAll(".class")
Both b and c
Syntax error
Accessing a variable or function that is not defined
Division by zero
None of these
<script name="data.js">
<script href="data.js">
<script src="data.js">
<link href="data.js">
getElementByTagName()
getElementById()
getElementByClass()
querySelector()
onmousehover
onmouseclick
React
Angular
Vue.js
Django
keyword
function
Declaration Statement
Data type
Missing of semicolons
Volatile variable
Mutable variable
Immutable variable
Dynamic variable
removeAttr()
deleteAttribute()
removeAttribute()
deleteAttr()
element.appendChild()
element.insertChild()
element.addChild()
element.attachChild()
onprogress
onerror
oncomplete
oncontextmenu
onmousedown
onrightclick
onselect
jscript.write("Sky is blue")
document.write("Sky is blue")
print("Sky is blue")
jscript.print("Sky is blue")
onmouseenter
document.createElement()
document.appendElement()
document.insertElement()
document.newElement()
integers
double precision floating point
double
floating point