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.

1.

Which of the following locking method does not supported by APC?(a) File locks(b) Spin locks(c) Dead locks(d) IPC semaphoresI have been asked this question in final exam.My question is from Web Performance Optimization topic in chapter HTML Images & Web Page Files of HTML

Answer»

The correct answer is (c) Dead locks

To elaborate: APC supports four locking methods named File locks, Spin locks, Pthread mutex, IPC semaphores. File locks are the most STABLE, Spin LOCK gives the best performance, Pthread mutex is only available in Linux version 2.6, IPC semaphores are faster than file locks.

2.

What is hotlink protection?(a) stopping other sites from displaying images(b) stopping other sites from displaying videos(c) stopping access of source code(d) compresses an imageI have been asked this question in semester exam.My question is based upon Web Performance Optimization in chapter HTML Images & Web Page Files of HTML

Answer»

The correct answer is (a) STOPPING other sites from displaying images

The best I can explain: Hotlink protection is a kind of tool. Hotlink protection is related to RESTRICTING HTTP, it stops other sites from displaying images of your WEBPAGE. We can CREATE a list of hostnames that can access the resources of our website.

3.

Which error is invoked when SQLTransactionCallback does not execute?(a) INVALID_ACCESS_ERR(b) UNKNOWN_ERR(c) TIMEOUT_ERR(d) INVALID_STATE_ERRThis question was addressed to me in an interview for job.The query is from Web Databases in division HTML Images & Web Page Files of HTML

Answer»

The correct CHOICE is (d) INVALID_STATE_ERR

Explanation: When SQLTRANSACTIONCALLBACK, SQLStatementErrorCallback, SQLStatementCallback does not execute then INVALID_STATE_ERR ERROR is RAISED. This error is raised from INSIDE a SQLTransactionErrorCallback.

4.

transaction() does not take the argument _______(a) callback(b) success callback(c) error callback(d) database nameThis question was addressed to me by my school teacher while I was bunking the class.Enquiry is from Web Databases in division HTML Images & Web Page Files of HTML

Answer»

The correct answer is (d) database name

Best EXPLANATION: transction() and readTransaction() are the TWO METHODS that take THREE arguments i.e. transaction callback as the first argument, error callback as the second argument, success callback as the third argument.

5.

Which method is used to verifythe version number?(a) changeVersion()(b) readTransaction()(c) transaction()(d) executeSql()The question was asked by my college director while I was bunking the class.My doubt stems from Web Databases in chapter HTML Images & Web Page Files of HTML

Answer» RIGHT option is (a) changeVersion()

Best explanation: changeVersion() method automatically verify version number and it also changes it like doing a schema update. When this method is invoked it immediately RETURNS and then run transaction steps asynchronously by TAKING transaction callback as the third argument, error callback as the FOURTH argument and success callback as the fifth argument.
6.

For caption of the image we use ____________(a) (b) (c) (d) I had been asked this question in an international level competition.This intriguing question originated from Optimization of Images topic in chapter HTML Images & Web Page Files of HTML

Answer»

The correct ANSWER is (a)



Explanation: An alt attributes gives a TEXT description of the image if the image is not AVAILABLE at a time. An address of image is defined by SRC attribute. HTML5 has introduced new element named
. It contains image and its caption and hence both are associated with each other. We can also have more than one image INSIDE
element and they share the same caption. Syntax is

7.

Which of the following is used to determine browser support?(a) Modernizr.addTest(b) Modernizr.hasEvent(c) Modernizr.atRule(d) Modernizr.prefixedThis question was posed to me in a national level competition.This question is from Adding HTML features safely with Modernizr in chapter HTML Images & Web Page Files of HTML

Answer»

Right answer is (b) Modernizr.hasEvent

To explain: If you want to create your own FEATURE DETECTS you can simply use Modernizr.addTest. Modernizr.hasEvent helps in determining browser support. It does detection of div element by default. Syntax is hasEvent(‘video’). But if we want to give an object to DETECT SOMETHING other than div, we can give second argument as hasEvent(‘blur’, WINDOW). It also returns a Boolean value. Modernizr.atRule is one of modernizr API(Application Programming Interface) having syntax like – Modernizr.atRule(prop). Modernizr.prefixed Modernizr API takes string CSS value in Document Object Model.

