Javascript Interview Questions - 38 | Snaprecruit.com
Javascript Interview Questions - 38 | Snaprecruit.com
JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing
Enterprises
Javascript interview questions part 38
Javascript interview questions part 38
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. When the “end” event fires on EOF when no more data will arrive, which function is called?
A. s.on("data",f);
B. s.on("end",f);
C. s.on("error",f);
D. s.on("default",f);
Show Correct Answer
Correct Answer is :
s.on("end",f);
2. To define each of the set classes as a property of the sets object (namespace) for the module, the statement is
A. sets = sets.AbstractEnumerableSet.extend();
B. sets.SingletonSet = sets.AbstractEnumerableSet.extend(...);
C. sets.SingletonSet = sets.extend(...);
D. sets = sets.extend(...);
Show Correct Answer
Correct Answer is :
sets.SingletonSet = sets.AbstractEnumerableSet.extend(...);
3. Which property helps to initiate the HTTP requests?
A. request
B. location
C. send
D. write
Show Correct Answer
Correct Answer is :
location
4. Which method is an alternative of the property location of a window object?
A. submit()
B. locate()
C. load()
D. write()
Show Correct Answer
Correct Answer is :
submit()
5. Which of the following uses scripted HTTP?
A. XML
B. HTML
C. Ajax
D. CSS
Show Correct Answer
Correct Answer is :
Ajax
6. Which of the below is a liberal reverse of Ajax?
A. HTTP
B. HTML
C. XML
D. Comet
Show Correct Answer
Correct Answer is :
Comet
7. The other name for Comet is _____________
A. Server Push
B. Ajax Push
C. HTTP Streaming
D. All of the mentioned
Show Correct Answer
Correct Answer is :
All of the mentioned
8. Which is the element that has a src property to initiate HTTP GET request?
A. img
B. iframe
C. script
D. both img and script
Show Correct Answer
Correct Answer is :
both img and script
9. XMLHttpRequest is a ____________
A. Object
B. Class
C. Both Object and Class
D. Array
Show Correct Answer
Correct Answer is :
Both Object and Class
10. Which of the following are the features of an HTTP request?
A. URL being requested
B. Optional request body
C. Optional set of request headers
D. All of the mentioned
Show Correct Answer
Correct Answer is :
All of the mentioned
11. Which of the following is a feature of the HTTP response?
A. Mandatory response body
B. Optional response body
C. URL being released
D. Optional set of response headers
Show Correct Answer
Correct Answer is :
Mandatory response body
12. Which is the appropriate code to begin a HTTP GET request?
A. request.open("GET","data");
B. request.open(GET,"data.csv");
C. request.open("GET","data.csv");
D. request.open("GET");
Show Correct Answer
Correct Answer is :
request.open("GET","data.csv");
13. Which HTML element is used to include images?
A. image
B. img
C. src
D. sourcing
Show Correct Answer
Correct Answer is :
img
14. What is the purpose of image replacement?
A. To replace an image
B. To implement special effects
C. Removal of image rollovers
D. Implementation of image rollovers
Show Correct Answer
Correct Answer is :
Implementation of image rollovers
15. When is JavaScript called obtrusive?
A. JavaScript code is medium sized
B. JavaScript code is so small
C. JavaScript code is so large
D. All of the mentioned
Show Correct Answer
Correct Answer is :
JavaScript code is so large
16. Which is a possible way of finding all the img elements in the document?
A. document(images)
B. document.images[]
C. document(img)
D. doc(img)
Show Correct Answer
Correct Answer is :
document.images[]
17. Which of the following elements are used to include audio?
A. audio
B. video
C. svg
D. aud
Show Correct Answer
Correct Answer is :
audio
18. Which of the following attributes are common to both audio and video?
A. enter
B. control
C. controls
D. add
Show Correct Answer
Correct Answer is :
controls
19. Which of the following is not the property of the video tag?
A. width
B. height
C. breadth
D. area
Show Correct Answer
Correct Answer is :
breadth
20. Which of the following is the parameter used to invoke the Audio() constructor?
A. File type
B. Music type
C. Both File and Music
D. Video type
Show Correct Answer
Correct Answer is :
Both File and Music
Similar Interview Questions
Search for latest jobs
Find Jobs