Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

1.

What does the JS File return?(a) File I/O(b) Minify JavaScript(c) HTTP Request(d) Gzip encodedThe question was asked during an online interview.My question is based upon JavaScript Minification topic in chapter Performance Measures in JavaScript of JavaScript

Answer»

Right choice is (b) Minify JavaScript

The best explanation: MINIFICATION is the process of minimizing CODE and markup in your WEB pages and script files. EFFECTIVELY Minify has built in HTTP static compression. The JS File returns the Minify JavaScript.

2.

Which folder contains the Minify control panel?(a) /min/builder/(b) /builder/(c) /minify/build(d) /minify/builderThis question was addressed to me in an online interview.The question is from JavaScript Minification in chapter Performance Measures in JavaScript of JavaScript

Answer»

The correct choice is (a) /min/builder/

Best explanation: The minified file version PROVIDES the same FUNCTIONALITY while REDUCING the bandwidth of network requests. To NAVIGATE to the Minify CONTROL panel, it is located in the /min/builder/.

3.

Which of the following action is possible in Firebug when used as a JavaScript Debugger and Profiler?(a) Pause execution in any line(b) Find Scripts easily(c) Find Scripts easily & also Pause execution in any line(d) Find text easilyI had been asked this question in a job interview.This interesting question is from JavaScript with FireBug topic in portion Performance Measures in JavaScript of JavaScript

Answer» RIGHT answer is (c) Find Scripts easily & also Pause execution in any line

The BEST explanation: When Firebug is used as a JAVASCRIPT Debugger and Profiler, it can be used to find scripts easily and also pause the execution in any desired line. Thus it helps in debugging javascript much easier.
4.

What is the default value of the property overrideConsole?(a) 1(b) true(c) 0(d) falseThe question was asked in my homework.My doubt stems from JavaScript with FireBug topic in section Performance Measures in JavaScript of JavaScript

Answer»
5.

Which status code indicates that the server could not find the resource requested?(a) 200(b) 404(c) 500(d) 566The question was asked in examination.My enquiry is from Performance Measures in JavaScript in portion Performance Measures in JavaScript of JavaScript

Answer»

The correct option is (b) 404

The explanation: The HTTP 404, 404 Not Found, and 404 ERROR message is a Hypertext Transfer Protocol (HTTP) standard response code, in computer network COMMUNICATIONS, to INDICATE that the client was ABLE to communicate with a given server, but the server could not find what was requested.

6.

When does WebPageTest become necessary?(a) To run any common website(b) To run private websites(c) To run QA testing(d) To run media testingI had been asked this question during an interview for a job.This interesting question is from JavaScript with WebPageTest in section Performance Measures in JavaScript of JavaScript

Answer»

Correct choice is (b) To RUN private websites

To explain: If you WANT to run tests on web sites that are not publicly available—like a QA or development environment, or if you can only have your test results stored on your own servers because of legal or other reasons, then INSTALLING your own private instance of WebPagetest is the WAY to GO.

7.

Which is the command that is used to spoof the client user agent?(a) setUserAgent(b) spoofAgent(c) spoofClientUserAgent(d) spoofUserThe question was posed to me by my college director while I was bunking the class.This intriguing question originated from JavaScript with WebPageTest topic in portion Performance Measures in JavaScript of JavaScript

Answer»

The CORRECT answer is (a) setUserAgent

To ELABORATE: The setUserAgent spoofs the client USER AGENT.

8.

From which did Minification concept originate?(a) JavaScript code efficiency(b) JavaScript interpreter(c) JavaScript Compiler(d) JavaScript writerI got this question in an interview for job.Question is from JavaScript Minification topic in division Performance Measures in JavaScript of JavaScript

Answer»

The correct CHOICE is (b) JAVASCRIPT interpreter

Explanation: Minification is ORIGINALLY based on the idea that the JavaScript interpreter ignores white space, LINE breaks, and of course comments, so we can save on total file size of our .js files if we remove those unneeded characters.

9.

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 advantagesThis question was addressed to me in an international level competition.This interesting question is from Performance Measures in JavaScript topic in division Performance Measures in JavaScript of JavaScript

Answer»

The correct answer is (a) BANDWIDTH saving

Best 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.

10.

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 dataThis question was addressed to me during a job interview.Question is taken from Performance Measures in JavaScript topic in chapter Performance Measures in JavaScript of JavaScript