8.

Which of the following detects support for basic Worker API?(a) web workers(b) shared workers(c) data workers(d) blob workersI got this question during an interview.This intriguing question comes from Adding HTML features safely with Modernizr in section HTML Images & Web Page Files of HTML

Answer»

Correct answer is (a) web workers

Easy EXPLANATION: The support of basic web worker is DETECTED by web workers. Web workers mean running a script in the background for web content. Shared workers detect support of shared workers, data workers detect support for CREATING Web Workers from Data URI’s. BLOB workers detect support for creating web workers from Blob URI.

9.

404 HTTP error is generated due to ____________(a) missing JavaScript file(b) any missing file(c) slow loading of the web page(d) on removing the newline characterThis question was posed to me in class test.My question comes from Web Performance Optimization topic in portion HTML Images & Web Page Files of HTML

Answer»

The correct OPTION is (b) any missing FILE

Explanation: HTTP 404 is an error which indicates that the client was able to communicate with the server but the server could not find the REQUEST. Due to missing of any file 404 error is generated, this is a taxing error for the PAGE.

10.

Modernizr.csstransformss detects _________(a) CSS 2D transforms(b) CSS 3D transforms(c) Input Types(d) Input AttributesThe question was asked in an international level competition.Asked question is from Adding HTML features safely with Modernizr in division HTML Images & Web Page Files of HTML

Answer»

The correct option is (a) CSS 2D TRANSFORMS

For explanation I WOULD say: Modernizr.csstransforms detects CSS 2D transforms introduced by HTML5. CSS 3D transform is DETECTED by Modernizr.csstransforms3d. INPUT types are detected by Modernizr.inputtypes[type], Input Attributes is detected by Modernizr.input[attribute].

11.

The features that can’t be detected by checking idle are checked by ____________(a) Modernizr.prefixedCSS(b) Modernizr.testAllProps(c) Modernizr.testStyles(d) Modernizr.testPropI have been asked this question 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 answer is (c) Modernizr.testStyles

Explanation: Modernizr.testProp is just like Modernizr.testAllProps but only difference is it doesn’t check for vendor. The features that can’t be check by IDL is checked by Modernizr.testStyles, it takes CSS RULE and embed it ONTO current page with DOM elements. SYNTAX is

12.

Which of the following is not possible compression value?(a) identity(b) deflate(c) compress(d) DNSThis question was addressed to me at a job interview.I'd like to ask this question from Web Performance Optimization in portion HTML Images & Web Page Files of HTML

Answer»

Correct choice is (d) DNS

Explanation: A identity indicates no compression. Compress is a method that uses UNIX compress, it is based on LZW ALGORITHM. Gzip is the most famous compression FORMAT, deflate is a kind of gzip WITHOUT checksum header, it is little faster but LESS efficient. DNS stands for Domain Name SYSTEM and is a naming system in computers.

13.

Which of the following is not the layer of the OSI Model?(a) Transport Layer(b) Network Layer(c) Session Layer(d) Atomic LayerI got this question in an online quiz.I need to ask this question from Web Performance Optimization in chapter HTML Images & Web Page Files of HTML

Answer»

Right ANSWER is (d) Atomic Layer

Easiest explanation: OSI model stands for Open Systems Interconnection model. It is commonly used for representing various parts of network TRAFFIC. There are SEVEN layers in the OSI model, Physical Layer, Data LINK layer, Network Layer, Transport Layer, Session Layer, Presentation Layer and Application Layer.

14.

The .content property is __________(a) read-only(b) write-only(c) read-write(d) hiddenI had been asked this question in exam.The query is from Using Image Sprites & Standardizing Client-Side Templating topic in division HTML Images & Web Page Files of HTML

Answer»

The CORRECT choice is (a) read-only

The BEST I can EXPLAIN: The .content property is a read-only property i.e a DocumentFragment which CONTAINS GUTS of template.

15.

