onkeypress
onkeydown
onkeyup
onkeyrelease
onchange
onsubmit
oninput
onreset
It checks if a value is a number
It checks if a value is not a number
It converts a value to a number
It checks if a value is undefined
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
getElementByTagName()
getElementById()
getElementByClass()
querySelector()
integers
double precision floating point
double
floating point
onsize
onresize
onzoom
onexpand
hasChildNodes()
childNodes
children
hasChildren()
stopImmediatePropagation()
preventDefault()
stopPropagation()
cancelPropagation()
insertBefore()
insertPrevious()
appendBefore()
addBefore()
onerror
onexception
onwarning
onfail
onblur fires when an element loses focus, and onfocus fires when an element gains focus
Both events fire when the window is minimized
Both events trigger when the page is loaded
onblur fires when an element is clicked, and onfocus fires when the mouse moves over an element
what will be the output of
document.write("5" + 5)
5
10
55
error
CSS
Python
HTML
JavaScript
var
let
const
none of the above
alert("Hello World");
msgBox("Hello World");
alertBox("Hello World");
msg("Hello World");
variable carName;
var carName;
vari carName;
dim carName;
document.getElementByClassName()
document.getElementsByClassName()
document.querySelectorAll(".class")
Both b and c
Displays a message in an alert box
Prints output to the console
Writes data to a file
Logs an error in the browser console
document. write()
console.log()
window. alert()
innerHTML
onload
DOMContentLoaded
onstart
oninit
alert("Hello World")
alertBox("Hello World")
msgBox("Hello World")
msg("Hello World")
<!--This is a comment-->
//This is a comment
'This is a comment
#This is a comment
shift()
pop()
remove()
delete()
removeAttr()
deleteAttribute()
removeAttribute()
deleteAttr()
classList.add()
classList.remove()
classList.toggle()
classList.replace()
What type of value gets printed if we add the following two variables ?
var a = "10";var b =50;
Long
Text
Integer
Number
JavaScript interpreter processes programs written in Java.
JavaScript interpreter processes commands in a script written in JavaScript.
Java and JavaScript are almost similar
JavaScript cannot be embedded in HTML.
<script src=" test.js"'></script>
<script href=" test.js"></script>
<import src=" test.js"></import>
<script link=" test.js"></script>
Division by zero
Missing of semicolons
Syntax error
Both A and B
document.getElementByTagName()
document.getElementsByTagName()
document.querySelectorAll()
document.tagName()
element.appendChild()
element.insertChild()
element.addChild()
element.attachChild()
Microsoft
Sun Microsystems
Netscape
Oracle
push()
unshift()
Display()
Prompt()
Alert()
Confirm()
System.out.println("Hello Word")
println ("Hello Word")
document.write("Hello Word")
response.write("Hello Word")
onedit
onupdate
element.getChildren()
element.childNodes
element.getElementsByTagName()
element.getChildNodes()
onclickmouse
onmouseover
onmouseout
onmouseup
All of the above
onclick
onmousehover
onmouseclick
Multiple <script> tags can be used in the same HTML document
The <script> tag can only be placed in the <head> section
The <script> tag can only be used once in an HTML document
The <script> tag must always reference an external file
oncontextmenu
onmousedown
onrightclick
onselect
Boolean
String
Function
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>
<script>
<scripting>
<link>
replaceNode()
replaceElement()
replaceChild()
replaceWith()
/* This is a comment */
Both A and C
innerText
textContent
parseInt ()
Number()
parseFloat()
valueOf()