JavaScript Online Quiz Questions and Answers

JavaScript Online Quiz Questions and Answers

JavaScript Online Quiz Questions and Answers

JavaScript Online Quiz Questions and Answers

Find below MCQ (Multiple Choice) questions and Answers useful for learning JavaScript. Play our JavaScript Online Quiz Questions and Answers  and Earn points and check how sharp your skill are in JavaScript programming.

Welcome to your JavaScript Online Quiz Questions and Answers

Name
Email
Mobile
1. <script language="javascript">
function x()
{
var qpt = "First come, first served";
var pattern = /first/gi;
document.write(qpt.match(pattern)[1]);
}
</script>
2. In javascript, Which of the above Comments lines are used ?

(a). // , /* ...... **/
(b). / , /** ......./ , /*
(c). /*......*/ , //
(d). \*......*\ , //
3. <script language="javascript">
function x()
{
var s = "Give 100%!{[!!";
var pattern = /\W/g;
var output = s.match(pattern);
document.write(output);
}
</script>
4. Which best describes void?
5. <script type="text/javascript" language="javascript">
var qpt="QualityPointTechnologies";
var result =qpt.lastIndexOf("l");
document.write(result);
</script>
6. <script language="javascript">
function x()
{
var qpt = "First come, first served";
var pattern = /first/g;
document.write(qpt.match(pattern)[1]);
}
</script>
7. According to given script If you call the function callme(), what will happen ?

<script language="javascript">
function sum(x)
{
function add(y)
{
return x+y;
}
return add;
}
function callme() { result=sum(5)(5); alert(result); }
</script>
8. Who invented the javascript programming language?
9. You can write HTML tag inside the javascript .
10. Which feature is supported in MSIE 3.x?

[Total: 0    Average: 0/5]

Leave a Reply

Your email address will not be published. Required fields are marked *