My Report

JavaScript Practice Test 5


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 does the min mean in the following JavaScript code?

<script src="jquery-1.4.2.min.js"></script>

2. How does a user generate multiple keydown events?

3. The video and the audio belong to the _________

4. Which method is an alternative of the property location of a window object?

5. What is the purpose of the method item()?

6. How to test if two nodes are equal?

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

<p id="demo"></p>
<script>
function myFunction() 
{
    var str = "Is this his";
    var patt1 = /is$/g;
    var result = str.match(patt1);
    if(result)
  	result='true';
    else
    result='false';
    document.getElementById("demo").innerHTML = result;
}
</script>

8. Which property holds a DataTransfer object that contains information about the data being transferred and the formats in which it is available?

9. Which event is triggered sooner when the document and its elements are ready to manipulate?

10. Which is the property that is triggered in response to JavaScript errors?


 

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.