627). How can we define the term Performance?
[A]Speed of the input takes in
[B]Speed of the output display
[C] Speed at which application functions
[D]Speed of data transmission
Show Answer
Correct Answer: Speed at which application functions
Notes:
Answer: c
Explanation: Performance refers to the speed at which an application functions. It is a multifaceted aspect of quality. Better performance results in better user experience.
628). When is an application said to show a web performance?
[A] Time to respond
[B]Time to load
[C]Time to send a request
[D] Time to receive data
Show Answer
Correct Answer: Time to load
Notes:
Answer: b
Explanation: Web performance refers to the speed in which web pages are downloaded and displayed on the user’s web browser. When we’re talking about web applications, the time it takes your application to be presented to your users is what we will call web performance.
629). When is an application said to show a runtime performance?
[A]Speed of response to user
[B]Speed of user request
[C]Speed of sending data
[D]Speed of receiving data
Show Answer
Correct Answer: Speed of response to user
Notes:
Answer: a
Explanation: The speed at which your application responds to your users’ interactions is what we’ll call runtime performance. Better runtime performance results in better user experience.
630). What does the span of time waiting for the page to be useful depending on?
[A]Runtime performance
[B]Web performance
[C]Speed
[D]Runtime performance & Speed
Show Answer
Correct Answer: Web performance
Notes:
Answer: b
Explanation: Web performance refers to the speed in which web pages are downloaded and displayed on the user’s web browser. The span of time that you are waiting for the page to be usable depends on web performance.
631). What is the advantage of the code produced graphics being smaller than the images themselves?
[A]Bandwidth saving
[B]Increase in bandwidth
[C]Dynamic advantages
[D]Static advantages
Show Answer
Correct Answer: Bandwidth saving
Notes:
Answer: a
Explanation: The code used to produce graphics on the client side is typically much smaller than the images themselves, creating substantial bandwidth savings. This also helps in increasing web performance.
632). In order to skip or seek to the desired location in a sound or video, which property becomes helpful?
[A]audioSkip
[B]currentTime
[C]videoSkip
[D]skiptoTime
Show Answer
Correct Answer: currentTime
Notes:
Answer: b
Explanation: The currentTime property sets or returns the current position (in seconds) of the audio/video playback. In addition to starting and stopping sound and video, you can skip (or “seek”) to the desired location within the media by setting the currentTime property.
633). Which of the following shows a better runtime performance for coalescing functionality, using functions, and using objects?
[A]Firefox unwoundfun
[B]Firefox UsingFunct
[C] Firefox UsingObject
[D]Firefox UsingStruct
Show Answer
Correct Answer: Firefox UsingFunct
Notes:
Answer: b
Explanation: When we compare the runtime performance for coalescing functionality, using functions, and using objects, the Firefox UsingFunct shows better performance. UsingFunct improves runtime performance and inturn the user experience.
634). Which of the following shows a poorer runtime performance for coalescing functionality, using functions, and using objects?
[A]Firefox unwoundfun
[B]Firefox UsingFunct
[C]Firefox UsingObject
[D]Firefox UsingStruct
Show Answer
Correct Answer: Firefox unwoundfun
Notes:
Answer: a
Explanation: When we compare the runtime performance for coalescing functionality, using functions, and using objects, the Firefox UsingFunct shows a poorer performance. This results in poor user experience.
635). In how many modes can the Closure compiler be run?
Show Answer
Correct Answer: 2
Notes:
Answer: a
Explanation: Closure Compiler can be run in either of two modes:
In Simple mode it mostly performs like most other minifiers, removing whitespace, line breaks, and comments
In Advanced mode it rewrites the JavaScript by renaming variables and functions from longer descriptive names to single letters to save file size, and it inlines functions, coalescing them into single functions wherever it determines that it can
636). What is the purpose of the advanced mode in the Closure compiler?
[A] Removing the variables and other parameters
[B]Renaming the variables and other parameters
[C]Slight alteration to improve the runtime performance
[D]Calls the function
Show Answer
Correct Answer: Renaming the variables and other parameters
Notes:
Answer: b
Explanation: In Advanced mode, the Closure Compiler rewrites the JavaScript by renaming variables and functions from longer descriptive names to single letters to save file size, and it inlines functions, coalescing them into single functions wherever it determines that it can.