Which of the following is not Sprite Sheet generator?(a) Lemonade(b) Firewoks CS6(c) SpriteMe(d) PixelomatorThis question was addressed to me by my school teacher while I was bunking the class.This key question is from Using Image Sprites & Standardizing Client-Side Templating in chapter HTML Images & Web Page Files of HTML

Answer»

Right choice is (d) Pixelomator

For EXPLANATION: There are many SPRITE SHEET generators such as Lemonade, Compass, SpriteMe, Fireworks CS6. Lemonade, Compass, and SpriteMe are AVAILABLE free of COST but Fireworks CS6 is not free of cost. Pixelomator is image editing software.

16.

Which function is used in JavaScript for URL encoding?(a) encodeURI()(b) Server.URLEncode()(c) rawurlencode()(d) UREncodingI got this question during a job interview.Asked question is from URL Encoding topic in division HTML Images & Web Page Files of HTML

Answer» CORRECT choice is (a) encodeURI()

Easy explanation: There are some built in functions in JavaScript, ASP and PHP for URL encoding. JavaScript USE encodeURI() function. ASP USES Server.URLEncode() function, rawurlencode() function is used by PHP. Space is encoded as %20 by JavaScript function.
17.

Which entry executes and load scripts from the server?(a) Explicit entry(b) Network entry(c) Fallback entry(d) Master entryThis question was posed to me in an internship interview.My question comes from Application Cache and Cache Manifest File topic in chapter HTML Images & Web Page Files of HTML

Answer»

The correct choice is (b) Network ENTRY

Explanation: There are four types of resources in an APPLICATION cache which are 1) Master Entries 2) EXPLICIT Entries 3) Network Entries 4) Fallback Entries. Resources are EXPLICITLY listed in the application’s cache manifest FILE by the explicit entry. Fallback entry provides fallback entries in the application’s manifest file. Master entries are the resources added to the cache. Network entry executes and load scripts and code from the server, not from the cache. Syntax is

CACHE MANIFEST

NETWORK:

/api

Resources are explicitly listed in a cache in explicit entries. When attempt to load fails fallback entry is used.

18.

Which version of web worker is introduced in Internet Explorer?(a) Version 3.5(b) Version 10.6(c) Version 10.0(d) Version 4.0This question was posed to me in quiz.My doubt stems from Web Performance Optimization in portion HTML Images & Web Page Files of HTML

Answer»

Right CHOICE is (c) Version 10.0

Explanation: Web workers are BACKGROUND threads running separate scripts. All the latest BROWSERS support web workers. Version 3.5 of web workers is introduced in FIREFOX, version 10.0 in Internet Explorer, version 10.6 in Opera, version 4.0 in Chrome, version 4.0 in Safari.

19.

Gzip is not fully supported by ___________(a) Netscape 4.60+(b) Firefox(c) Netscape 6+(d) IE 4+The question was posed to me in semester exam.My doubt is from Web Performance Optimization topic in division HTML Images & Web Page Files of HTML

Answer»

The correct ANSWER is (a) Netscape 4.60+

For explanation: GZIP or deflate is partially supported by Netscape 4.60+. Netscape 6+, IE 4+, Opera 5+, Safari, Chrome, Lynx 2.6+ and Firefox FULLY support Gzip compression, IE 4.5 and 5 does not support Gzip compression, IE 5.5 and 6.0, IE 6.0 SPI, IE 6,7,8 partially support Gzip compression.

20.

openDatabase() method does not take the argument in __________(a) database name(b) display name(c) database version(d) server nameI got this question in class test.This key question is from Web Databases topic in section HTML Images & Web Page Files of HTML

Answer»

The correct choice is (d) server name

Easiest explanation: OPENDATABASE() and openDatabaseSync() METHODS takes the name of the database, version of the database, display name, ESTIMATED size in bytes of the DATA that is to be stored in the database. openDtabase() method WORKS on WorkerUtils and Window, openDatabaseSync() method works on WorkerUtils.

21.

What is the maximum cache size for Chrome?(a) unlimited(b) 300 MB(c) 400 MB(d) 1024 MBThe question was posed to me by my school teacher while I was bunking the class.This intriguing question originated from Web Performance Optimization in portion HTML Images & Web Page Files of HTML