Answer»

Right answer is (a) Speed of response to user

Best 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.

11.

Which of the following is the order of Minify process?(a) Remove extraneous characters, gzip the response, Read(b) Remove extraneous characters, Read, gzip the response(c) Read, Remove extraneous characters, gzip the response(d) Read, gzip, extract, removeI have been asked this question by my school teacher while I was bunking the class.I want to ask this question from JavaScript Minification topic in division Performance Measures in JavaScript of JavaScript

Answer»

Correct answer is (c) Read, Remove extraneous characters, gzip the response

Easy explanation: To MINIFY JS, CSS and HTML files, COMMENTS and EXTRA spaces need to be removed, as well as crunch variable names so as to minimize code and reduce file size. Minify reads in the CONTENT, decorates it by way of removing extraneous characters, and gzips the response.

12.

How many rules are there in the YSlow version 2.0?(a) 23(b) 21(c) 27(d) 33The question was posed to me in examination.Asked question is from JavaScript with YSlow in chapter Performance Measures in JavaScript of JavaScript

Answer»

Right choice is (a) 23

The EXPLANATION: There are totally 23 rules in the ruleset of YSlow (V2) NAMELY :

Minimize HTTP Requests

Use a CONTENT Delivery Network

Avoid empty SRC or href

Add an Expires or a Cache-Control Header

Gzip Components

Put StyleSheets at the Top

Put Scripts at the Bottom

Avoid CSS Expressions

Make JavaScript and CSS External

Reduce DNS Lookups

Minify JavaScript and CSS

Avoid Redirects

Remove Duplicate Scripts

Configure ETags

Make AJAX Cacheable

Use GET for AJAX Requests

Reduce the Number of DOM Elements

No 404s

Reduce Cookie Size

Use Cookie-Free Domains for Components

Avoid Filters

Do Not Scale Images in HTML

Make favicon.ico Small and Cacheable

13.

Firebug can be used to inspect ___________(a) HTML(b) CSS(c) DOM(d) All of the mentionedI have been asked this question at a job interview.My query is from JavaScript with FireBug topic in portion Performance Measures in JavaScript of JavaScript

Answer»

Correct option is (d) All of the mentioned

Best explanation: Firebug is an extension for the Mozilla Firefox browser that allows you to debug and inspect HTML, CSS, the Document OBJECT MODEL (DOM) and JAVASCRIPT. In addition to debugging web pages, Firebug was used for web security testing and web PAGE performance analysis.

14.

Which of the following is not a feature of the User Interface?(a) Skinnable Interface(b) Resizable Side Panel(c) Fixed Side Panel(d) Menu optionsI got this question in an international level competition.My question is taken from JavaScript with FireBug topic in chapter Performance Measures in JavaScript of JavaScript

Answer»

Right option is (c) Fixed Side Panel

To elaborate: The FEATURES present in the USER Interface are:

Port of Firebug’s Visual Object REPRESENTATION (AKA Reps)

Recreation of Firebug 1.3 User Interface with pixel precision

Menu options

Resizable Side Panel

Skinnable Interface

15.

What does the status code 200 indicate?(a) Error in request(b) Error in response(c) Error in server(d) SuccessfulThis question was addressed to me in a job interview.Question is from Performance Measures in JavaScript topic in section Performance Measures in JavaScript of JavaScript

Answer» CORRECT choice is (d) Successful

The explanation is: The status CODE 200 indicates a successful response from the server. A 400 status code REPRESENTS a bad request.
16.

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 & SpeedThe question was posed to me by my college professor while I was bunking the class.Asked question is from Performance Measures in JavaScript topic in chapter Performance Measures in JavaScript of JavaScript

Answer»

Right option is (b) Web performance

For 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.

17.

What does the handshake pass between the browser and the remote server?(a) Synchronize(b) Accept(c) Reject(d) DeclineThis question was posed to me in an interview for job.This key question is from Performance Measures in JavaScript topic in section Performance Measures in JavaScript of JavaScript

Answer»

The correct option is (a) Synchronize

The EXPLANATION is: A three-way handshake is a method USED in a TCP/IP network to create a connection between a local host/client and server. The handshake consists of a Synchronize, Synchronize-ACKNOWLEDGE, and Acknowledge MESSAGE to be passed between the browser and the REMOTE server.

