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.

For handling CSS prefixes Chrome uses ___________(a) –ms-(b) –webkit-(c) –moz-(d) –chr-The question was posed to me during an online interview.My doubt stems from Search Engine Optimization & Old Browser vs New Elements in portion Flash Videos, HTML5 Layout & Practical Information of HTML

Answer»

Right choice is (b) –webkit-

Explanation: HANDLING CSS prefixes is a mechanism ORIGINALLY used to ALLOW browser vendors to implement their own VERSION of CSS. Mozilla uses –moz-, Microsoft uses –ms-, Chrome, Safari, Opera uses –webkit-.

2.

Which element groups related content together?(a) (b) (c) (d) This question was addressed to me in an international level competition.The question is from HTML5 Layout Elements topic in chapter Flash Videos, HTML5 Layout & Practical Information of HTML

Answer»

The CORRECT choice is (C)



To elaborate: Grouping of related content together is done by
element. Each section will have its own heading. This element should not be used as wrapper for entire page. If we wish of containing a element for entire page, this will be best done by
element. Footer typically CONTAINS information about author of the section, links to related documents or copyright data.

3.

Which property is used to align flex items?(a) align-items(b) justify-content(c) align-content(d) flex-growI got this question in an internship interview.Query is from Styling HTML5 Layout with CSS topic in chapter Flash Videos, HTML5 Layout & Practical Information of HTML

Answer»

The correct choice is (b) justify-content

To elaborate: justify-content PROPERTY is used to ALIGN FLEX items, the align-items property is used to align flex items VERTICALLY, the align-content property is used to align flex lines, flex-grow specifies how much a flex item will grow relative to rest of flex items.

4.

Which syntax will cause IE to recognize section element?(a) getElementById(“section”)(b) createElement.document(“section”)(c) document.createElement(“section”)(d) document.createElement(“”)This question was addressed to me by my college director while I was bunking the class.Origin of the question is Search Engine Optimization & Old Browser vs New Elements in portion Flash Videos, HTML5 Layout & Practical Information of HTML

Answer» RIGHT ANSWER is (c) document.createElement(“section”)

The BEST explanation: document.createElement(“section”) will cause Internet EXPLORER to recognize section element all of a sudden. There is no any reason behind this working but it works. We do not even NEED to use node that is returned by that function.
5.

Which one of the following is used to identify an anchor link?(a) #(b) #!(c) #?(d) &The question was asked by my college professor while I was bunking the class.This intriguing question comes from Search Engine Optimization & Old Browser vs New Elements topic in portion Flash Videos, HTML5 Layout & Practical Information of HTML

Answer»

Correct choice is (a) #

