InterviewSolution
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 |
|
| 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/ |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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() |
|
| 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 |
|
| 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) |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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. |
|