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.

51.

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 transmissionI have been asked this question in class test.This interesting question is from Performance Measures in JavaScript topic in section Performance Measures in JavaScript of JavaScript

Answer»

Correct choice is (c) SPEED at which application FUNCTIONS

To explain: PERFORMANCE refers to the speed at which an application functions. It is a multifaceted ASPECT of quality. Better performance RESULTS in better user experience.

52.

What does the Minify return back to the Script tag?(a) File I/O(b) Minify JavaScript(c) HTTP Request(d) Gzip encodedI have been asked this question at a job interview.I want to ask this question from JavaScript Minification topic in section Performance Measures in JavaScript of JavaScript

Answer»

The correct ANSWER is (d) Gzip encoded

To elaborate: Minification refers to the process of removing unnecessary or redundant data without affecting how the resource is PROCESSED by the browser. The MINIFY SENDS BACK the gzip encoded back to the Script tag.

53.

What is the purpose of the Script tab?(a) To edit the coding(b) To run on multiple servers(c) To run more complex tests(d) To run mediaThis question was posed to me at a job interview.I want to ask this question from JavaScript with WebPageTest topic in portion Performance Measures in JavaScript of JavaScript

Answer»

The correct choice is (c) To RUN more complex tests

To explain: The Script TAB can be used to run more complex tests that involve multiple STEPS INCLUDING navigate to multiple URLS, etc.

54.

Initially, YSlow was an extension of which browser?(a) Chrome(b) Firefox(c) IE(d) OperaI have been asked this question during an internship interview.This interesting question is from JavaScript with YSlow topic in division Performance Measures in JavaScript of JavaScript

Answer» CORRECT choice is (B) Firefox

To ELABORATE: INITIALLY, YSlow was an extension of Firefox. YSlow for Firefox needs FIREBUG to run.
55.

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 UsingStructI got this question during an online interview.I would like to ask this question from Performance Measures in JavaScript topic in division Performance Measures in JavaScript of JavaScript

Answer»

The correct answer is (b) Firefox UsingFunct

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

56.

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 dataThe question was posed to me in unit test.This interesting question is from Performance Measures in JavaScript topic in portion Performance Measures in JavaScript of JavaScript

Answer»

Right option is (b) Time to load

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.

57.

What does the application layer handle?(a) Top-level communication(b) Bottom-level communication(c) Both Top-level and Bottom-level communication(d) Middle-level communicationThis question was addressed to me in an online quiz.The doubt is from Performance Measures in JavaScript topic in portion Performance Measures in JavaScript of JavaScript

Answer»

Right option is (a) Top-level COMMUNICATION

The explanation is: An application layer is an abstraction layer that specifies the shared COMMUNICATIONS protocols and interface methods used by hosts in a communications NETWORK. The Application layer handles the top-level communication that the CLIENT and servers use, LIKE HTTP and SMTP for email clients.

58.

Which network allows you to distribute static assets like images, etc?(a) Content Delivery Network(b) Content Receiving Network(c) System Area Network(d) Local area networkThe question was posed to me during an interview for a job.Enquiry is from JavaScript with YSlow in chapter Performance Measures in JavaScript of JavaScript

Answer» CORRECT choice is (a) CONTENT Delivery Network

To EXPLAIN I would say: A content delivery network (CDN) allows you to distribute your static assets like images, JAVASCRIPT files and stylesheets to geographically distributed servers. This gets the content of your page to your user’s BROWSER faster.
59.

Firebug is an extension of which browser?(a) Mozilla(b) Chrome(c) IE(d) OperaI got this question by my school principal while I was bunking the class.This key question is from JavaScript with FireBug in section Performance Measures in JavaScript of JavaScript

Answer» RIGHT option is (a) Mozilla

The explanation: FIREBUG is a discontinued free and open-source web BROWSER extension for Mozilla Firefox that facilitated the live debugging, editing, and monitoring of any WEBSITE’s CSS, HTML, DOM, XHR, and JavaScript.
60.

How does the YSlow for Mobile work as?(a) Bookwise(b) Booklet(c) Bookmarklet(d) BookmarkThe question was posed to me in an international level competition.I'm obligated to ask this question of JavaScript with YSlow in portion Performance Measures in JavaScript of JavaScript

Answer»

Right choice is (C) BOOKMARKLET

The BEST explanation: The YSlow for Mobile WORKS as bookmaklet. Bookmarklet is a JavaScript code stored as the URL of a bookmark in a web browser.

61.

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 UsingStructI had been asked this question in an online interview.The origin of the question is Performance Measures in JavaScript in section Performance Measures in JavaScript of JavaScript

Answer» RIGHT option is (a) FIREFOX unwoundfun

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