JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Firm
Javascript interview questions part 25
Javascript interview questions part 25
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. YUI Compressor is analogous to
A. Minify
B. JavaScript
C. Both Minify and JavaScript
D. CSS
Show Correct Answer
Correct Answer is :
Minify
2. What type of file is YUI Compressor?
A. Binary file
B. JAR file
C. Text file
D. Assembly file
Show Correct Answer
Correct Answer is :
JAR file
3. What is the function of a Closure Compiler?
A. Originates the JavaScript
B. Compiles the JavaScript
C. Rewrites JavaScript
D. Links the JavaScript
Show Correct Answer
Correct Answer is :
Rewrites JavaScript
4. 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
Show Correct Answer
Correct Answer is :
They strip out everything including best practices
5. The Closure Compiler was introduced by ___________
A. Microsoft
B. Apple
C. Google
D. Yahoo
Show Correct Answer
Correct Answer is :
Google
6. What does the Minify return back to the Script tag?
A. File I/O
B. Minify JavaScript
C. HTTP Request
D. Gzip encoded
Show Correct Answer
Correct Answer is :
Gzip encoded
7. What is the return type of the script tag?
A. File I/O
B. Minify JavaScript
C. HTTP Request
D. Gzip encoded
Show Correct Answer
Correct Answer is :
HTTP Request
8. What does the JS File return?
A. File I/O
B. Minify JavaScript
C. HTTP Request
D. Gzip encoded
Show Correct Answer
Correct Answer is :
Minify JavaScript
9. What is the outcome of using R along with minification?
A. Sheer file size reduction
B. File size increase
C. More efficient
D. Compatibility
Show Correct Answer
Correct Answer is :
Sheer file size reduction
10. 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)
Show Correct Answer
Correct Answer is :
Closure Compiler (advanced)
11. Which of the following are JavaScript optimizers?
A. JSMin
B. Packer
C. Minify
D. Both JSMin and Packer
Show Correct Answer
Correct Answer is :
Both JSMin and Packer
12. 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 minification
Show Correct Answer
Correct Answer is :
Content encoding
13. 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
Show Correct Answer
Correct Answer is :
Perl golf
14. The Crockford’s subset does not include which function in JavaScript?
A. eval()
B. coeval()
C. equal()
D. equivalent()
Show Correct Answer
Correct Answer is :
eval()
15. What does javascript use instead of == and !=?
A. It uses bitwise checking
B. It uses === and !== instead
C. It uses equals() and notequals() instead
D. It uses equalto()
Show Correct Answer
Correct Answer is :
It uses === and !== instead
16. What is being imposed on each subset to ensure that it conforms to the subset?
A. A parser to parse the code
B. A parser that parses and adds to the subset
C. A static verifier that parses code
D. A predefined function to parse the code
Show Correct Answer
Correct Answer is :
A static verifier that parses code
17. Why was “The Good Parts” designed as a language subset in JavaScript?
A. To improve programmer flexibility
B. To balance the workload of the programmer
C. To create an in-built compiler and interpreter
D. To improve programmer productivity
Show Correct Answer
Correct Answer is :
To improve programmer productivity
18. Which is the subset that is a secure container designed for the purpose of safely running untrusted JavaScript?
A. Sandbox
B. The Good Parts
C. Both Sandbox and Good Parts
D. Web browser
Show Correct Answer
Correct Answer is :
Sandbox
19. Why is this keyword not preferred in JavaScript?
A. Highly memory consuming
B. Functions should access the global objects
C. Functions should not access the global objects
D. Very inefficient to use
Show Correct Answer
Correct Answer is :
Functions should not access the global objects
20. Which are the two functions that are not allowed in any secure subset?
A. evaluate() and restrict()
B. eval() and the Function() constructor
C. debugger() and test()
D. eval() and debugger()
Show Correct Answer
Correct Answer is :
eval() and the Function() constructor
Similar Interview Questions
Search for latest jobs
Find Jobs