Performance Measures(Engineering > Computer Science And Engineering > Javascript ) Questions and Answers

Question 1. Which of the following is the order of Minify process?
  1.    Remove extraneous characters, gzip the response, Read
  2.    Remove extraneous characters, Read, gzip the response
  3.    Read, Remove extraneous characters, gzip the response
  4.    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
  1.    Minify
  2.    JavaScript
  3.    Both a and b
  4.    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
  1.    Microsoft
  2.    Apple
  3.    Google
  4.    None of the mentioned
Explanation:-
Answer: Option C. -> Google


The Closure Compiler was introduced by Google.



Question 4. What does the JS File return ?
  1.    File I/O
  2.    Minify JavaScript
  3.    HTTP Request
  4.    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?
  1.    disableWhenFirebugActive
  2.    showIconWhenHidden
  3.    disableXHRListener
  4.    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?
  1.    Test stop running
  2.    Loading the pages
  3.    Both a and b
  4.    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?
  1.    Top-level communication
  2.    Bottom-level communication
  3.    Both a and b
  4.    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?
  1.    Runtime performance
  2.    Web performance
  3.    Speed
  4.    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?
  1.    Firefox unwoundfun
  2.    Firefox UsingFunct
  3.    Firefox UsingObject
  4.    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?
  1.    Chrome
  2.    Firefox
  3.    IE
  4.    Opera
Explanation:-
Answer: Option B. -> Firefox


Intially, YSlow was an extension of Firefox.