My Report

JavaScript Practice Test 6


Correct Answer: 2 points | Wrong: -1 point
Grades: A* (100% score) | A (80%-99%) | B (60%-80%) | C (40%-60%) | D (0%-40%)
advertisement

1. Which of the following action is possible in Firebug when used as a JavaScript Debugger and Profiler?

2. What will be the output of the following JavaScript code?

<p id="demo"></p>
<script>
function myFunction() 
{
   var str = "Give 100%!"; 
   var patt1 = /\d/g;
   var result = str.match(patt1);
   if(result)
  	result=true;
   else
  	result=false;
   document.getElementById("demo").innerHTML = result;
}
</script>

3. Which HTML element is used to include images?

4. How does PhantonJS use YSlow?

5. Which of the following elements are used to include audio?

6. Which is the function used to look up an object?

7. What will be the output of the following JavaScript code?

<p id="demo"></p>
<script>
function myFunction() 
{
   var patt = new RegExp("World", "g");
   var res = patt.toString();
   document.getElementById("demo").innerHTML = res;
}
</script>

8. What is the purpose of the Auth tab in the testing platform?

9. Arrange the TCP/IP model layers in the order from farthest to closest to the end user.

10. What is the purpose of the canvas element?


 

Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.