header1.html

Saturday, 26 April 2014

JavaScript Quiz


JavaScript Quiz
1.Which of the following is not an event in JavaScript?
onunload
onremove
ondblclick
onchange


2.True or False-"All variables are of object type in JavaScript".
True
False


3.What will be o/p of "2"+2+1 JavaScript statement?
5
221
23
Error


4.What Built-in javascript function back() does?
Returns to previous function
Closes the specified window
Returns to the previous URL
No such function


5. A ________ box allows the user to enter input by providing a text box.
confirm
prompt
alert
drop


6.Which of the following looping structure is not available in JavaScript ?
for
while
do-while
foreach


7.The Undefined value Javascript means the variable used in code doesn't exist or is not assigned any value or the property doesn't exist.Ture or False?
Ture
False


8.How to disable an HTML object using JavaScript?
document.getElementById("myObject").visible = false;
document.getElementById("myObject").disabled = true;
document.getElementById("myObject").visibility = false;
document.getElementById("myObject").disable = true;


9.It is easy to manipulate cookies in JavaScript with the document.cookie property.True/False?
True
False



10.What will be o/p of 2+1+"3" JavaScript statement?
213
6
33
Error


No comments:

Post a Comment