Test Series - html

Test Number 27/72

Q: Which of the following is not the form type for adding text?
A. Text input
B. Text area
C. Password input
D. Submit button
Solution: There are many types of form controls. Adding text, Submitting forms, Making choices and Uploading files are some of them. For an adding text, we can use Text input, Text area, and Password input. For making choices there are checkboxes, radio buttons, and drop-down boxes.
Q: In the processing of information, the server does not use the language _____
A. C#
B. JAVA
C. C++
D. VB.net
Solution: When we enter a new value through form it goes to the server for processing information and this information is processed using languages C#, PHP, JAVA or VB.net. The database can also store the information.
Q: For creating single line text box for searching queries, we use the type ___________
A. placeholder
B. search
C. url
D. hidden
Solution: For creating a single line text box for searching queries we use the type=”search”. In old browsers, it will be simply a single line text box. Safari adds across that clear search box when we enter new data to search. It also rounds the corners on search input fields by default.
Q: Form validation traditionally was performed by ___________
A. PHP
B. HTML
C. JavaScript
D. jQuery
Solution: Form validation is checking if the form has been filled correctly. Traditionally it has been performed by JavaScript but now HTML5 is introducing validation. Hence browser does all the work of validation. Validation reduces the amount of work for the server.
Q: For grouping form controls we can use ___________
A. 
B. 
C. 
D. 
Q: Which one has the most potential for minification?
A. JavaScript
B. CSS
C. HTML
D. PHP
Solution: Among the four languages JavaScript, PHP, HTML and CSS, JavaScript has the most potential for minification. In JavaScript whitespaces and comments are removed. Windows-style line breaks (CRLF) is converted to UNIX-style breaks (LF). Moreover, variable names can also be shortened.
Q: YUI compressor is written in ____________
A. HTML
B. C++
C. C
D. Java
Solution: YUI compressor is one of the best compressor. It is a command-line minifier which is written in Java. It can process CSS as well as JavaScript. It is simple to run it like-
$java –jar /usr/local/bin//yuicompressor-2.3.5/build/yuicompressor-2.3.5.jar input.js > output.js
Q: Which compressor gives maximum GZIPPED compression?
A. YUI
B. JSMin
C. Packer
D. Closure(advanced)
Solution: YUI compressor gives maximum GZIPPED compression i.e. 21 out of 122. JSMin gives 23 out of 122, Closure(simple) gives 21 out of 122, Closure(advanced) gives 18 out of 122, Packer gives 23 out of 122. There is also redundancy due to GZIP compression.
Q: CSSMin is written in ___________
A. C++
B. Java
C. PHP
D. C
Solution: CSSMin is written in Java. It preforms conversion of lowercase, ordering of properties, replacement of names with numeric or hex equivalents. E.g. font-weight:bold can be written as font-weight: 600, color: black to color: #000.
Q: HTMLMinifier is written in ________
A. JavaScript
B. Java
C. C++
D. C
Solution: There are mainly two popular HTML minifier. HTMLMinifier and htmlcompressor first are written in JavaScript. It is to be run via a web browser. Second is command-line Java application. HTMLMinifier offers better levels of compression.

You Have Score    /10