Answer»

The correct CHOICE is (b) 300 MB

The explanation: Maximum Cache size for Chrome is 300 MB, for Safari it is UNLIMITED, For Opera 10+ it is 400 MB, for Firefox 17 the maximum cache size is 1024 MB, for Internet EXPLORER 6,7,8 it is 50 MB and for Internet Explorer maximum cache size is 250 MB.

22.

For best speed position of JavaScript code should be at ______________(a) top of the code(b) bottom of the code(c) middle of the code(d) anywhere in the codeThe question was posed to me during an internship interview.This interesting question is from Web Performance Optimization in chapter HTML Images & Web Page Files of HTML

Answer»

Right choice is (b) BOTTOM of the code

The best I can explain: For BETTER loading time of the page it is always recommended to put JAVASCRIPT code at the bottom of the MAIN code of the page before

tag. CSS code should be at the beginning of the code.

23.

HTTP request is between _______________(a) client and host(b) client and server(c) server and host(d) user and serverThis question was addressed to me during a job interview.My enquiry is from Web Performance Optimization in portion HTML Images & Web Page Files of HTML

Answer»

The CORRECT choice is (a) client and host

The BEST explanation: HTTP stands for Hypertext Transfer Protocol. For fetching, data from SERVER browser uses HTTP request, and in between client and host. The more HTTP request slower the LOADING of a page will be.

24.

Which is the best platform for working with the individual image?(a) SpriteMe(b) Fireworks CS6(c) Lemonade(d) CompassThis question was addressed to me in examination.Origin of the question is Using Image Sprites & Standardizing Client-Side Templating topic in portion HTML Images & Web Page Files of HTML

Answer»

Right answer is (a) SpriteMe

To explain: SpriteMe is brilliant sprite SHEET VIEWER and generator. It is available at a free of cost. We can DESIGN our website USING individual images. It is very simple to use. By using SpriteMe we can ALSO view current sprite sheets that are already present on a website.

25.

Which is not a reserved character?(a) _(b) ((c) )(d) *This question was addressed to me in an online quiz.My doubt stems from URL Encoding in section HTML Images & Web Page Files of HTML

Answer»

Right CHOICE is (a) _

The best EXPLANATION: There are two TYPE of characters RESERVED and unreserved characters. Characters that are allowed in URL but not have any reserved PURPOSE are unreserved characters. These are the characters from A-Z, a-z, 0-9, ‘~’, ‘_’, ‘.’, ‘-‘.

26.

Which of the following is not a reserved character?(a) &(b) >(c) +(d) @The question was posed to me in final exam.This intriguing question originated from URL Encoding topic in chapter HTML Images & Web Page Files of HTML

Answer»

Correct OPTION is (B) >

The best I can EXPLAIN: Reserved CHARACTERS are ‘@’, ‘=’, ‘?’, ‘:’, ‘;’, ‘/’, ‘,’, ‘+’, ‘$’, ‘&’. Unsafe characters are space, ‘”’, ‘>’, ‘<’, ‘#’, ‘%’, ‘{‘, ‘}’, ‘~’, ‘^’, ‘[‘, ‘|’, ‘\’, ‘`’, ‘]’. There is a URL Encode for all of these characters. Apart from URL Encode there is Decimal and Hex VALUE also for the characters.

27.

Which of the following detects support for the method of the form?(a) input formtarget(b) input formmethod(c) input formenctype(d) input formactionThis question was posed to me in an interview.I'm obligated to ask this question of Adding HTML features safely with Modernizr in division HTML Images & Web Page Files of HTML

Answer» RIGHT OPTION is (B) INPUT formmethod

Easy explanation: input formmethod detects support for formmethod attribute, input formtarget detects for formtarget attribute on forms, input formenctyp detects for the support of formenctype attribute, it overrides form enctype attribute, input formactin detects for the support of formaction attribute.
28.

How many MPMs can be loaded at a time?(a) 3(b) 1(c) 4(d) 0The question was posed to me during an interview.My question is taken from Web Performance Optimization in portion HTML Images & Web Page Files of HTML

Answer»

