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. Which of the following are JavaScript optimizers?

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

<p id="demo"></p>
<script>
function myFunction() 
{
   var str = "hello to \r world."; 
   var patt1 = /\v/;
   var result = str.search(patt1);
   document.getElementById("demo").innerHTML = result;
}
</script>

3. Which of the following is/are not the features of R?

4. What is the purpose of minifying the JavaScript?

5. What does the Minify return back to the Script tag?

6. How will you transmit data using the connection?

7. What is the purpose of the method symbols in R?

8. What is the necessity to create a separate file after having an API key?

9. What is the advantage for Linux users using R?

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

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

 

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.