My Report

JavaScript Practice Test 7


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. What will be the output of the following JavaScript code?

<p id="demo"></p>
<script>
function myFunction() 
{
   var str = "Visit W3Schools. Hello World!"; 
   var patt1 = /\u0057/g;
   var result = str.match(patt1);
   var result = str.match(patt1);
   if(result) 
  	result=true;
   else
  	result=false;
   document.getElementById("demo").innerHTML = result;
}
</script>

2. What is the purpose of the method forward()?

3. What is the tainted property of the window object?

4. What is the outcome of using R along with minification?

5. Why do we use Adobe Illustrator along with R?

6. What is the usage of the keyword ?? in R?

7. Which of the following methods adds an arc to the current subpath?

8. Which of the following method is used to replace the current history state instead of adding a new state to the browsing history?

9. For a more extensive search, which keyword needs to be used?

10. What type of file is YUI Compressor?


 

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.