The correct choice is (b) 1

Best explanation: Multi-Process Modules i.e. MPMs is introduced by APACHE 2, it CONTROLS how Apache handles the requests. We can load only ONE MPM at a time. But in the case of Linux, we can USE two MPMs. There are two kind of MPM, worker and prefork.

29.

For sequential scans of tables we use ____________(a) read_buffer_size(b) join_buffer_size(c) read_rnd_buffer_size(d) sort_buffer_sizeThis question was addressed to me during an interview for a job.Enquiry is from Web Performance Optimization in portion HTML Images & Web Page Files of HTML

Answer»

Correct option is (a) read_buffer_size

For explanation I would say: For PERFORMING SEQUENTIAL SCANS of tables we USED read_buffer_size, when reading sorted rows we use read_rnd_buffer_size, join_buffer_size are allocated per-session thus for multiple join buffers MAY be created. For performing sort operation we use sort_buffer_size.

30.

Sprites are_____________(a) 1-D images(b) 2-D images(c) 3-D images(d) not the imageI have been asked this question in an interview.Origin of the question is Using Image Sprites & Standardizing Client-Side Templating in portion HTML Images & Web Page Files of HTML

Answer»

Right ANSWER is (b) 2-D IMAGES

For explanation I would say: 2-D images are sprites. Sprite is a big image which is made up of combining small images into one larger image. It is DEFINED by X and Y COORDINATES. CSS background-POSITION property is used to define the exact position that is to be displayed.

31.

The sign is used for the placeholder _____________(a) &(b) *(c) ^(d) ?I have been asked this question in an interview.I want to ask this question from Web Databases topic in section HTML Images & Web Page Files of HTML

Answer»

Right OPTION is (d) ?

The explanation is: ‘?’ is used for the placeholder. Binding of the ? placeholder is done at a literal level. It is DYNAMICALLY INSERTED into the statement. ‘?’ can be used in place of literals in SQL statements. If this CHARACTER is not supported then the error code 5 is invoked.

32.

Which of the following is not control character?(a) BS(b) NUL(c) ampersand(d) HTThe question was asked during an interview.Enquiry is from URL Encoding in section HTML Images & Web Page Files of HTML

Answer» RIGHT choice is (C) ampersand

Explanation: ASCII control CHARACTERS are defined from %00-%1F, these characters are to DESIGN control hardware devices. These characters are not used inside URL. NUL, ENQ, ETX, BEL, BS, HT, LF, EOT, CR, DLE, DC3 are some of the control characters. BS is for backspace, NUL is for null character, HT is for the horizontal tab character.
33.

For testing prefixed CSS properties we use _____________(a) Modernizr.prefixed(b) Modernizr.prefixedCSS(c) Modernizr._prefixes(d) Modernizr.prefixedCSS valueThe question was asked in an interview for job.This interesting question is from Adding HTML features safely with Modernizr in chapter HTML Images & Web Page Files of HTML

Answer» RIGHT choice is (d) Modernizr.prefixedCSS value

Explanation: For CHECKIN prefixed CSS properties we USE Modernizr.prefixedCSS value. Syntax is
34.

Which is not the section of manifest?(a) network(b) cache(c) fallback(d) cache statusThis question was addressed to me in an internship interview.I'd like to ask this question from Application Cache and Cache Manifest File in section HTML Images & Web Page Files of HTML

Answer»

Correct choice is (d) cache status

The explanation is: If the files are not in cache they COME from a list of the files in the network. Cache is the default SECTION. The files those are LISTED under this header are explicitly cached after downloading for the first TIME. If the RESOURCE is inaccessible then this section will be in use. There is no any rule to list these section, can be listed in any order.

35.

Which of the following is not a kind of MySQL backup?(a) File backups(b) CSV backups(c) SQL backups(d) Table backupsThis question was posed to me in examination.This is a very interesting question from Web Performance Optimization topic in section HTML Images & Web Page Files of HTML

Answer» CORRECT option is (d) Table backups

To EXPLAIN: There are various backups in MySQL. File backups, SQL backups, backing up from a slave, CSV backups, INCREMENTAL backups are some kind of 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.
36.

