Javascript Post Quiz
Javascript Post Quiz
Dashboard /
Web Technology /
Java Script /
Post-Quiz
Question Choose the correct JavaScript statement which helps you to write "World of JavaScript" in a web page?
1
Select one:
Correct
println ("World of JavaScript")
Mark 1.00 out of
1.00
response.write("World of JavaScript")
document.write("World of JavaScript")
System.out.println("World of JavaScript")
Question Polson is allocated with the task of email validation in java script. He needs to extract character by character
2
Correct 44910
and check for email validation like looking for @ . etc. Which method is best suited to extract every character from the text?
getCharAt()
charAt()
Question Which of the below is the correct syntax for exectuing some code if "amt" is equal to 5000?
3
Select one:
Correct
if (amt == 5000)
if (amt = 5000)
</script>
</head>
</html>
Select one:
7,0,%, ,3,0,%
7,0,3,0
7,0,%,3,0,%
Question Sita wishes to greet the user when the user clicks on "Greet Me" button. In which event does she need to write the javascript
5 code for greeting the user?
44910
Correct
Select one:
Mark 1.00 out of
1.00 onchange
onclick
onmouseclick
onmouseover
Question Ram is the developer of Allen Software company. He is designing the website for the banking application. There is a button
6 called 'check interest rates'. When that button is clicked, the user has to be redirected to a seperate page to show the domestic
interest rates. Help Ram in accomplishing this task using the javascript.
Correct
Select one:
url.newlocation
window.location
page.location
window. reload
</script>
Select one:
110
5555
Error, No Output.
Question The parseInt() method converts the string to a integer. Before applying this function, Ram wants to know the type of the
8 argument that is passed to the function. Which operator in javascript would support this ?
Correct
getType
instanceof
typeof
44910
Your answer is correct.