18.

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) skiptoTimeThis question was addressed to me during an internship interview.This intriguing question originated from Performance Measures in JavaScript in division Performance Measures in JavaScript of JavaScript

Answer»

Correct ANSWER is (b) currentTime

For 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.

19.

Which of the following property(s) has a default value as false?(a) disableWhenFirebugActive(b) showIconWhenHidden(c) disableXHRListener(d) both disableWhenFirebugActive & showIconWhenHiddenI had been asked this question in an interview for internship.The query is from JavaScript with FireBug in division Performance Measures in JavaScript of JavaScript

Answer»

Right OPTION is (c) disableXHRListener

For EXPLANATION: Only disableXHRListener PROPERTY has a default value FALSE. The properties disableWhenFirebugActive and showIconWhenHidden has a default value of true.

20.

Which of the following methods adds and connects the point to the cubic bezier curve?(a) bezierConnect()(b) bezierCurveTo()(c) Connectbezier()(d) bezierTo()I had been asked this question in homework.I need to ask this question from JavaScript with WebPageTest in division Performance Measures in JavaScript of JavaScript

Answer»

Correct option is (B) bezierCurveTo()

The explanation: A CUBIC bezier curve requires three points. The first two points are control points that are used in the cubic Bézier calculation and the last point is the ENDING point for the curve. This METHOD adds a NEW point P to the subpath and connects it to the current point with a cubic Bezier curve.

21.

What are the goals for using Firebug?(a) Performance(b) Adaptability(c) Complexity(d) ReliabilityI got this question during an online exam.My doubt stems from JavaScript with FireBug topic in division Performance Measures in JavaScript of JavaScript

Answer» RIGHT answer is (a) Performance

To elaborate: The GOALS for using Firebug is:

Performance

Modularity

Shared code

Compatibility

Web security ANALYSIS
22.

How do we define the term Thread?(a) Device that controls input(b) Variable that controls movement(c) Controlled execution of applications(d) Device that controls input & Variable that controls movementI have been asked this question in semester exam.My question comes from Performance Measures in JavaScript topic in chapter Performance Measures in JavaScript of JavaScript

Answer»

Correct answer is (c) Controlled EXECUTION of APPLICATIONS

To explain I would say: Threads are sequential units of controlled execution for applications. A thread of execution is the smallest sequence of PROGRAMMED INSTRUCTIONS that can be MANAGED independently by a scheduler, which is typically a part of the operating system.

23.

Which one of the following is more efficient in terms of the file size reduction?(a) YUI(b) Closure Compiler (advanced)(c) Minify(d) Closure Compiler (simple)I got this question at a job interview.My doubt is from JavaScript Minification topic in division Performance Measures in JavaScript of JavaScript

Answer»

The correct choice is (b) Closure COMPILER (advanced)

BEST explanation: The Closure Compiler is a tool for making JAVASCRIPT download and RUNS faster. Instead of compiling from a source language to machine code, it compiles from JavaScript to better JavaScript. The Closure Compiler (advanced) has a more number PERCENT of file size reduction by product.

24.

What is the outcome of using R along with minification?(a) Sheer file size reduction(b) File size increase(c) More efficient(d) CompatibilityI had been asked this question during an online interview.My question is from JavaScript Minification topic in chapter Performance Measures in JavaScript of JavaScript

Answer»

The CORRECT choice is (a) Sheer file size REDUCTION

For explanation: Minification refers to the PROCESS of removing unnecessary or redundant data without affecting how the RESOURCE is processed by the browser. Sheer file size reduction is the only ONE aspect of the overall determination got from the R along with the minification.

25.

The Closure Compiler was introduced by ___________(a) Microsoft(b) Apple(c) Google(d) YahooI have been asked this question in semester exam.My query is from JavaScript Minification in portion Performance Measures in JavaScript of JavaScript

Answer»

Correct OPTION is (c) Google

For explanation I WOULD say: The Closure COMPILER is a tool for making JavaScript DOWNLOAD and runs faster. Instead of compiling from a source language to machine code, it compiles from JavaScript to better JavaScript. The Closure Compiler was introduced by Google.

26.

What does the status code 500 indicate?(a) Error in request(b) Error in response(c) Error in server(d) SuccessfulThis question was addressed to me in examination.Enquiry is from Performance Measures in JavaScript topic in chapter Performance Measures in JavaScript of JavaScript

Answer»

Correct choice is (a) ERROR in request

