Performance Measures(Engineering > Computer Science And Engineering > Javascript ) Questions and Answers
Question 1. Which of the following is the order of Minify process?
Remove extraneous characters, gzip the response, Read
Remove extraneous characters, Read, gzip the response
Read, Remove extraneous characters, gzip the response
None of the mentioned
Explanation:-
Answer: Option C. -> Read, Remove extraneous characters, gzip the response
Minify reads in the content, decorates it by way of removing extraneous characters, and gzips the response.
Question 2. YUI Compressor is analogous to
Minify
JavaScript
Both a and b
None of the mentioned
Explanation:-
Answer: Option A. -> Minify
Just like Minify, YUI Compressor strips out all of the unnecessary characters from your JavaScript, including spaces, line breaks, and comments.
Question 3. The Closure Compiler was introduced by
Microsoft
Apple
Google
None of the mentioned
Explanation:-
Answer: Option C. -> Google
The Closure Compiler was introduced by Google.
Question 4. What does the JS File return ?
File I/O
Minify JavaScript
HTTP Request
Gzip encoded
Explanation:-
Answer: Option B. -> Minify JavaScript
The JS File returns the Minify JavaScript.
Question 5. Which of the following property(s) has a default value as false?
disableWhenFirebugActive
showIconWhenHidden
disableXHRListener
Both a and b
Explanation:-
Answer: Option C. -> disableXHRListener
Only disableXHRListener property has a default value false. The properties disableWhenFirebugActive and showIconWhenHidden has a default value of true.
Question 6. What is the task of the Advanced Panel?
Test stop running
Loading the pages
Both a and b
None of the mentioned
Explanation:-
Answer: Option A. -> Test stop running
In the Advanced panel, you can have the test stop running at document completion. That will tell us when the document.onload event is fired, instead of when all assets on the page are loaded.
Question 7. What does the application layer handle?
Top-level communication
Bottom-level communication
Both a and b
None of the mentioned
Explanation:-
Answer: Option A. -> Top-level communication
The Application layer handles the top-level communication that the client and servers use, like HTTP and SMTP for email clients.
Question 8. What does the span of time waiting for the page to be useful depend on?
Runtime performance
Web performance
Speed
None of the mentioned
Explanation:-
Answer: Option B. -> Web performance
The span of time that you are waiting for the page to be usable depends on web performance.
Question 9. Which of following shows a better runtime performance for coalescing functionality, using functions, and using objects?
Firefox unwoundfun
Firefox UsingFunct
Firefox UsingObject
None of the mentioned
Explanation:-
Answer: Option B. -> Firefox UsingFunct
When we compare the runtime performance for coalescing functionality, using functions, and using objects, the Firefox UsingFunct shows a better performance.
Question 10. Initially, YSlow was an extension of which browser?