JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
Javascript interview questions part 37
Javascript interview questions part 37
Back
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?
A. spawn(f);
B. load(filename,…);
C. readFile(file);
D. readUrl(url);
Show Correct Answer
Correct Answer is :
readUrl(url);
2. When does JSNLog have server-side extensions?
A. Use of .NET
B. Use of Java
C. Both .NET and Java
D. Use of C#
Show Correct Answer
Correct Answer is :
Use of .NET
3. What is the purpose of script loading?
A. Load Scripts programmatically
B. Load JavaScript files manually
C. Load JavaScript files programmatically
D. All of the mentioned
Show Correct Answer
Correct Answer is :
Load JavaScript files programmatically
4. What will happen if the browser encounters a script tag without an src attribute?
A. Throws an error
B. Throws an exception
C. Sends it to the compiler
D. Sends it to the interpreter
Show Correct Answer
Correct Answer is :
Sends it to the interpreter
5. What is the solution to the absence of a script tag without an src attribute?
A. Resend the scripts
B. Create inline JavaScript
C. Attach a javascript file
D. Include a file
Show Correct Answer
Correct Answer is :
Create inline JavaScript
6. How to get a particular value using the tagged name?
A. getElementbyID()
B. getElementsbyName()
C. getElementsbyTagName()
D. getTagName()
Show Correct Answer
Correct Answer is :
getElementsbyTagName()
7. What should be the type of script_url?
A. Object
B. String
C. Array
D. Any of the mentioned
Show Correct Answer
Correct Answer is :
Any of the mentioned
8. What is the purpose of using the async attribute in the script tag?
A. Load the script asynchronously
B. Load the script synchronously
C. Load the page asynchronously
D. Load the page synchronously
Show Correct Answer
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?
A. Invoke code during page loading
B. Invoke code during script loading
C. Invoke code during downloading
D. Invoke code during reloading
Show Correct Answer
Correct Answer is :
Invoke code during downloading
10. What is the purpose of the startTimeLogging() method?
A. Start the timer
B. Capture time logging
C. Capture timing data for referencing
D. All of the mentioned
Show Correct Answer
Correct Answer is :
All of the mentioned
11. What is the type of datatype the async attribute optionally accepts?
A. Integer
B. String
C. Boolean
D. Decimal
Show Correct Answer
Correct Answer is :
Boolean
12. What is the method used to create an element in the HTML DOM?
A. createDOMelement()
B. createElement()
C. createDOMElement()
D. create()
Show Correct Answer
Correct Answer is :
createElement()
13. What is the purpose of the method createDocumentFragment()?
A. Creates a fragment object
B. Creates a document fragment
C. Creates imaginary node object
D. Create a node fragment
Show Correct Answer
Correct Answer is :
Creates imaginary node object
14. What is the default value of the asyc attribute?
A. 0
B. 1
C. FALSE
D. TRUE
Show Correct Answer
Correct Answer is :
TRUE
15. What is the method to create a data frame?
A. frame(data)
B. frameData()
C. data.frame()
D. frame.Data()
Show Correct Answer
Correct Answer is :
data.frame()
16. What is the purpose of creating a data frame?
A. Hold the page render time
B. Hold the load time
C. Hold the page render time & load time
D. Hold the reload time
Show Correct Answer
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?
A. navigator.appCodeName
B. navigator.appName
C. navigator.appVersion
D. appcode.navigator()
Show Correct Answer
Correct Answer is :
navigator.appCodeName
18. Which best explains getSelection()?
A. Returns the VALUE of a selected OPTION
B. Returns document.URL of the window in focus
C. Returns the value of cursor-selected text
D. Returns the VALUE of a checked radio input
Show Correct Answer
Correct Answer is :
Returns the value of cursor-selected text
19. Which of the following are client-side JavaScript object?
A. Database
B. Cursor
C. Client
D. FileUpLoad
Show Correct Answer
Correct Answer is :
FileUpLoad
20. What is the purpose of the method localeCompare()?
A. If the reference string comes before or after another string
B. If the reference string is validated
C. If the string is a reference string
D. If the reference string comes first
Show Correct Answer
Correct Answer is :
If the reference string comes before or after another string
Similar Interview Questions
Search for latest jobs
Find Jobs