Best explanation: The 500 status code, or Internal SERVER Error, means that server cannot PROCESS the request for an unknown reason. SOMETIMES this code will appear when more specific 5xx errors are more appropriate.

27.

What is the purpose of the transport layer?(a) TCP Communication takes place(b) UDP Communication takes place(c) Both TCP and UDP Communication takes place(d) IP communicationI got this question during a job interview.Origin of the question is Performance Measures in JavaScript in chapter Performance Measures in JavaScript of JavaScript

Answer»

The correct option is (c) Both TCP and UDP COMMUNICATION takes place

Explanation: The transport layer is the layer in the open system INTERCONNECTION (OSI) model responsible for end-to-end communication over a network. The Transport layer is where our TCP (or UDP) communication takes place.

28.

What is scorched-earth optimizations?(a) They optimize based on certain constraints(b) They strip out everything including best practices(c) Based on certain constraints(d) Striping out additional thingsThis question was posed to me in examination.This intriguing question comes from JavaScript Minification topic in chapter Performance Measures in JavaScript of JavaScript

Answer» RIGHT option is (B) They strip out everything including best practices

The best I can explain: The Closure Compiler is a tool for making JavaScript DOWNLOAD and runs faster. Closure Compiler runs through a number of “scorched-earth” optimizations—it unfurls functions, rewrites variable NAMES, and REMOVES functions that are never called (as far as it can tell).
29.

What is the purpose of the product Minify?(a) Storing the data(b) Streamlining the data(c) Proxies the JavaScript file(d) Loading the dataThis question was posed to me by my school principal while I was bunking the class.My question is based upon JavaScript Minification topic in section Performance Measures in JavaScript of JavaScript

Answer» CORRECT option is (c) PROXIES the JavaScript file

The explanation: Minify proxies the JavaScript file; the SCRIPT tag on the page points to Minify, which is a PHP file.
30.

What does the browser do to set up a TCP/IP connection?(a) TCP one-way handshake(b) TCP two-way handshake(c) TCP three-way handshake(d) TCP four-way handshakeI had been asked this question in an online interview.Origin of the question is Performance Measures in JavaScript topic in chapter Performance Measures in JavaScript of JavaScript

Answer»

Right choice is (c) TCP three-way handshake

For explanation: A three-way handshake is a method USED in a TCP/IP network to CREATE a CONNECTION between a local host/client and server. It is a three-step method that requires both the client and server to exchange SYN and ACK (acknowledgment) packets before actual data communication BEGINS.

31.

Why do Web Developers use Firebug?(a) Track cookies(b) Track sessions(c) Both Track cookies and sessions(d) Track dataThis question was addressed to me in quiz.The doubt is from JavaScript with FireBug in chapter Performance Measures in JavaScript of JavaScript

Answer» CORRECT option is (c) Both Track cookies and sessions

For explanation: Web developers use FIREBUG for the following reasons:

Inspect the BEHAVIOR of HTML/CSS, and MODIFY style & layout with true WYSIWYG

Debug JavaScript

Detect performance of website

Track Cookies & Sessions

Web security ANALYSIS
32.

How does the handshake help the server?(a) Acknowledge(b) Accept the attempt(c) Both Acknowledge and Accept the attempt(d) AsynchronizeThis question was addressed to me during a job interview.My query is from Performance Measures in JavaScript topic in division Performance Measures in JavaScript of JavaScript

Answer»

Correct option is (C) Both Acknowledge and Accept the attempt

The explanation is: The HANDSHAKE ALLOWS the server to acknowledge and accept the attempt. The handshake CONSISTS of a SYNCHRONIZE, Synchronize-Acknowledge, and Acknowledge message to be passed between the browser and the remote server.

33.

Which of the following are JavaScript optimizers?(a) JSMin(b) Packer(c) Minify(d) Both JSMin and PackerI got this question in an online quiz.My question is from JavaScript Minification in section Performance Measures in JavaScript of JavaScript

Answer»

The correct choice is (d) Both JSMIN and Packer

Best explanation: JSMin is a filter which removes comments and unnecessary WHITESPACE from JavaScript FILES. It typically reduces filesize by half, RESULTING in FASTER downloads. JavaScript optimizers such as JSMin and Packer are specially designed for modern web programming techniques and are able to understand and preserve conditional comments, and similar.

34.

