Codebanking.com Bank your code here...
HOME REGISTER TECHNICAL Q&A GENERAL Q&A SUBMIT CODE SNIPPET LOGIN
Get More Traffic
 
Javascript - QUIZ
Question 1
What is Javascript?
Server side scripting
Client side scripting
Ajax scripting

Question 2
What is 'alert' in javascript?
Message box with ok button.
Message box with ok and cancel button
Message box with browse button

Question 3
which is 'confirm' in javascript?
Message box with ok button.
Message box with browse button
Message box with ok and cancel button

Question 4
Which one is correct?
getElementbyId
getElementById
getElementsById

Question 5
How to get element by tag name?
getElementByTagName
getElementsBytagName
getElementsByTagName

Question 6
Which is the correct if condition statement in javascript?
if(a="")
if(a=="")
if(a=="") then

Question 7
How to do int conversion in javascript?
parseint
parseInt
ConvertToInt

Question 8
How to do float conversion in javascript?
parseFloat
ConvertToFloat
ConvertFloat

Question 9
what operator is used for concatenation?
&
+
^

Question 10
Now to create pop up window in javascript?
win.open()
open.window()
window.open()

Question 11
How to navigate from one page to another page?
window.location.navigate
window.href
window.location.href

Question 12
Choose uppercase method?
.toUpperCase()
.toupperCase()
.toUpper()

Question 13
How to create image?
var myImage = Image();
var myImage = new Image();
var myImage = Image(new);

Question 14
How to get value from div?
document.getElementById("div1").innerText
document.getElementById("div1").value
document.getElementById("div1").Text

Question 15
How to get value from dropdownlist?
document.forms[0].selectName.text
document.forms[0].options[index].text
document.forms[0].selectName.options[index].text

Question 16
How to do string conversion?
var myString = String(“Howdy”);
var myString = new String(“Howdy”);
parseString(“Howdy”);

Question 17
what is use of string.indexOf() method?
check integer validation
indicating the index value
string validation

Question 18
What is result?
var stringA = “Building C”; var bldgLetter = stringA.charAt(9);
C
g
B

Question 19
How to get mathematics PI value?
Math.PI
Math.P
Math.PY

Question 20
what is the result?

var stringA = “banana daiquiri”; var excerpt = stringA.substring(2,6);
nana
na d
quir


 
 2009 codebanking.com      contactus@codebanking.com