Javascript Interview Questions - 37 | Snaprecruit.com

Javascript Interview Questions - 37 | Snaprecruit.com

Javascript interview questions part 37

Javascript interview questions part 37

Take as many assements as you can to improve your validate your skill rating

Total Questions: 20

1. Which of the following reads the textual contents of a URL and returns as a string?

Correct Answer is : readUrl(url);

2. When does JSNLog have server-side extensions?

Correct Answer is : Use of .NET

3. What is the purpose of script loading?

Correct Answer is : Load JavaScript files programmatically

4. What will happen if the browser encounters a script tag without an src attribute?

Correct Answer is : Sends it to the interpreter

5. What is the solution to the absence of a script tag without an src attribute?

Correct Answer is : Create inline JavaScript

6. How to get a particular value using the tagged name?

Correct Answer is : getElementsbyTagName()

7. What should be the type of script_url?

Correct Answer is : Any of the mentioned

8. What is the purpose of using the async attribute in the script tag?

Correct Answer is : Load the script asynchronously

9. Why do we need to use an onload event in the script tag after using the async attribute?

Correct Answer is : Invoke code during downloading

10. What is the purpose of the startTimeLogging() method?

Correct Answer is : All of the mentioned

11. What is the type of datatype the async attribute optionally accepts?

Correct Answer is : Boolean

12. What is the method used to create an element in the HTML DOM?

Correct Answer is : createElement()

13. What is the purpose of the method createDocumentFragment()?

Correct Answer is : Creates imaginary node object

14. What is the default value of the asyc attribute?

Correct Answer is : TRUE

15. What is the method to create a data frame?

Correct Answer is : data.frame()

16. What is the purpose of creating a data frame?

Correct Answer is : Hold the page render time & load time

17. Which of the following navigator object properties is the same in both Netscape and IE?

Correct Answer is : navigator.appCodeName

18. Which best explains getSelection()?

Correct Answer is : Returns the value of cursor-selected text

19. Which of the following are client-side JavaScript object?

Correct Answer is : FileUpLoad

20. What is the purpose of the method localeCompare()?

Correct Answer is : If the reference string comes before or after another string

Similar Interview Questions

    Search for latest jobs

    Icon
    Icon