YUI Compressor is analogous to ___________(a) Minify(b) JavaScript(c) Both Minify and JavaScript(d) CSSI had been asked this question by my school teacher while I was bunking the class.This intriguing question originated from JavaScript Minification topic in section Performance Measures in JavaScript of JavaScript

Answer»

Correct choice is (a) Minify

For EXPLANATION I would say: The YUI Compressor is JavaScript minifier designed to be 100% safe and YIELD a higher compression ratio than most other tools. Just like Minify, YUI Compressor STRIPS out all of the unnecessary CHARACTERS from your JavaScript, INCLUDING spaces, line breaks, and comments.

35.

What is the vulnerability of XHR communications?(a) There is no vulnerability(b) Skewing the results(c) Registration and Skewing the results(d) Registering the test resultsI had been asked this question in unit test.My question is taken from JavaScript with WebPageTest topic in chapter Performance Measures in JavaScript of JavaScript

Answer»

Correct CHOICE is (c) Registration and Skewing the results

Easiest explanation: XMLHTTPREQUEST (XHR) is an API in the form of an object whose methods transfer data between a web browser and a web server. XHR communications that MAY happen after page LOAD could register as new activity and skew the test results.

36.

Which of the following can be used for a deeper analysis of the web page’s performance?(a) WebPageTest(b) FireBug(c) YSlow(d) WebPageTest & FireBugThis question was addressed to me in an interview for job.My query is from JavaScript with YSlow topic in section Performance Measures in JavaScript of JavaScript

Answer»

The correct answer is (C) YSLOW

Explanation: YSlow analyzes web page performance by examining all the components on the page, including components dynamically CREATED by using JAVASCRIPT. It measures the page’s performance and offers suggestions for IMPROVEMENT.

37.

What are the two output formats YSlow uses?(a) TAP, JUnit(b) JIT, TRD(c) JKP, RFD(d) TIP, KITI got this question in a job interview.This intriguing question originated from JavaScript with YSlow in portion Performance Measures in JavaScript of JavaScript

Answer»

Right answer is (a) TAP, JUnit

To explain I would say: YSlow for PhantomJS is a command line script that allows page performance ANALYSIS from live URLs. YSlow for PhantomJS introduces new output formats for AUTOMATED test frameworks: TAP (Test ANYTHING Protocol) and JUnit.

38.

In how many modes can the Closure compiler be run?(a) 2(b) 3(c) 4(d) 5The question was posed to me by my college director while I was bunking the class.Query is from Performance Measures in JavaScript in chapter Performance Measures in JavaScript of JavaScript

Answer»

Right answer is (a) 2

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

39.

What is in-built in the Minify?(a) Dynamic compression(b) Static compression(c) Static content(d) Dynamic contentThe question was posed to me in an online quiz.This interesting question is from JavaScript Minification topic in chapter Performance Measures in JavaScript of JavaScript

Answer»

The correct answer is (b) STATIC COMPRESSION

Best explanation: MINIFICATION is the PROCESS of minimizing code and markup in your web pages and SCRIPT files. Effectively Minify has built in HTTP static compression. This is especially useful if your web host doesn’t allow the gzipping of static content.

40.

What type of file is YUI Compressor?(a) Binary file(b) JAR file(c) Text file(d) Assembly fileThis question was posed to me at a job interview.The above asked question is from JavaScript Minification in section Performance Measures in JavaScript of JavaScript

Answer»

The correct choice is (B) JAR file

Easy explanation: The YUI Compressor is JavaScript minifier designed to be 100% safe and yield a higher compression ratio than most other tools. YUI Compressor is a jar file and RUNS from the command line. Because of this, it is easily integrated into a build process. It looks LIKE this:

java -jar yuicompressor-[version].jar [options] [file NAME]

41.

What is the purpose of minifying the JavaScript?(a) To streamline the visits(b) To save the visits(c) To save data(d) To increase the loading timeThis question was posed to me in an online quiz.This question is from JavaScript Minification in portion Performance Measures in JavaScript of JavaScript

Answer»

The CORRECT choice is (a) To streamline the visits

Explanation: To ensure that your first-time visits are as streamlined as possible, we NEED to minify our JavaScript. MINIFYING JavaScript results in decreasing the loading time and hence helps in CREATING a better user EXPERIENCE.

42.