For best speed position of CSS code should be at __________(a) at the bottom of the code(b) at the middle of the code(c) at the top of the code(d) anywhere in the codeI got this question during an interview for a job.My question comes from Web Performance Optimization topic in chapter HTML Images & Web Page Files of HTML

Answer»

The correct option is (c) at the top of the CODE

To explain I would say: CSS STYLING and code should be placed at the top of the code for BEST loading result of the webpage. JavaScript code should be placed at the BOTTOM of the page for best performance and rapid loading speed of the website.

37.

Which of the following is not a template library?(a) Mustache(b) Underscore JS library(c) Live.js(d) HandlebarsThe question was asked during an online exam.Query is from Using Image Sprites & Standardizing Client-Side Templating topic in division HTML Images & Web Page Files of HTML

Answer»

The correct CHOICE is (c) Live.js

To explain: There are templating libraries like Handlebars, MUSTACHE, Underscore JS library. Handlebars are like regular HTML which is embedded with handlebars expressions, Mustache is used with JAVASCRIPT, Underscore JS library is ONE of the JavaScript libraries which PROVIDES various useful functional programming.

38.

does not include the attribute ___________(a) id(b) hidden(c) lang(d) srcThis question was addressed to me in a national level competition.The query is from Using Image Sprites & Standardizing Client-Side Templating topic in section HTML Images & Web Page Files of HTML

Answer» RIGHT option is (d) src

The best I can explain:
39.

Which of the following is not the software for editing images?(a) Adobe Fireworks(b) PaintShop Pro(c) Paint.net(d) SplashupThe question was asked in homework.This interesting question is from Optimization of Images in division HTML Images & Web Page Files of HTML

Answer»

Right OPTION is (d) Splashup

Explanation: Web PROFESSIONALS use VARIOUS tools for image OPTIMIZATION. Adobe Photoshop, Pixelmator, PaintShop Pro, Paint.net, Adobe Fireworks are some of them. There are online EDITORS also like photoshop.com, splashup.com, pixler.com, ipiccy.com, photoshop.com.

40.

Which of the following is internal list of prefixes?(a) Modernizr._prefixes(b) Modernizr.prefixedCSS value(c) Modernizr.prefixedCSS(d) Modernizr.prefixedThis question was posed to me in final exam.My question is taken from Adding HTML features safely with Modernizr in portion HTML Images & Web Page Files of HTML

Answer»

The correct option is (a) Modernizr._prefixes

Best explanation: Modernizr._prefixes is internal list of prefixes. It is SET against THINGS LIKE prefixedCSS and prefixed. It is an array of kebab-case VENDOR.

41.

Which process is used for the creation of the end result?(a) render()(b) compile()(c) eval(x)(d) encodeURI()This question was posed to me during an online interview.My doubt is from Using Image Sprites & Standardizing Client-Side Templating topic in portion HTML Images & Web Page Files of HTML

Answer» RIGHT ANSWER is (a) render()

Explanation: render() process creates the end result by putting actual DATA in the template. It means that the placeholders are REPLACED with the previous actual data, COMPILE() is used for translating and compiling a template into a JavaScript function.
42.

insertId attribute returns ____________(a) column ID(b) row ID(c) user’s ID(d) database IDI have been asked this question in quiz.Origin of the question is Web Databases topic in division HTML Images & Web Page Files of HTML

Answer» RIGHT answer is (b) row ID

Easy EXPLANATION: insertId attribute returns the row ID of the row of the INSERTED SQLResultSet object’s SQL statement that is inserted into the DATABASE. If multiple rows are inserted then the ID of the LAST row will be returned. If there is no row then INVALID_ACCESS_ERR exception will be raised.
43.

Which object is created for read-only transaction?(a) Foo object(b) SQLTransactionSync(c) DatabaseSync object(d) SQLTransactionI had been asked this question during an online exam.My question is from Web Databases topic in division HTML Images & Web Page Files of HTML

Answer»

The correct answer is (B) SQLTransactionSync

