Html miscellaneous
- The maximum bytes for control frames is _______________.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
Control frames must be of 125 bytes or less than this. Control frames must not be fragmented. They have opcode of 0x02 (Ping), 0x01 (close) or 0x03 (Pong). Control frames help in communicating state about webSocket.
- Which of the following is the wire protocol for WebScoket?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
Wire protocol is handshaking and data transferring between server and client. It is the RFC6455. Chrome for Android and Chrome are compatible with RFC6455. It includes binary messaging also. Firefox version 11 and Internet Explorer 10 is also compatible with this.
- Which of the following is not associated with web socket communication?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
For opening WebSocket we call WebSocket constructor. The syntax is
var conn=new WebSocket(‘ws://rtyyghj.websocket.org/echo’,[‘brush’, ‘xmpp’]);
- Which option is not available in HTMLMinifier?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
There are many options available in HTMLMinifier like it removes comments, also comments from CSS and JavaScript blocks, collapses whitespace, removes character data blocks from JavaScript and CSS, Collapses Boolean attributes, removes redundant attributes, uses a short doctype, removes empty elements, removes attribute quotes.
- HTMLMinifier is written in ________.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
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.