Explore topic-wise MCQs in Javascript.

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

1.

Which of the following property(s) has a default value as false?

A. isableWhenFirebugActive
B. howIconWhenHidden
C. isableXHRListener
D. oth disableWhenFirebugActive & showIconWhenHidden
Answer» D. oth disableWhenFirebugActive & showIconWhenHidden
2.

Which of the following can be used for a deeper analysis of the web page’s performance?

A. ebPageTest
B. ireBug
C. Slow
D. ll of the mentioned
Answer» D. ll of the mentioned
3.

Which of following shows a poorer runtime performance for coalescing functionality, using functions, and using objects?

A. irefox unwoundfun
B. irefox UsingFunct
C. irefox UsingObject
D. one of the mentioned
Answer» B. irefox UsingFunct
4.

Which of the following is the approach used to compress HTML in web servers and modern web browsers?

A. ontent encoding
B. ontent decoding
C. ompression algorithm – DEFLATE
D. one of the mentioned
Answer» B. ontent decoding
5.

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
Answer» B. Firefox UsingFunct
6.

Firebug can be used to inspect ___________

A. HTML
B. CSS
C. DOM
D. All of the mentioned
Answer» E.
7.

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 things
Answer» C. Based on certain constraints
8.

What is the function of a Closure Compiler?

A. Originates the JavaScript
B. Compiles the JavaScript
C. Rewrites JavaScript
D. Links the JavaScript
Answer» D. Links the JavaScript
9.

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 cursor
Answer» C. To block the mouse pointer
10.

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
Answer» C. Firefox UsingObject
11.

What does the JS File return?

A. File I/O
B. Minify JavaScript
C. HTTP Request
D. Gzip encoded
Answer» C. HTTP Request
12.

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 page
Answer» E.
13.

The let keyword can be used ___________

A. in a for or for/in loop, as a substitute for var
B. as a block statement, to define new variables
C. to define variables that are scoped to a single expression
D. all of the mentioned
Answer» E.
14.

Which of the following methods adds an arc to the current subpath?

A. bezierCurveTo()
B. arcTo()
C. arc()
D. Curve()
Answer» D. Curve()
15.

Which status code indicates that the server could not find the resource requested?

A. 200
B. 404
C. 500
D. 566
Answer» C. 500
16.

What does the status code 500 indicate?

A. Error in request
B. Error in response
C. Error in server
D. Successful
Answer» B. Error in response
17.

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
Answer» B. Speed of user request
18.

Which is the game that requires extremely minified source in the Perl culture?

A. Perl pool
B. Perl golf
C. Both Perl pool and golf
D. Perl bat
Answer» C. Both Perl pool and golf
19.

What is the maximum size of an IP packet for IPv4 or IPv6?

A. 65540
B. 65535
C. 65577
D. 67544
Answer» C. 65577
20.

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
Answer» C. videoSkip
21.

The Closure Compiler was introduced by ___________

A. Microsoft
B. Apple
C. Google
D. Yahoo
Answer» D. Yahoo
22.

Which of the following can be used for a deeper analysis of the web page's performance?

A. WebPageTest
B. FireBug
C. YSlow
D. All of the mentioned
Answer» D. All of the mentioned
23.

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 access
Answer» B. To authorize a page
24.

Which is the game that requires extremely minified source in the Perl culture?%!

A. Perl pool
B. Perl golf
C. Both Perl pool and golf
D. None of the mentioned
Answer» C. Both Perl pool and golf
25.

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. None of the mentioned
Answer» B. Content decoding
26.

Which of the following are JavaScript optimizers?%!

A. JSMin
B. Packer
C. Minify
D. Both JSMin and Packer
Answer» E.
27.

*$_What is the purpose of Auth tab in the testing platform??

A. To specify credentials
B. To authorize a page
C. To run the test
D. None of the mentioned
Answer» B. To authorize a page
28.

*$_What is the task of the Advanced Panel??

A. Test stop running
B. Loading the pages
C. Skewing the results
D. None of the mentioned
Answer» B. Loading the pages
29.

*$_How does PhantonJS use YSlow??

A. Queries
B. Statements
C. Command Line Prompt
D. Command Line Script
Answer» E.
30.

*$_Which of the following is mandatory to run before running YSlow??

A. WebPageTest
B. FireBug
C. Both WebPageTest and FireBug
D. None of the mentioned
Answer» C. Both WebPageTest and FireBug
31.

*$_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. None of the mentioned
Answer» C. Slight alteration to improve the runtime performance
32.

*$_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 options
Answer» D. Menu options
33.

*$_What is the maximum size of an IP packet for IPv4 or IPv6??

A. 65540
B. 65535
C. 65577
D. 67544
Answer» C. 65577
34.

*$_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. None of the mentioned
Answer» B. Increase in bandwidth
35.

*/*_From which did Minification concept originate??

A. JavaScript code efficiency
B. JavaScript interpreter
C. Both JavaScript code efficiency and interpreter
D. None of the mentioned
Answer» C. Both JavaScript code efficiency and interpreter
36.

*/*_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. None of the mentioned
Answer» D. None of the mentioned
37.

*/*_The Closure Compiler was introduced by?

A. Microsoft
B. Apple
C. Google
D. None of the mentioned
Answer» D. None of the mentioned
38.

*/*_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. None of the mentioned
Answer» D. None of the mentioned
39.

%_When does WebPageTest become necessary?_%

A. To run any common website
B. To run private websites
C. To run QA testing
D. All of the mentioned
Answer» C. To run QA testing
40.

%_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 screen shots of the page
Answer» E.
41.

%_The let keyword can be used_%

A. in a for or for/in loop, as a substitute for var
B. as a block statement, to define new variables
C. to define variables that are scoped to a single expression
D. all of the mentioned
Answer» E.
42.

%_How many rules are there in the YSlow version 2.0?_%

A. 23
B. 21
C. 27
D. 33
Answer» B. 21
43.

%_In how many modes can the Closure compiler be run?_%

A. 2
B. 3
C. 4
D. 5
Answer» B. 3
44.

%_What are the goals for using Firebug?_%

A. Performance
B. Adaptability
C. Complexity
D. Reliability
Answer» B. Adaptability
45.

%_Which status code indicates that the server could not find the resource requested?_%

A. 200
B. 404
C. 500
D. 566
Answer» C. 500
46.

%_What does the span of time waiting for the page to be useful depend on?_%

A. Runtime performance
B. Web performance
C. Speed
D. None of the mentioned
Answer» C. Speed
47.

_ What is the purpose of minifying the JavaScript?$?

A. To streamline the visits
B. To save the visits
C. All of the mentioned
D. None of the mentioned
Answer» B. To save the visits
48.

_ Which folder contains the Minify control panel?$?

A. /min/builder/
B. /builder/
C. /minify/build
D. /minify/builder
Answer» B. /builder/
49.

_ 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. None of the mentioned
Answer» C. Based on certain constraints
50.

_ How does the handshake help the server?$?

A. Acknowledge
B. Accept the attempt
C. Both Acknowledge and Accept the attempt
D. None of the mentioned
Answer» D. None of the mentioned