To elaborate: For read-only transaction, we create the object SQLTransactionSync. If the first argument is NULL then we throw SQLEXCEPTION which is ERROR code 0. SQLTransactionSync object is FRESH initially but when it is marked as stale it is committed or ROLLED back.

44.

What is the URL Encode for tab character?(a) %09(b) %08(c) %0d(d) %0aThe question was posed to me in final exam.My doubt is from URL Encoding topic in division HTML Images & Web Page Files of HTML

Answer» CORRECT OPTION is (a) %09

Best explanation: For tab character URL encode is %09, its Decimal value is 9 and Hex value is 09, %08 is URL encode for backspace, its Decimal value is 8 and Hex value is 08, %0d is URL Encode for carriage return, Decimal value is 13 and Hex value is 0d, %0a is URL encode for linefeed, Decimal value is 10 and Hex value is 0a.
45.

Which of the following check support for non-alpha, lossy webp?(a) Webp(b) Webp Lossless(c) Webp Animation(d) Webp AlphaI had been asked this question in an online quiz.The query is from Adding HTML features safely with Modernizr in chapter HTML Images & Web Page Files of HTML

Answer»

The correct ANSWER is (b) WEBP Lossless

The BEST I can explain: Webp Lossless detects for lossless webp, non-alpha webp support. Webp TESTS for all forms of webp support like alpha, lossy, animated, lossless etc. Webp Animation detects for the support of animation in webp, Webp Alpha detects the support of TRANSPARENT webp.

46.

JPEG format is useful when ___________(a) there are so many colors in the picture(b) there are not so many colors in the picture(c) we want to show more brightness(d) when we want to show hazinessThe question was asked during an online exam.I need to ask this question from Optimization of Images in division HTML Images & Web Page Files of HTML

Answer»

Right CHOICE is (a) there are so many colors in the picture

The explanation: When we have different colors in a picture we use JPEG format. But when images have few colors or have large AREAS of the same color we use PNG or GIF format. Photographs that CONTAIN sky, snow, grass etc. are not suitable for PNG or GIF format.

47.

Templates can’t be placed inside ______________(a) (b) (c) (d) This question was addressed to me by my college professor while I was bunking the class.My enquiry is from Using Image Sprites & Standardizing Client-Side Templating topic in division HTML Images & Web Page Files of HTML

Answer»

Correct option is (d)



To ELABORATE: TEMPLATES can be placed INSIDE , , . Template can contain any type of elements. Template can be used as a child of elements.
48.

For image compression which tool is helpful?(a) WordPress cache enable a plugin(b) Optimus wordpress plugin(c) Glup-uglify(d) Speed test toolI have been asked this question by my college professor while I was bunking the class.I'm obligated to ask this question of Web Performance Optimization topic in section HTML Images & Web Page Files of HTML

Answer»

The correct option is (b) Optimus wordpress plugin

To explain: Optimus WordPress plugin is used for LOSSLESS as well as LOSSY image compression. It automatically reduces the size of the file. Reduction in size is possible up to 70%. There are three versions of Optimus i.e. Optimus HQ, Optimus, Optimus HQ PRO. Speed test TOOLS are used to measure/note down your PAGES speed performance. WordPress cache enable a plugin used to enable caching.

49.

What is not the work of database optimization?(a) cleaning out old tables(b) creating indexes(c) optimize datatype(d) delete databaseI have been asked this question in class test.My question is taken from Web Performance Optimization in chapter HTML Images & Web Page Files of HTML

Answer»

Right option is (d) delete database

The EXPLANATION is: We store VARIOUS information in the database. A database is a collection of tables that contain information. Database DELAY TAKES a long waiting TIME, so there are various techniques for database optimization. Database optimization basically optimizes data types, tables, data size.

50.

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 addressed to me during a job interview.This intriguing question comes from Adding HTML features safely with Modernizr topic in portion HTML Images & Web Page Files of HTML

Answer»

Right choice is (d) Sizes

To explain: Sizes test for the sizes attribute for images. IMAGE crossOrigin is used to check the support of crossOrigin attribute on images, it allows CROSS domain images on a CANVAS, JPEG 2000 and JPEG XR are respectively for the check of JPEG 2000 and JPEG XR FORMATS on the images.