What is the task of the Advanced Panel?(a) Test stop running(b) Loading the pages(c) Skewing the results(d) Loading the serverI got this question in exam.This interesting question is from JavaScript with WebPageTest topic in section Performance Measures in JavaScript of JavaScript

Answer»

Right option is (a) Test stop RUNNING

For EXPLANATION: 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.

43.

What is the purpose of the Video tab?(a) To take video of the page(b) To capture screenshots of the test only(c) To take video of the test(d) To capture screenshots of the pageI have been asked this question in final exam.My doubt stems from JavaScript with WebPageTest topic in chapter Performance Measures in JavaScript of JavaScript

Answer» CORRECT CHOICE is (d) To capture screenshots of the page

For explanation I would say: The Video TAB ALLOWS you to capture screenshots of your page as it LOADS and views them as a video.
44.

What is the purpose of the Block tab?(a) To block the response(b) To block the request(c) To block the mouse pointer(d) To block the cursorThis question was posed to me in class test.Question is from JavaScript with WebPageTest topic in chapter Performance Measures in JavaScript of JavaScript

Answer» CORRECT ANSWER is (B) To block the request

The best I can explain: The Block TAB allows US to block content coming in our request.
45.

Which of the following is the approach used to compress HTML in web servers and modern web browsers?(a) Content encoding(b) Content decoding(c) Compression algorithm – DEFLATE(d) Content minificationThe question was asked by my school principal while I was bunking the class.This interesting question is from JavaScript Minification in section Performance Measures in JavaScript of JavaScript

Answer»

The correct option is (a) Content encoding

The EXPLANATION is: Minification refers to the PROCESS of removing unnecessary or redundant data without affecting how the resource is processed by the browser. Content encoding is an approach taken by COMPATIBLE web servers and modern web browsers to compress HTML and related textual content, often in the gzip FORMAT.

46.

What is the purpose of the Auth tab in the testing platform?(a) To specify credentials(b) To authorize a page(c) To run the test(d) To run user accessThis question was addressed to me in quiz.This intriguing question originated from JavaScript with WebPageTest topic in section Performance Measures in JavaScript of JavaScript

Answer»

The correct answer is (a) To specify credentials

To EXPLAIN: In the Auth TAB you can specify credentials to USE if the web site uses HTTP AUTHENTICATION for ACCESS.

47.

What is the return type of the script tag?(a) File I/O(b) Minify JavaScript(c) HTTP Request(d) Gzip encodedI got this question in an internship interview.Asked question is from JavaScript Minification in portion Performance Measures in JavaScript of JavaScript

Answer» CORRECT option is (c) HTTP Request

For explanation: The SCRIPT tag sends the HTTP Request to the Minify. Minify reads the JavaScript file in, minifies it and when it responds it sets the accept encoding HTTP header to gzip, DEFLATE.
48.

What does the Minify set the encoding HTTP header?(a) deflate(b) gzip(c) both deflate and gzip(d) inflateI had been asked this question by my college director while I was bunking the class.Question is taken from JavaScript Minification topic in chapter Performance Measures in JavaScript of JavaScript

Answer»

Correct option is (c) both deflate and GZIP

The best I can explain: MINIFICATION refers to the process of removing unnecessary or redundant data without AFFECTING how the resource is processed by the browser. Minify reads the JavaScript file in, MINIFIES it and when it responds it sets the accept encoding HTTP header to gzip, deflate.

49.

Which of the following is mandatory to run before running YSlow?(a) WebPageTest(b) FireBug(c) Both WebPageTest and FireBug(d) MozillaThis question was addressed to me at a job interview.I need to ask this question from JavaScript with YSlow topic in portion Performance Measures in JavaScript of JavaScript

Answer»

Right answer is (b) FIREBUG

Explanation: YSlow analyzes web page performance by EXAMINING all the components on the page, including components DYNAMICALLY created by USING JavaScript. It is mandatory to RUN FireBug before running YSlow.

50.

How does PhantonJS use YSlow?(a) Queries(b) Statements(c) Command Line Prompt(d) Command Line ScriptI got this question in an online quiz.The doubt is from JavaScript with YSlow topic in section Performance Measures in JavaScript of JavaScript

Answer» RIGHT CHOICE is (d) Command Line Script

For explanation: YSlow for PhantomJS is a command line script that allows page PERFORMANCE analysis from LIVE URLs, unlike YSlow for Command Line (HAR) where a pre-generated HAR file is NEEDED in order to analyze page performance.