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.

Which of the following is not encode by encodeURI() function?(a) >(b) [(c) \(d) :The question was posed to me during an interview for a job.I'm obligated to ask this question of URL Encoding topic in portion HTML Images & Web Page Files of HTML

Answer»

The CORRECT OPTION is (d) :

The best I can explain: ENCODEURI() function is JavaScript function. It ENCODES special characters. The characters that can’t be encoded are ‘,’, ‘?’, ‘/’, ‘@’, ‘=’, ‘&’, ‘$’, ‘+’, ‘#’, ‘:’. Its syntax is encodeURI(URI), uri is the URI that to be encoded.

52.

Sprites are not used for _________(a) beautify the web page(b) reducing HTTP request(c) reduce loading time(d) reducing multiple server requestsI have been asked this question in an interview for internship.My query is from Using Image Sprites & Standardizing Client-Side Templating topic in portion HTML Images & Web Page Files of HTML

Answer»

Correct choice is (a) beautify the web PAGE

Easy EXPLANATION: If there are so many small icons, images, buttons etc. on the web page it will take more TIME to load the web page. Hence image SPRITES are used, it combines small images in one and loading time is REDUCED. This also reduces the HTTP request.

53.

Each image in sprite should be approximately of ___________(a) 100 pixels(b) 20 pixels(c) 10 pixels(d) 50 pixelsI got this question in my homework.This key question is from Using Image Sprites & Standardizing Client-Side Templating in portion HTML Images & Web Page Files of HTML

Answer»

The correct answer is (c) 10 PIXELS

The best I can explain: For using image sprite we should try to round up to nearly 10 pixels, especially when WORKING with Photoshop. We should also USE simpler figures so that it will be EASY to use ‘snap-to’ grids in photoshop, also for keeping THINGS organized.

54.

Which of the following detects for the support of size attribute of an image?(a) JPEG 2000(b) JPEG XR(c) Image crossOrigin(d) SizesThis question was posed to me in a job interview.I need to ask this question from Adding HTML features safely with Modernizr in chapter HTML Images & Web Page Files of HTML

Answer»
55.

Which of the following gives a text description of the image if it is not available?(a) alt(b) title(c) src(d) heightI got this question in an online quiz.This interesting question is from Optimization of Images topic in section HTML Images & Web Page Files of HTML

Answer»

The CORRECT ANSWER is (a) ALT

For explanation I would say: The alt ATTRIBUTES gives a text description of the image if the image is not AVAILABLE at a time. Syntax is

56.

Vector images are created in ___________(a) Adobe Illustrator(b) Adobe Photoshop(c) Adobe Fireworks(d) SplashupThe question was asked in quiz.This interesting question is from Optimization of Images in chapter HTML Images & Web Page Files of HTML

Answer»

Correct choice is (a) Adobe Illustrator

For EXPLANATION: Vector images are created commonly in Adobe Illustrator. Vector images are different from bitmap images. Vector images are RESOLUTION independent. Images such as LOGO, diagram, illustration are created in vector format. Bitmap format includes JPG, PNG and GIF images.

57.

Which of the following is not the class of NoSQL?(a) Document stores(b) Multidimension stores(c) Key-value stores(d) MemcacheThis question was addressed to me during an online interview.This intriguing question originated from Web Performance Optimization topic in division HTML Images & Web Page Files of HTML

Answer»

Right ANSWER is (d) Memcache

The explanation: The most basic class of NoSQL is key-value stores and commonly used in WEB infrastructure. Multidimension stores are more COMPLEX data relationships, here data is stored in rows and columns. MongoDB and CouchDB are the examples of Document stores.

58.

Which browser does not support element?(a) Chrome(b) Firefox(c) Internet Explorer(d) OperaThis question was posed to me during an interview.My question is based upon Using Image Sprites & Standardizing Client-Side Templating topic in portion HTML Images & Web Page Files of HTML

Answer»

The correct answer is (c) INTERNET Explorer

Explanation: On desktop

59.

classPrefix is used when _____________(a) it is mandatory prefix before all the classes(b) class name clashes(c) when there is no any class in the code(d) not mandatory it depends on userI had been asked this question in an online quiz.The origin of the question is Adding HTML features safely with Modernizr in chapter HTML Images & Web Page Files of HTML

Answer»

Right answer is (b) CLASS name clashes

Best explanation: If modernizr’s class NAMES are clashing with already EXISTING class then we use classPrefix inside the configuration. It works same as hidden detects that adds .hidden class. Syntax is { “classPrefix”: “tee”, “feature-detects”: [“dom/hide”]}, this means INSTEAD of we will GET .

60.

URL is ___________(a) web address(b) source code(c) user’s address(d) an attributeI got this question by my college professor while I was bunking the class.This is a very interesting question from URL Encoding in chapter HTML Images & Web Page Files of HTML

Answer»

Correct choice is (a) web address

Explanation: URL is the SECOND name of a web address. It is COMPOSED of IP (Internet Protocol) address or words. Its full form is UNIFORM Resource Locators. GENERALLY entering name while surfing is easy as numbers are hard to REMEMBER.

61.

Which format can create a transparent image?(a) PNG(b) GIF(c) JPG(d) SVGI have been asked this question in examination.This interesting question is from Optimization of Images in section HTML Images & Web Page Files of HTML

Answer»

Right choice is (a) PNG

Easiest EXPLANATION: For creating transparent images one can use PNG or Transparent GIF FORMAT. These formats can CREATE see through or partially transparent image. However transparent PNG format is not supported by old browsers like INTERNET Explorer. SVG stands for Scalable Vector Graphics. It is a new format that is USED to display vector images directly.A GIF is a graphics interchange format. JPG is a lossy compressed file format.

62.

What does not come under minification?(a) removal of comments(b) removal of new line characters(c) removal of white space characters(d) removal of multimedia elementsI had been asked this question during an internship interview.I would like to ask this question from Web Performance Optimization topic in division HTML Images & Web Page Files of HTML

Answer»

Right option is (d) REMOVAL of multimedia elements

The explanation is: For better web performance we use removal of UNNECESSARY CHARACTERS from the source code like WHITE space characters, comments, new line characters, block delimiters etc.

63.

Which of the following is the final method to create MySQL backups?(a) LVM snapshots(b) SQL backups(c) CSV backups(d) File backupsThis question was addressed to me in an online interview.This is a very interesting question from Web Performance Optimization in portion HTML Images & Web Page Files of HTML

Answer»

Right answer is (a) LVM snapshots

Explanation: Copy of data or else DATABASE is known as backup. The final method for creating MySQL BACKUPS is LVM snapshots. It uses a copy-on-write feature of storage SYSTEMS in which LVM i.e. Logical Volume Management is the most popular in Linux. It is very quick as it creates the snapshots. CSV stands for Cluster Shared VOLUMES backups. File backup is the backup of MySQL database which creates a copy of files from MySQL data directory. SQL backups are alternate to File backups.

64.

Which browser gives maximum parallel connections per host?(a) Opera 10(b) Chrome 1 and 2(c) Safari 3 and 4(d) Firefox 3I have been asked this question during an interview.I'm obligated to ask this question of Web Performance Optimization topic in portion HTML Images & Web Page Files of HTML

Answer»

Right option is (a) Opera 10

To EXPLAIN I would SAY: Parallel downloading is very beneficial to PERFORMANCE. Opera 10 provides the maximum parallel connections PER host i.e. 8, Chrome 1 and 2, Chrome 4 to 23 gives 6 maximum parallel connections per host, SAFARI 3 and 4 gives 4 maximum parallel connections per host, Firefox 3, Firefox 4 to 17 gives 6 maximum parallel connections per host.

65.

What is the correct syntax of web address?(a) path://prefix.port:domain/filename/scheme(b) scheme://prefix.domain:port/path/filename(c) prefix://scheme.port:domain/filename/path(d) port://domain.filenmae:path/scheme/prefixThis question was posed to me in unit test.My question comes from URL Encoding topic in division HTML Images & Web Page Files of HTML

Answer»

Right option is (b) SCHEME://prefix.domain:PORT/path/filename

The EXPLANATION is: The CORRECT syntax for a web address is scheme://prefix.domain:port/path/filename, where scheme is for https or http, prefix is for domain like www, domain denotes domain NAME, port defines port number, path defines path at server, filename is for name of the document.

66.

For checking programmatically we use _________(a) Modernizr.mq(b) Modernizr.prefixed(c) Modernizr._prefixes(d) Modernizr.testAllPropsI have been asked this question during an interview.My question is taken from Adding HTML features safely with Modernizr topic in portion HTML Images & Web Page Files of HTML

Answer»

Correct choice is (a) Modernizr.mq

For explanation I WOULD say: For checking PROGRAMMATICALLY we USE Modernizr.mq, it checks if the window of current browser matches a media query or not. Syntax is

67.

If the transparent part of the image has rounded or diagonal edges, which format is suitable?(a) PNG(b) Transparent GIF(c) GIF(d) JPGI got this question in an internship interview.Asked question is from Application Cache and Cache Manifest File topic in portion HTML Images & Web Page Files of HTML

Answer»

Right ANSWER is (a) PNG

For explanation: If a transparent part of the image has rounded or diagonal corners we USE PNG format. If we want SEMI opaque transparency or drop shadow there ALSO this format is helpful. If the transparent part of the image has straight EDGES we use transparent GIF format.

68.

Which of the following is not one of the cache state?(a) Downloading(b) Checking(c) Idle(d) FallbackThe question was asked during an interview.I need to ask this question from Application Cache and Cache Manifest File topic in chapter HTML Images & Web Page Files of HTML

Answer»

Right choice is (d) Fallback

To explain I WOULD say: Updateready, OBSOLETE, downloading, checking, idle, uncached are the states of cache. Downloading state of cache denotes that the resources are being downloaded. Checking state SIGNIFIES that manifest is being CHECKED for the updates.Idle state denotes that the cache is not currently ACTIVE for the process to update.

69.

What is the work of Gzip compression?(a) compresses an image(b) compresses web pages only(c) compresses JavaScript and CSS code only(d) compresses web pages, JavaScript and CSSThis question was addressed to me in an international level competition.My question is based upon Web Performance Optimization in chapter HTML Images & Web Page Files of HTML

Answer» RIGHT answer is (d) compresses web pages, JavaScript and CSS

The BEST explanation: Basically GZIP compression is used to compress text DATA in websites. Gzip compression is very useful in web performance optimization. It compresses web pages, JavaScript and CSS. Gzip is also one of the file formats. Gzip compression can be enabled via webserver configuration. Common webservers where it can me make enable is .htaccess, Nginx, Apache and Litspeed.
70.

Which of the following is used to decode the encoded URI?(a) encodeURI()(b) encodeURIComponent()(c) decodeURI()(d) Server.URLEncode()I had been asked this question during a job interview.My question comes from URL Encoding in chapter HTML Images & Web Page Files of HTML

Answer»

Correct OPTION is (c) decodeURI()

To EXPLAIN I would say: ENCODEURI(), encodeURIComponent, decodeURI() are the JAVA Script function. encodeURI(), encodeURIComponent() are the functionsthat encode URL. decodeURI() is the function that decode the ENCODED URL.

71.

In URL encoding replaces non-ASCII characters with ________(a) “*”(b) “&”(c) “%”(d) “+”I got this question during an interview.I want to ask this question from URL Encoding in section HTML Images & Web Page Files of HTML

Answer»

Correct option is (C) “%”

For explanation I would say: In URL ENCODING non-ASCII characters are replaced with “%” which is followed by hexadecimal digits. URL can only CONTAIN ASCII character set. There should be no space in the URL, space is replaced by %20 or “+” in URL encoding.

72.

When a new version of any cache is available which even is fired?(a) progress(b) updateready(c) checking(d) obsoleteThis question was addressed to me in homework.My question is based upon Application Cache and Cache Manifest File topic in chapter HTML Images & Web Page Files of HTML

Answer»

The CORRECT answer is (B) updateready

For explanation I would SAY: When there is an availability of the new version of the cache updateready EVENT is fired. When the resources are being downloaded then progress event is fired. Checking event is fired when an update is being checked. Obsolete is fired when the current cache is marked obsolete.

73.

ASCII is _____________(a) 6-bit character set(b) 7-bit character set(c) 9-bit character set(d) 3-bit character setI got this question during an online interview.The above asked question is from URL Encoding topic in division HTML Images & Web Page Files of HTML

Answer»

Correct answer is (b) 7-bit character set

For explanation I would say: ASCII consists 7-bit character set which has 128 characters. There are NUMBERS 0-9, upper and lower CASE letters from A-Z, and also INCLUDE special characters. INCLUDING modern computers, INTERNET these characters are used in HTML also.

74.

Which of the following is not render blocking resource?(a) CSS(b) HTML(c) JavaScript(d) JqueryI had been asked this question in a job interview.The above asked question is from Web Performance Optimization in portion HTML Images & Web Page Files of HTML

Answer»

Right OPTION is (d) Jquery

To explain I WOULD say: HTML, CSS and JavaScript are RENDER blocking resources to the DOM. To enhance the SPEED of your web page these resources should be properly used.

75.

Major portion of web page contributes _________________(a) image(b) text(c) video(d) audioI have been asked this question in a national level competition.Origin of the question is Web Performance Optimization topic in division HTML Images & Web Page Files of HTML

Answer»

The CORRECT OPTION is (a) image

Explanation: 64% of any website’s page is MADE up of images. The loading speed of the websites also SLOWS down due to this much contribution of images in a web page. To REDUCE this loading time we use web performance optimization.

76.

Which latest browser is able to detect CSS Grids?(a) Modernizr 3.5.0(b) Modernizr 3.4.0(c) Modernizr 3.2.0(d) Modernizr 3.1.0The question was posed to me during an interview for a job.My question is based upon Adding HTML features safely with Modernizr topic in section HTML Images & Web Page Files of HTML

Answer»

Right choice is (a) Modernizr 3.5.0

For explanation I would say: Modernizr 3.1.0, Modernizr 3.1.1, Modernizr 3.4.0 and Modernizr 3.5.0 are the updated VERSIONS of modernizr which fixes some BUGS and some updated the FEATURE. Modernizr 3.5.0 can detect CSS Grids. In this latest Modernizr, we use two syntaxes, one is Modernizr.cssgrid, and an old SYNTAX Modernizer.cssgridlegacy. In addition, there is a polyfill available named PEP.

77.

What is Modernizr?(a) CSS style sheet(b) JavaScript Library(c) The source code of a web page(d) PHP fileThe question was asked by my college professor while I was bunking the class.My enquiry is from Adding HTML features safely with Modernizr in section HTML Images & Web Page Files of HTML

Answer»

Right option is (b) JavaScript LIBRARY

To elaborate: SMALL JavaScript Library is Modernizr. It detects the AVAILABILITY of implementations for NEW web technologies. Many browsers do not support the new features that were introduced by HTML5. Modernizr provides a way to detect new features.

78.

Resources do not fit into _______(a) explicit entries(b) master entries(c) fallback entries(d) idle entriesThe question was posed to me at a job interview.The query is from Application Cache and Cache Manifest File topic in portion HTML Images & Web Page Files of HTML

Answer»

Right option is (d) idle ENTRIES

Best explanation: The categories for the resources to fit in are EXPLICIT entries, master entries, network entries, FALLBACK entries. Entry can be both fallback and explicit entry. Any HTML file that CONTAINS manifest attribute is a master entry. Explicit entries are listed explicitly in the cache section.

79.

What is the new format to display vector images?(a) SVG(b) GIF(c) JPG(d) PNGI got this question at a job interview.I would like to ask this question from Optimization of Images topic in portion HTML Images & Web Page Files of HTML

Answer»

Correct option is (a) SVG

To elaborate: SVG stands for Scalable Vector Graphics. It is the new format that is used to display vector images directly, there is no need to CREATE bitmap VERSIONS of the images. But it is not yet that much widespread. A GIF is a graphics interchange format. Both JPG and PNG are FILE format out of which one is lossy COMPRESSED while other is LOSSLESS compressed one.

80.

Which of the following is not the benefit of cache application?(a) browsing offline(b) reduction of server load(c) speed(d) asynchronousThis question was addressed to me in examination.Origin of the question is Application Cache and Cache Manifest File in division HTML Images & Web Page Files of HTML

Answer»

Right choice is (d) asynchronous

To explain I would say: Application cache can be helpful in so many ways LIKE we can browse offline, as the cached resources are at local level hence they load at faster speed, it also REDUCES the load of the server. Asynchronous is one of the problems with the use of application cache due to this the resources which are not REQUIRED like JavaScript or images will also be DOWNLOADED.

81.

What is the size of PHP Module extension mysql.so?(a) 35 KB(b) 42 KB(c) 15 KB(d) 107 KBI have been asked this question during an interview.The above asked question is from Web Performance Optimization topic in division HTML Images & Web Page Files of HTML

Answer»

Correct choice is (b) 42 KB

Explanation: There are more than 80 extensions of the PHP SOURCE code. Mysql.so TAKES the SIZE 42 KB, apc.so takes 655 KB, ffmpeg.so takes 35 KB, imap.so takes 86 KB, sasl.so takes 15 KB, tidy.so takes 42 KB, mysqli.so takes 107 KB, gd.so takes 94 KB.

82.

What is the required argument to openDatabase?(a) version number(b) database name(c) size of a database(d) text descriptionThe question was asked in my homework.Query is from Web Databases in portion HTML Images & Web Page Files of HTML

Answer»

Right option is (a) version number

To explain I would say: The required argument to OPENDATABASE is version number. So it is MANDATORY that you should KNOW the version number before we try to OPEN the database. If we do not pass this argument then an exception is thrown.

83.

Number of rows is returned by the attribute __________(a) insertIID(b) rows(c) rowsAffected(d) lengthI have been asked this question during an online interview.The above asked question is from Web Databases in portion HTML Images & Web Page Files of HTML

Answer»

The correct OPTION is (c) rowsAffected

The best I can explain: rowsAffected attribute returns the NUMBER of ROWS that were changed by SQL. If there is no change by the SQL STATEMENT then this attribute will RETURN zero. If we use “SELECT” statement, this attribute will always return zero.

84.

Which of the error is raised when the quantity of data is too much?(a) TOO_LARGE_ERR(b) UNKNOWN_ERR(c) TIMEOUT_ERR(d) QUOTA_ERRThe question was posed to me in an online interview.This is a very interesting question from Web Databases in section HTML Images & Web Page Files of HTML

Answer»

Right choice is (a) TOO_LARGE_ERR

The EXPLANATION: When the quantity of the data returned from the database is very large then TOO_LARGE_ERR is invoked. To minimize the data we can use SQL “LIMIT” i.e. modifier to reduce the size of the RESULTANT SET.

85.

Which feature is not used when SQL features are not being supported?(a) BEGIN(b) END(c) COMMIT(d) ROLLBACKThe question was posed to me during an internship interview.My question is based upon Web Databases in chapter HTML Images & Web Page Files of HTML

Answer»

Correct ANSWER is (b) END

Easy explanation: When SQL feature is not supported then we use COMMIT, BEGIN, ROLLBACK SQL features and are marked as bogus. USER agent uses the STATEMENTS that contain these three words in CASE of failure of the SUPPORT of SQL features.

86.

Which function is used to return a handle to the database?(a) prepareDatabase()(b) showDocCount()(c) executeSql()(d) openDatabase()The question was asked by my school teacher while I was bunking the class.My enquiry is from Web Databases topic in chapter HTML Images & Web Page Files of HTML

Answer»

The correct answer is (a) prepareDatabase()

To explain I would SAY: prepareDatabase() function is used to return a HANDLE to database. It is NECESSARY to first create the database. showDocCount() shows the REAL work after creating the database. Syntax of calling a JavaScript function is: function prepareDatabase(ready, error).

87.

What is the URL encoding of VT?(a) %0B(b) %09(c) %06(d) %02This question was posed to me by my school teacher while I was bunking the class.My enquiry is from URL Encoding in section HTML Images & Web Page Files of HTML

Answer»

The correct CHOICE is (a) %0B

For explanation: The URL Encode for VT (vertical tab) character is %0B, %09 is for horizontal tab character, %06 is the URL Encode for ACK (acknowledge), %02 is URL Encode for STX (start of TEXT) character. %00 is the URL Encode for NUL (null character).

88.

Which of the following can be helpful in creating your own feature detect?(a) Modernizr.addTest(b) Modenizer.on(c) Modernizr._domPrefixes(d) Modernizr.atRuleI had been asked this question during an interview.This interesting question is from Adding HTML features safely with Modernizr topic in section HTML Images & Web Page Files of HTML

Answer»

The correct choice is (a) Modernizr.addTest

To EXPLAIN: If you want to create your own feature detects you can simply use Modernizr.addTest, a string is passed generally in lowercase without any PUNCTUATION LIKE Modernizr.addTest(feature, test). It returns the Boolean value. Modernizr._domPrefixes works same as _prefixes. Modernizr.atRule is one of modernizr API(Application Programming INTERFACE) having syntax like – Modernizr.atRule(prop).

89.

Which line is mandatory in cache manifest file?(a) CACHE MANIFEST(b) CSS stylesheet(c) index.html(d) image addressI got this question during an online exam.Asked question is from Application Cache and Cache Manifest File topic in portion HTML Images & Web Page Files of HTML

Answer»

The correct choice is (a) CACHE MANIFEST

The best explanation: For offline access, there is a text file NAMED cache manifest. It lists the resources of the browser. For ENABLING application cache for any app we must include manifest attribute inside an html tag of the DOCUMENT like this manifest should be included on every page that we want CACHED.

90.

Which command controls the maximum number of tables that the cache can hold?(a) table_open_cache(b) table_definition_cache(c) open_files_limit(d) read_buffer_sizeI have been asked this question in a national level competition.The question is from Web Performance Optimization in portion HTML Images & Web Page Files of HTML

Answer»

Right answer is (a) table_open_cache

Easy EXPLANATION: The option for table cache is table_open_cache. It CONTROLS the maximum NUMBER of tables that the cache can hold, we set the VARIABLE equal to the total number of table, table_definition_cache is the lightweight PARTNER to table cache.

91.

Which of the following is not MySQL Forks?(a) MariaDB(b) OurDelta(c) Drizzle(d) SphinxThis question was posed to me by my school principal while I was bunking the class.Query is from Web Performance Optimization topic in chapter HTML Images & Web Page Files of HTML

Answer»

Correct answer is (d) SPHINX

Easiest explanation: FORKS are the drop-in replacement of MySQL. Some of the forks are MariaDB, Drizzle, Percona SERVER, OURDELTA. MariaDB provides compatible GENERAL public license(GPL). Drizzle is better to fork than MariaDB, it is largely compatible with MySQL. OurDelta provides a combination of MySQL and MariaDB. Sphinx is a full text search engine of SQL.

92.

What is the work of TTFB?(a) measures the responsiveness of web server(b) increases the load speed of web page(c) compresses the image(d) remove unnecessary charactersThis question was posed to me in an interview for internship.This question is from Web Performance Optimization in division HTML Images & Web Page Files of HTML

Answer»

The CORRECT option is (a) measures the responsiveness of WEB server

Explanation: TTFB stands for time to the first byte and measures the responsiveness of server. Its calculation is done as: process request time+ HTTP request time+ HTTP RESPONSE time. This speed up the website by downloading various smaller images through sockets.

93.

Which of the following is not DOM property?(a) element.appendChild(node)(b) document.createElement()(c) element.innerHTML(d) document.getElementById()I had been asked this question in a job interview.This interesting question is from Using Image Sprites & Standardizing Client-Side Templating in division HTML Images & Web Page Files of HTML

Answer» CORRECT option is (d) document.getElementById()

The BEST EXPLANATION: For generating DOM we use CERTAIN DOM properties or methods. Some of the DOM methods are element.appendChild(NODE), document.createElement(), element.innerHTML, document.removeElement().
94.

Which of the following does not generate a sprite sheet?(a) SpriteRight(b) Sprite Cow(c) CSS Sprites(d) GlueI got this question in an interview.My query is from Using Image Sprites & Standardizing Client-Side Templating topic in portion HTML Images & Web Page Files of HTML

Answer»

Correct ANSWER is (b) Sprite Cow

The explanation is: Sprite Cow does not generate sprites, instead it HELPS to get the dimensions of images that are within sprite sheet,SpriteRight is used for generating sprite sheets., here the CSS is created on the fly. CSS Sprites is ALSO one of the sprite sheet GENERATORS. Glue is a command line tool that generates sprite sheets.

95.

Which attribute is used for getting an individual row?(a) results.rows.item(i)(b) insertId(c) rowAffected(d) lengthThe question was asked in exam.My question is from Web Databases topic in section HTML Images & Web Page Files of HTML

Answer»

Right answer is (a) results.ROWS.item(i)

Best explanation: For getting individual row results.rows.item(i) is used, i denotes the INDEX of the row. It will RETURN the object representation of the row. insertId RETURNS row id but in case of multiple rows, it returns the id of the last row.

96.

What is the URL Encode for the character ‘M’?(a) %47(b) %4A(c) %4D(d) %50I got this question in an international level competition.Asked question is from URL Encoding in chapter HTML Images & Web Page Files of HTML

Answer»

Right ANSWER is (C) %4D

Easy explanation: The URL Encode for CHARACTER ‘M’ is %4D, %47 is URL Encode for ‘G’, %4A is URL Encode for ‘J’, %50 is URL Encode for the character ‘P’. The URL Encode for A to Z characters start from 41 to 5A followed by a ‘%’ sign serially.

97.

What is the JavaScript check for the HTML5 video feature?(a) Modernizr.video(b) Modernizr.video[format].(c) Modernizr.rgba(d) Modernizr.rgbaThe question was asked during an online exam.Question is taken from Adding HTML features safely with Modernizr topic in chapter HTML Images & Web Page Files of HTML

Answer» CORRECT option is (a) Modernizr.VIDEO

To ELABORATE: HTML5 feature video is detected byModernizr.video. Modernizr.video[format] detects HTML5 video format feature. Modernizr.RGBA detects rgba() feature of HTML5, hsla() is detected by Modernizr.hsla
98.

Images are usually printed at a resolution of ___________(a) 200 dpi(b) 100 dpi(c) 50 dpi(d) 300 dpiI had been asked this question by my college director while I was bunking the class.My query is from Optimization of Images in portion HTML Images & Web Page Files of HTML

Answer»

Right choice is (d) 300 dpi

The EXPLANATION is: Images in print materials like in BOOKS or in magazines are made up of tiny circles. These tiny circles are called DOTS. The images are generally printed at a RESOLUTION of 300 dpi, dpi STANDS for dots per inch.

99.

Up to what resolution image should be saved by using in the web?(a) 23 ppi(b) 34 ppi(c) 72 ppi(d) 100 ppiThis question was posed to me at a job interview.The query is from Optimization of Images topic in section HTML Images & Web Page Files of HTML

Answer»

Right choice is (c) 72 ppi

Easiest explanation: Images that are created for the web should be saved at a resolution of 72 ppi. Here ppi denotes pixels per inch. Resolution’s SIZE is directly proportional to the size of the file. The resolution of the image is measured as a number of squares that fit WITHIN 1 inch x 1 inch SQUARE area.

100.

What is URL encode of ‘&’?(a) %24(b) %2c(c) %3d(d) %26I have been asked this question by my college professor while I was bunking the class.This key question is from URL Encoding topic in section HTML Images & Web Page Files of HTML

Answer»

Correct option is (d) %26

For explanation I would say: URL encoding of ‘&’ is %26, its DECIMAL VALUE is 38 and the Hex value is 26. %24 is URL encode of ‘$’ whose Decimal value is 36 and Hex value is 24, %2c is URL encode of ‘,’ its Decimal value is 44 and Hex value is 2c, %3d is URL encode of ‘=’, its Decimal value is 61 and Hex value is 3d.