Explanation: LONE Hash (#) is used to identify anchor link i.e. jump LINKS. These are the links that let one jump to the piece of content on a page. Anything after this lone hash portion of URL is never sent to the server and automatically SCROLL to the first element and to the ID which it MATCHES.

6.

Which browser was the first that allows CSS rules to be associated with new HTML5 layout elements?(a) Internet Explorer 9(b) Internet Explorer 7(c) Chrome(d) FirefoxI got this question in exam.My question comes from Search Engine Optimization & Old Browser vs New Elements topic in division Flash Videos, HTML5 Layout & Practical Information of HTML

Answer»

Correct answer is (a) Internet Explorer 9

To explain: Internet Explorer was the first version that ALLOWED CSS rules to be associated with new HTML5 layout elements. OLDER browsers that do not KNOW new HTML5 elements will by default TREAT them as inline elements.

7.

Which of the following specifies initial length of flex item?(a) flex-flow(b) flex-grow(c) flex-shrink(d) flex-basisI have been asked this question during an online interview.The doubt is from Styling HTML5 Layout with CSS topic in section Flash Videos, HTML5 Layout & Practical Information of HTML

Answer»

The correct option is (d) flex-basis

For explanation: flex-basis property specifies the initial length of the flex item, flex-SHRINK property specifies how much a flex item will shrink RELATIVE to rest of flex items, the value must be a NUMBER and a DEFAULT value is 1. The flexible-grow property is a relative comparison between the items. It decides how much item will grow relative to the rest of flexible items inside the same CONTAINER.

8.

Which of the following specifies what happens if content overflow an element’s box?(a) overflow(b) overflow-x(c) overflow-y(d) floatI have been asked this question in semester exam.My question is from Styling HTML5 Layout with CSS in division Flash Videos, HTML5 Layout & Practical Information of HTML

Answer»

Correct choice is (a) OVERFLOW

The best explanation: overflow property specifies what happens if CONTENT OVERFLOWS an ELEMENT’s box, overflow-x specifies what to do with left/right EDGES of the content if it overflows the element’s content area, overflow-y specifies what to do with top/bottom edges of the content if it overflows the element’s content area.

9.

Which tag is used for stopping duplicate content?(a) canonical tag(b) image alt tag(c) nofollow(d) metaI had been asked this question at a job interview.My doubt is from Search Engine Optimization & Old Browser vs New Elements in portion Flash Videos, HTML5 Layout & Practical Information of HTML

Answer» CORRECT choice is (a) canonical tag

Explanation: When we have a lot of web PAGES having similar content, this is a good way to STOP duplicate content. This is also IMPORTANT to SYNDICATE the content.
10.

Which of the following can’t be the value of a clear property?(a) left(b) inherit(c) right(d) centerI have been asked this question in quiz.The origin of the question is Styling HTML5 Layout with CSS in portion Flash Videos, HTML5 Layout & Practical Information of HTML

Answer»

Right choice is (d) center

For EXPLANATION I would say: clear property SPECIFIES what elements can float beside cleared element and on which side. It can hold the values NONE, left, right, both and inherit. The inherit property inherits the clear VALUE of its parent when setting to both no floating elements allowed on EITHER the left and right side.

11.

Which of the following works as a sidebar?(a) (b) (c) (d) I have been asked this question in a job interview.The query is from Styling HTML5 Layout with CSS topic in division Flash Videos, HTML5 Layout & Practical Information of HTML

Answer»

Right CHOICE is (a) <ASIDE>

For explanation:

12.

codecs is used with _______(a) type(b) src(c) auto(d) loopI got this question in class test.Question is from Adding Flash Videos in division Flash Videos, HTML5 Layout & Practical Information of HTML

Answer» CORRECT option is (a) type

Explanation: In MULTIPLE video SOURCES we use CODEC which is used to encode the video. It is supplied within type attribute.
13.

For keeping blog comment spam down we use ___________(a) nofollow(b) meta(c) title(d) headingThe question was posed to me by my college director while I was bunking the class.I'm obligated to ask this question of Search Engine Optimization & Old Browser vs New Elements in chapter Flash Videos, HTML5 Layout & Practical Information of HTML

Answer»

The CORRECT choice is (a) nofollow

The explanation: nofollow ATTRIBUTE is used for comments in blogs to keep blog comment spam down. This tag was created to keep spammy users away. This attribute tells Google and other SEARCH engines to not follow the link to the NEXT page. Heading contains tag starting from h1 to h6. Title of the document is defined by title which is helpful for search engines. Meta is something RELATED to data i.e like information of data.

14.

Which of the following overrides container’s align-items property?(a) order(b) align-self(c) align-items(d) flexThis question was addressed to me during an online interview.Enquiry is from Styling HTML5 Layout with CSS topic in chapter Flash Videos, HTML5 Layout & Practical Information of HTML

Answer»

Right answer is (b) align-self

To EXPLAIN: align-self PROPERTY is used on flex items, it overrides container’s align-items property, flex is shorthand property for flex-grow, flex-shrink, and flex-basis PROPERTIES, the order SPECIFIES the order of flexible item relative to REST of the flex items inside the same container.

15.

Which element represents self-contained composition in document?(a) (b) (c) (d) The question was posed to me in class test.My question is taken from HTML5 Layout Elements topic in chapter Flash Videos, HTML5 Layout & Practical Information of HTML

Answer»

The correct ANSWER is (d)



Easy explanation: A self-contained composition in document, application, page or site that is intended to be independently distributable is represented by
element. Some of the examples are a magazine or newspaper article or a forum POST, or a blog ENTRY.

16.

The search that can’t be targeted by SEO is _______(a) video search(b) image search(c) academic search(d) audio searchThis question was posed to me during an interview.My question is based upon Search Engine Optimization & Old Browser vs New Elements topic in division Flash Videos, HTML5 Layout & Practical Information of HTML

Answer»

Right option is (d) audio search

To elaborate: SEO stands for Search Engine Optimization. SEO can target different kinds of search including video search, image search, academic search, industry specific vertical search, news search. It differs from local search engine optimization. Optimization of a website includes editing its CONTENT, doing HTML, and ASSOCIATED CODING to INCREASE its relevance to specific KEYWORDS.

17.

‘Image Alt’ tags is not used for ____________(a) diagrams(b) screenshots(c) decorative images(d) infographicsI had been asked this question during an online interview.My doubt is from Search Engine Optimization & Old Browser vs New Elements topic in chapter Flash Videos, HTML5 Layout & Practical Information of HTML

Answer»

The correct answer is (c) DECORATIVE IMAGES

To explain: ‘Image ALT’ tags should not be used for decorative images. It should be used for diagrams, Infographics, Photos of team members, Website logo, Images of MERCHANDISE and many other places where it’s an appropriate USAGE.

18.

Which of the following does not use a crawler to find pages for the search result?(a) Bing(b) Backrub(c) Yahoo(d) GoogleThis question was posed to me at a job interview.My doubt is from Search Engine Optimization & Old Browser vs New Elements topic in division Flash Videos, HTML5 Layout & Practical Information of HTML

Answer»

Correct answer is (b) Backrub

Explanation: Leading SEARCH engines LIKE Bing, Google and YAHOO USE crawlers for finding pages for the algorithmic search results. Pages linked from other search ENGINE indexed pages do not need to be submitted because they are found by default.

19.

Which element is used for grouping together related elements?(a) (b) (c) (d) The question was posed to me during an interview.My doubt stems from HTML5 Layout Elements topic in division Flash Videos, HTML5 Layout & Practical Information of HTML

Answer»

The CORRECT option is (a)



The best EXPLANATION: For GROUPING TOGETHER related ELEMENTS we use
element. Anything that lies outside of
,
20.

Header element does not contain ___________(a) logo(b) (c) heading elements(d) authorship informationThis question was posed to me in an interview.My question is from HTML5 Layout Elements topic in portion Flash Videos, HTML5 Layout & Practical Information of HTML

Answer»

Correct option is (B)



To explain I WOULD say:
element contains one or more than one heading ELEMENTS, authorship information, logo or icon.
tag can’t be placed inside
or
or inside another
element.
21.

Which of the following can’t be the value of float property?(a) left(b) right(c) center(d) inheritI got this question in an online quiz.This question is from Styling HTML5 Layout with CSS topic in chapter Flash Videos, HTML5 Layout & Practical Information of HTML

Answer»

Correct choice is (c) center

Explanation: FLOAT PROPERTY can have the property LEFT, right, none, INHERIT. When set to inherit value the element inherits the float value of its parent, when set to none property the element does not float, it is the DEFAULT value.

22.

Which one of the following contains information about the author?(a) (b) (c) (d) This question was posed to me during a job interview.My doubt stems from HTML5 Layout Elements topic in division Flash Videos, HTML5 Layout & Practical Information of HTML

Answer»

Right answer is (a)



Explanation: Footer for its NEAREST sectioning CONTENT or sectioning root element is represented by
element. It TYPICALLY contains information about AUTHOR of the section, links to related documents or copyright data. An introductory content lies in
. is container for all head elements. A document’s body is defined by tag.

23.

Dirty Markup will not validate ___________(a) CSS(b) JavaScript(c) PHP(d) HTMLI got this question in a national level competition.My query is from Search Engine Optimization & Old Browser vs New Elements topic in division Flash Videos, HTML5 Layout & Practical Information of HTML

Answer»

Right choice is (c) PHP

The best I can explain: Linter application will point out the ERRORS and can FLAG up the warning about bad practices in CSS. There is so many online linter application. Dirty MARKUP is the best one used for JAVASCRIPT, CSS, and HTML. CSS Lint is for CSS only. Dirty Markup also provides to fix your markup using a clean BUTTON.

24.

Which one of the following will add prefix automatically?(a) Gulp(b) PostCSS(c) Selectivizr(d) MooToolsI had been asked this question in a national level competition.My question comes from Search Engine Optimization & Old Browser vs New Elements topic in section Flash Videos, HTML5 Layout & Practical Information of HTML

Answer»

The correct option is (b) PostCSS

Explanation: We can add prefixes automatically during the TIME of development. This can be done using tools LIKE PostCSS and Autoprefixer. Autoprefixer has an online version that allows to enter non-prefixed CSS on left, and gives prefix-added version on the right. Gulp is an OPEN source kit for js i.e. JavaScript. A javascript utility that emulates CSS3 pseudoclasses and attribute SELECTORS are called selectivizr. Moo Tool is a javascript FRAMEWORK which is object oriented.

25.

Which is the best format to use in Firefox?(a) .MP4(b) .FLV(c) .OGG(d) .SWFI have been asked this question in my homework.Enquiry is from Adding Flash Videos topic in division Flash Videos, HTML5 Layout & Practical Information of HTML

Answer»

The CORRECT choice is (c) .OGG

To explain: .OGG format is the best for the use in FIREFOX. We can use VLC to convert the video into this format. .FLV and .SWF is not supported by all the browsers. .MP4 is supported by Safari and CHROME at its best.

26.

Which element contains major navigational block?(a) (b) (c) (d) This question was posed to me during an internship interview.This interesting question is from HTML5 Layout Elements in section Flash Videos, HTML5 Layout & Practical Information of HTML

Answer»

Correct option is (a)

27.

Full screen support will not work in ____________(a) Safari(b) Firefox(c) Internet Explorer(d) OperaThis question was addressed to me in class test.This interesting question is from Adding Flash Videos in portion Flash Videos, HTML5 Layout & Practical Information of HTML

Answer»

Correct option is (a) Safari

The explanation: The full-SCREEN is not supported by CHROME and Safari. In FIREFOX 3.6 we can view the full screen by the right-click. REST of the browsers do support the full-screen PROPERTY of the video.

28.

Which element is used for or styling HTML5 layout?(a) PHP(b) JavaScript(c) CSS(d) jQueryThis question was addressed to me in an interview for internship.Question is from Search Engine Optimization & Old Browser vs New Elements in chapter Flash Videos, HTML5 Layout & Practical Information of HTML

Answer»

The CORRECT ANSWER is (c) CSS

Easiest explanation: For styling HTML5, CSS i.e Cascading Style Sheet is used. It is style sheet language and DESIGNED to describe PRESENTATION of its content including layouts, colors and fonts. CSS can control the LAYOUT of multiple web pages.

29.

For grouping together one or more to element what element is used?(a) (b) (c) (d) This question was addressed to me in homework.Question is from HTML5 Layout Elements in division Flash Videos, HTML5 Layout & Practical Information of HTML

Answer»

Right ANSWER is (B)



Easiest explanation: For GROUPING together set of one or more

to

element we use
element. We can group together the primary heading and the subheading. E.g.

Winter is coming!

Its too cold

. Grouping of related CONTENT together is done by
element. For grouping together related ELEMENTS we use
element. An introductory content lies in
.

30.

What can’t be the value of a quality attribute?(a) autolow(b) low(c) high(d) automediumThis question was addressed to me in semester exam.My query is from Adding Flash Videos topic in section Flash Videos, HTML5 Layout & Practical Information of HTML

Answer» CORRECT answer is (d) automedium

Explanation: The quality parameter can have values including “low”, “MEDIUM”, “best”, “HIGH”, “autohigh”, “autolow”. When it is set to “low” videopalyer will FAVOR playback speed of video clip and anti aliasing will not be used.
31.

Which of the following was not previous layout mode?(a) Block(b) Flexbox layout(c) Inline(d) PositionedThis question was addressed to me during a job interview.Question is from Styling HTML5 Layout with CSS topic in portion Flash Videos, HTML5 Layout & Practical Information of HTML

Answer»

Right option is (B) Flexbox layout

Best explanation: Before Flexbox layout MODULE there were four layout modes. BLOCK, Inline, Table, Positioned. Block is for sections in a webpage, inline is for text, table is for two dimensional table DATA, positioned is for explicit POSITION of an element.

32.

Which of the following element is used as a container for content?(a) (b) (c) (d) This question was addressed to me in quiz.My question is based upon HTML5 Layout Elements in division Flash Videos, HTML5 Layout & Practical Information of HTML

Answer»

Correct option is (a)

33.

Which property defines in which direction the container wants to stack flex items?(a) flex-flow(b) flex-wrap(c) flex-direction(d) align-contentThe question was posed to me in exam.My question comes from Styling HTML5 Layout with CSS in chapter Flash Videos, HTML5 Layout & Practical Information of HTML

Answer»

The correct choice is (c) flex-direction

Explanation: flex-direction PROPERTY defines in which direction the CONTAINER wants to stack the flex items, the flex-flow property is shorthand property for setting both flex-direction and flex-wrap properties. For deciding whether the flexible items should wrap or not, flex-wrap property is USED.

34.

Which one of the following is not the online video format available?(a) Ogg Theora(b) VHS(c) WebM(d) H264I had been asked this question by my college professor while I was bunking the class.I would like to ask this question from Adding Flash Videos topic in portion Flash Videos, HTML5 Layout & Practical Information of HTML

Answer»

Right option is (b) VHS

Explanation: ONLINE there are MOVIES available in many formats like Ogg THEORA, WebM, QuickTime, AVI, Flash VIDEO, MPEG, WINDOWS Media etc. There are also some of the offline formats like DVD, VHS, BlueRay etc.

35.

WebM format is not supported by _______(a) Opera(b) Android(c) Safari(d) FirefoxThis question was addressed to me in an interview for internship.My question is taken from Adding Flash Videos topic in division Flash Videos, HTML5 Layout & Practical Information of HTML

Answer»

Right answer is (c) SAFARI

The explanation is: Not all the BROWSERS support the same video formats. WebM is supported by CHROME, Opera, Android and Firefox. Internet Explorer and Safari support H264 format very easily. Some Flash PLAYER also supports H264 format and WebM.

36.

For exporting movie into SWF format which element is used?(a) (b) (c) (d) I had been asked this question in semester exam.This is a very interesting question from Adding Flash Videos topic in chapter Flash Videos, HTML5 Layout & Practical Information of HTML

Answer»

Right answer is (a)

Explanation: We use and elements for exporting MOVIE into SWF format.A code is CREATED by flash that can be used to embed Flash movie into the PAGE. Traditionally these elements were used but now JavaScript has TAKEN their PLACE.

37.

Which plugin is used to view Flash?(a) Firebug(b) Flash Player(c) Widget(d) ZoteroI got this question in examination.This intriguing question originated from Adding Flash Videos in chapter Flash Videos, HTML5 Layout & Practical Information of HTML

Answer» RIGHT option is (b) Flash Player

To EXPLAIN I would SAY: For viewing Flash the browser needs to use a plugin. A plugin is an extra piece of SOFTWARE that can be run in a browser. Here the plugin which is used is Flash Player. It is very common that 98% of the BROWSERS have already Flash plugin installed inside.
38.

Which attribute allows to show an image while downloading a video?(a) controls(b) poster(c) preload(d) noneThis question was posed to me at a job interview.My question is from Adding Flash Videos in portion Flash Videos, HTML5 Layout & Practical Information of HTML

Answer»

Right ANSWER is (b) poster

Easiest explanation: The poster attribute allows US to specify an image to show at the time of DOWNLOADING of video or until the user tells the video to play. Controls attributes indicate that browser should supply its own controls for playback the video.

39.

Which one of the following does not support flash?(a) iPhone(b) android(c) windows(d) linuxI have been asked this question in an online quiz.My question is based upon Adding Flash Videos in division Flash Videos, HTML5 Layout & Practical Information of HTML

Answer»

The correct answer is (a) IPHONE

For explanation I WOULD say: Apple LAUNCHED the iPhone in 2007 and launched an iPad in 2010, they DECIDED not to support Flash. Flash CONTENT has been criticized because Flash content is not always accessible. In 2008

40.

Which one of the following is not used inside the tag in Flash videos?(a) replace(b) location(c) version(d) idThe question was asked at a job interview.The query is from Adding Flash Videos topic in portion Flash Videos, HTML5 Layout & Practical Information of HTML

Answer»

Correct answer is (d) id

The EXPLANATION: There are five attributes that can be USED inside the

41.

which extension flash file is to be saved?(a) .fla(b) .swf(c) .jpg(d) .gifThe question was posed to me by my college professor while I was bunking the class.My question is based upon Adding Flash Videos topic in chapter Flash Videos, HTML5 Layout & Practical Information of HTML

Answer»

Right choice is (a) .fla

To explain: The FLASH file created in flash authoring environment, it is saved with .fla extension. If we want to USE this file on a WEB page it has to be saved in a DIFFERENT format known as SWF. Its extension is .swf

42.

Which one of the following site will provide FLV player?(a) www.longtailvideo.com(b) www.fotolia.com(c) www.sxc.com(d) www.pixlr.comI had been asked this question in a job interview.My query is from Adding Flash Videos in division Flash Videos, HTML5 Layout & Practical Information of HTML

Answer»

The correct option is (a) www.longtailvideo.com

Best explanation: We NEED a player written in Flash for playing FLV files. The main purpose of it is to HOLD FLV movie and ADD controls LIKE pause/play. There are two sites that OFFER FLV players www.longtailvideo.com and www.osflv.com

43.

For playing Flash Video you need to convert video into the ___________ format.(a) FLV(b) BlueRay(c) WebM(d) MPEGThe question was asked in an internship interview.My doubt is from Adding Flash Videos topic in division Flash Videos, HTML5 Layout & Practical Information of HTML

Answer»

Right answer is (a) FLV

The EXPLANATION: For PLAYING Flash video one must convert the video into FLV format. Flash 6, the Flash AUTHORING ENVIRONMENT comes with Flash Video Encoder to convert the VIDEOS into FLV formats. It also supports H264 format.

44.

Which one of the following is used for adding Flash in the web page?(a) CSS(b) jQuery(c) PHP(d) JavaScriptI have been asked this question in semester exam.The question is from Adding Flash Videos in section Flash Videos, HTML5 Layout & Practical Information of HTML

Answer»

The correct CHOICE is (d) JavaScript

To elaborate: ONE of the most popular for adding Flash to the WEB page is USING JavaScript. There is no need to understand this language in depth because there are MANY scripts already available that are available to do this.