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.

151.

Which element works as a sidebar?(a) header(b) footer(c) nav(d) asideThis question was posed to me in an interview for job.Query is from HTML5 Semantics topic in chapter Advance HTML of HTML

Answer»

The CORRECT option is (d) aside

Best EXPLANATION:

152.

Which of the following makes the button appear pressed?(a) .btn-link(b) .disabled(c) .active(d) .btn-blockThe question was asked in examination.My doubt stems from Responsive Overview topic in section Advance HTML of HTML

Answer»

Right choice is (c) .active

To EXPLAIN I would say: .active makes the button appear pressed, .DISABLED makes button disabled, .btn-LINK makes the button look LIKE a link, .btn-block makes a block-level button, spans the full width of the parent ELEMENT.

153.

Which of the following shown collapsible content by default?(a) .dropdown-header(b) .collapse(c) .collapse.in(d) .panel-collapseThis question was addressed to me during an interview.My question is based upon Responsive Overview topic in chapter Advance HTML of HTML

Answer»

The correct option is (c) .collapse.in

The best explanation: .collapse.in shows collapsible content by default, .PANEL-collapse shows collapsible panel, TOGGLE between hiding and showing panel, .collapse INDICATES collapsible content which can be hidden or SHOWN on demand. .dropdown-header CLASS add header inside dropdown menu.

154.

Which of the following spans full width of screen?(a) .container(b) .control-label(c) .container-fluid(d) .collapse-inI got this question in semester exam.My question is taken from Responsive Overview topic in portion Advance HTML of HTML

Answer»

Correct OPTION is (C) .container-fluid

The best explanation: .containerfluid is a container that spans the FULL width of the SCREEN, .container is a fixed width container with widths determined by screen sites, .control-labels allows a label to be used for form validation.

155.

Which of the following will display red alert box?(a) .alert(b) .alert-danger(c) .alert-info(d) .alert-linkI got this question in unit test.I'm obligated to ask this question of Responsive Overview in portion Advance HTML of HTML

Answer»

The correct option is (b) .alert-danger

The best I can explain: .alert-danger displays red alert box. It indicates a dangerous or POTENTIALLY NEGATIVE action, .alert simply creates an alert MESSAGE, .alert-info displays a light-blue alert box which indicates some INFORMATION, .alert-link used on links inside alerts to add matching colored links.

156.

Which of the following specifies compiles CSS output?(a) relative_assets(b) output_style(c) line_comments(d) sass_dirThe question was asked in a national level competition.Asked question is from Responsive Overview topic in chapter Advance HTML of HTML

Answer»

The correct option is (b) output_style

Explanation: The output PATH in COMPILED CSS is given by relative_assets. The output_style property specifies compiled CSS output. The accepted VALUES for this property are :nested, :expanded, :compressed or :compact. line_comments specifies WHETHER compass should generate line number where style sheets rule are DEFINED. sass_dir gives folder name for the sass or SCSS style sheet to be stored.

157.

How many columns are used for grid system by bootstrap?(a) 14(b) 11(c) 16(d) 12This question was addressed to me during a job interview.This key question is from Responsive Overview topic in portion Advance HTML of HTML

Answer»

Right ANSWER is (d) 12

Explanation: BOOTSTRAP uses 12 columns of the grid SYSTEM. EVERY column is defined with classes RANGING from span1 to span12. After adding several columns, the sum of our span classes should be equal to 12. Columns should be wrapped within

element.
158.

Bootstrap was first introduced in ______(a) google(b) twitter(c) instagram(d) snapchatThis question was posed to me by my college director while I was bunking the class.My question comes from Responsive Overview in portion Advance HTML of HTML

Answer» CORRECT choice is (b) twitter

Explanation: Bootstrap was built by MARK OTTO and for internal use in Twitter. It was LAUNCHED as a free software for the public. Bootstrap is packed with styled user interface components such as button navigation, forms, custom jQuery plugins like popover, model box and carousal.
159.

Which element facilitate generation of key material?(a) (b) (c) (d) The question was asked during an interview.I'm obligated to ask this question of HTML5 Semantics in section Advance HTML of HTML

Answer»

Correct choice is (c)

To explain I would say: is an obsolete HTML element. It puts a text field in a page for querying the document. element exists to facilitate generation of key material and submission of PUBLIC key as part of HTML form. It is designed to use with web-based certificate management systems. It includes all the global attributes like autofocus, challenge etc. The rendering of text between START tag and end tag is DONE by

element. A scrolling text can be DISPLAYED by element.

160.

Which element sets default font face, size and color for other elements?(a) (b) (c) (d) I have been asked this question by my school principal while I was bunking the class.Enquiry is from HTML5 Semantics in portion Advance HTML of HTML

Answer»

Right choice is (b)

Best explanation: embeds java applet in web document. is obsolete HTML element. It SETS DEFAULT font face, size, and color for other elements which are descended from its parent element. Instead of using this element we can use font, font-size, font-family and color to change font CONFIGURATION for an element. element which has been REMOVED from HTML5 indicates sequence of characters. element INCREASE the font size.

161.

Which of the following is known as child of media elements?(a) (b) (c) (d) I had been asked this question in my homework.My question is based upon HTML5 Semantics in chapter Advance HTML of HTML

Answer»

The correct choice is (d)

The best I can explain: element defines REGION on image.element is used to insert image in DOCUMENT. element is used as a child of media elements

162.

Which element is used to enclose inline text?(a) (b) (c) (d) This question was posed to me in a job interview.I want to ask this question from HTML5 Semantics topic in chapter Advance HTML of HTML

Answer»

Correct option is (a)

The explanation: Inline are used to define the meaning or style of text. is HTML Sample Element. It is used to enclose inline text which represents sample output from a computer program. Its content is typically rendered using browser’s default MONO spaced FONT. makes text SIZE small in APPEARANCE. element specifies things which are no longer right. is a Ruby Text CONTAINER.

163.

The property that is not supported by Polyline but by Polygon is __________(a) strokeWeight(b) fillOpacity(c) path(d) editableI got this question in semester exam.I'd like to ask this question from HTML Google Maps topic in section Advance HTML of HTML

Answer»

Correct option is (b) FILLOPACITY

Best EXPLANATION: The properties supported by POLYGON are strokeColor, strokeWeight, editable, fillOpacity, fillColor, path, strokeCapacity. The hexadecimal COLOR for the area within an ENCLOSED region is specified by fillColor, the opacity to fill color is specified by fillOpacity.

164.

Polyline will not support the propertyof _________(a) Path(b) StrokeOpacity(c) Editable(d) FillcolorThis question was addressed to me in semester exam.Enquiry is from HTML Google Maps in portion Advance HTML of HTML

Answer»

The correct answer is (d) Fillcolor

To EXPLAIN I WOULD say: Polyline supports VARIOUS properties like strokeColor, strokeWeight, editable, STROKEOPACITY, path. The SEVERAL longitude or latitude coordinates for a line is specified by path. An opacity of the line is specified by strokeOpacity.

165.

For single locations on a map, we use the overlay for _______(a) Marker(b) Polygon(c) Polyline(d) CircleThe question was asked by my school teacher while I was bunking the class.My query is from HTML Google Maps in chapter Advance HTML of HTML

Answer»

The correct choice is (a) Marker

The explanation is: Marker specifies the single locations on the map. It can also display CUSTOM ICON images. A series of straight lines on a map can be SPECIFIED by POLYLINE. A series of a straight line with the “closed” shape is DEFINED by Polygon.

166.

Which attribute is used to input to prevent user input?(a) readonly(b) .sr-only(c) disabled(d) .has-feedbackThe question was asked during an interview.This is a very interesting question from Responsive Overview in division Advance HTML of HTML

Answer»

The correct option is (a) readonly

Explanation: A button is disabled by .disabled CLASS. We can ADD readonly ATTRIBUTE to an input to prevent user input. .sr-only class is applied on non-visible labels, disabled attribute is added to disabled an input FIELD.

167.

What indicates a closable alert box?(a) .alert-danger(b) .alert-dismissible(c) .alert-link(d) .alert-successThis question was posed to me in a national level competition.The doubt is from Responsive Overview in section Advance HTML of HTML

Answer»

The correct answer is (b) .ALERT-dismissible

Easy EXPLANATION: .alert-dismissible indicates a closable alert box, together with .close class, this class is used to close the alert, adds EXTRA padding, .alert-danger creates the red alert, indicates dangerous or POTENTIALLY NEGATIVE action. .alert-link is used on links inside alerts to give matching coloured links. .alert-success displays a green alert.

168.

Which of the following groups button together on a single line?(a) .btn-group-lg(b) .btn-group-justified(c) .btn-default(d) .btn-groupI had been asked this question in an international level competition.I'm obligated to ask this question of Responsive Overview in division Advance HTML of HTML

Answer»

The correct option is (d) .btn-group

Easiest explanation: .btn-group groups buttons together on a SINGLE line, .btn-group-lg is for large button group, it makes all button group larger-increased font-size and PADDING, .button-group-justified makes a group of buttons SPAN the ENTIRE WIDTH of the screen.

169.

Which of the following is used to align pager buttons to the left side of the page?(a) .previous(b) .prev(c) .pre-scrollable(d) .popoverI had been asked this question in an interview.This is a very interesting question from Responsive Overview in section Advance HTML of HTML

Answer»

Correct choice is (a) .PREVIOUS

To elaborate: .previous class is used to align pager buttons to the left side of the page, .prev is used in carousels to INDICATE a “previous” link, .pre-scrollable MAKES a

 ELEMENT scrollable, .popover shows popup-box that appears when a user clicks on an element.
170.

Which element is used as a container for a directory of files?(a) (b) (c) (d) This question was addressed to me in final exam.This key question is from HTML5 Semantics in chapter Advance HTML of HTML

Answer»

Correct ANSWER is (a)



The explanation: element is used as a container for directory of files or folders, potentially with styles and icons applied by user agent. It is RECOMMENDED not to USE this element you can use
    element for lists including lists of files. Size, color or face for the content is defined by element. Those commands that user can INVOKE are represented by . is an obsolete PART of web components and is inside shadow DOM.
171.

Which is not a color function?(a) lighten()(b) fade()(c) darken()(d) opaque()This question was posed to me in semester exam.The doubt is from Responsive Overview topic in division Advance HTML of HTML

Answer»

Right option is (d) opaque()

The explanation is: LESS provides few FUNCTIONS for adjusting colors. Some of the functions are DARKEN(@color, n%), lighten(@color, n%), FADE(@color, n%). Lighten makes the color lighter than its initial value, fade lowers the color density, darken makes the color darker than its initial value.

172.

Which element represents a scalar value within the given range?(a) (b) (c) (d) I had been asked this question by my college professor while I was bunking the class.My doubt is from HTML5 Semantics in section Advance HTML of HTML

Answer»

Right answer is (b)

EASIEST EXPLANATION:

173.

Which element represents a dialog box?(a) (b) (c) (d) The question was asked in an online interview.The origin of the question is HTML5 Semantics topic in division Advance HTML of HTML

Answer»

The correct answer is (a)



The explanation is: ELEMENT in HTML represents a dialog box or other interactive component LIKE WINDOW or an inspector. This element includes global attributes. The tableindex attribute must not be used on element. represents a command which helps user to pop up through menu. is a group of commands which is used to perform SOMETHING. element provides summary of element.

174.

Which element is used for bringing attention?(a) (b) (c) (d) The question was posed to me in exam.I need to ask this question from HTML5 Semantics topic in section Advance HTML of HTML

Answer»

Right answer is (c)

The best explanation: TITLE of WORK is defined by tag.
is used to give a vertical break in TEXT/paragraph. The element displays its contents styles in a fashion intended to INDICATE that text is a SHORT fragment of computer code. element is known as HTML Bring Attention To element. It is used to draw reader’s attention to the element’s contents, which are not granted special importance otherwise. Formally this was known as Boldface element.

175.

Which of the following is not a semantic element?(a) (b) (c) (d) The question was asked in unit test.I would like to ask this question from HTML5 Semantics topic in portion Advance HTML of HTML

Answer» RIGHT answer is (d)

To EXPLAIN: SEMANTIC element describes its MEANING to both developer and browser. Some of the semantic ELEMENTS are
,
, . Non-semantic elements are and
and they tell nothing about their content.
176.

Which one of the following defines properties for the map?(a) mapOptions(b) zoom(c) center(d) mapTypeIdI have been asked this question at a job interview.The question is from HTML Google Maps topic in division Advance HTML of HTML

Answer»

The correct choice is (a) MAPOPTIONS

For explanation I would SAY: The variable mapOptions defines the properties of the map. Where to center the map is defined by center property, it USES longitude and latitude properties. To SPECIFY the ZOOM level for the map we use zoom property.

177.

Which of the following method will hide and destroy tooltip?(a) .tooltip(“hide”)(b) .tooltip(“toggle”)(c) .tooltip(“destroy”)(d) .tooltip(options)This question was addressed to me in quiz.This is a very interesting question from Responsive Overview in chapter Advance HTML of HTML

Answer»

The correct OPTION is (c) .tooltip(“destroy”)

For explanation: .tooltip(“destroy”) HIDES and DESTROYS the tooltip, .tooltip(“hide”) hides the tooltip, .tooltip(options) ACTIVATES the tooltip with an option. .tooltip(“toggle”) TOGGLES the tooltip.

178.

What is the default value of offset?(a) 20(b) 10(c) 30(d) 50This question was posed to me during an interview.This interesting question is from Responsive Overview topic in section Advance HTML of HTML

Answer»

The correct answer is (b) 10

Easiest explanation: The DEFAULT value of offset is 10, it SPECIFIES NUMBER of pixels to offset from top when calculating the POSITION of scroll.

179.

Which of the following is added to link or header element?(a) .navbar-default(b) .navbar(c) .navbar-btn(d) .navbar-brandThe question was asked in an interview.My query is from Responsive Overview in division Advance HTML of HTML

Answer»

The correct answer is (d) .navbar-brand

Explanation: .navbar CREATES navigation bar. .navbar-brand added to link or header ELEMENT inside navbar to represent a LOGO or header, .navbar-btn VERTICALLY aligns button inside navbar, .nabar-default creates default navigation bar.

180.

What adds slides to carousel?(a) .carousel(b) .carousel-inner(c) .item(d) .carousel-indicatorsThe question was asked in unit test.This question is from Responsive Overview topic in section Advance HTML of HTML

Answer»

Correct option is (b) .carousel-inner

To ELABORATE: .carousel creates a slideshow. .carousel-inner is a CONTAINER for slide ITEMS. .carousel-inner adds slides to the carousel, .item SPECIFIES the content of each slide, .carousel-indicators adds indicators for the carousel, these are LITTLE dots at bottom of each slide which indicates how many slides are there in the carousel and the slide which the user is currently viewing.

181.

Which of the following specifies header text of popover?(a) title(b) trigger(c) selector(d) placementI got this question in an internship interview.Query is from Responsive Overview in chapter Advance HTML of HTML

Answer» CORRECT choice is (a) title

The best I can explain: title SPECIFIES the header text of POPOVER, its default VALUE is “”, trigger specifies how popover is triggered, PLACEMENT specifies popover position. A popover can be added to specified selector by selector.
182.

Which class indicates the current page?(a) .active(b) .disables(c) .pagination-sm(d) .pagiantion-lgThis question was addressed to me during an interview for a job.This intriguing question comes from Responsive Overview in division Advance HTML of HTML

Answer»

The correct answer is (a) .ACTIVE

EXPLANATION: Explanation: .active indicates the current page, .disabled indicates unclickable link, .pagination-lg is USED with .pagination to provide LARGER pagination, .pagination-sm is used to provide smaller pagination.

183.

Which is a container for slide items?(a) .carousel-control(b) .caousel-indicators(c) .carousel-inner(d) .carousel-captionThe question was posed to me in homework.Enquiry is from Responsive Overview topic in section Advance HTML of HTML

Answer»

The correct option is (C) .carousel-inner

Explanation: .carousel-inner is a CONTAINER for slide items, .carousel-caption creates a caption text for each slide in the carousel, .carousel-control is container for next and PREVIOUS links, .carousel-indicators adds LITTLE dots at the bottom of each slide.

184.

To enable slideshow, what we should not be included?(a) jquery.js(b) button(c) foundation.js(d) foundation.orbit.jsI have been asked this question in an interview.My question is based upon Responsive Overview in division Advance HTML of HTML

Answer»

Correct answer is (b) button

For explanation I would say: To construct HTML for SLIDESHOW SIMPLY wrap the content or the images within UNORDERED list element with data-orbit. For ENABLING slideshow we will need to INCLUDE jquery.js, foundation.js, foundation.orbit.js or zepto.js within HTML.

185.

Which plugin allows the element to become locked or sticky?(a) .active(b) .alert(c) .affix(d) .alert-linkI have been asked this question in an interview for job.My question is taken from Responsive Overview topic in division Advance HTML of HTML

Answer»

Correct OPTION is (c) .AFFIX

The explanation is: .alert SIMPLY creates an alert message. Affix plugin allows an element to become affixed i.e. STICKY or locked to an area on the page. It toggles position:FIXED on and off, .alert-link is used on links inside alerts to add matching colored links.

186.

Which value specifies transition acceleration?(a) timing-function(b) property(c) transition-duration(d) delayI have been asked this question in exam.The query is from Responsive Overview in portion Advance HTML of HTML

Answer»

Correct option is (a) timing-function

Easiest EXPLANATION: The value of TRANSITION-function SPECIFIES transition acceleration. There are five predefined acceleration types that we can use. They are EASE-in, ease, ease-out, ease-in-out and linear. property value specifies name for CSS transition effect. The value of transition-duration specifies a length of the transition effect. The delay in transition effect is give by delay value.

187.

Which value specifies a length of the transition effect?(a) property(b) transition-duration(c) delay(d) timing-functionI got this question during an interview for a job.The query is from Responsive Overview topic in division Advance HTML of HTML

Answer»

Correct answer is (b) transition-duration

To elaborate: Property value specifies name for CSS transition effect. The value of transition-duration specifies a LENGTH of the transition effect. The value is specified in milliseconds (MS) and seconds (s). E.g. 190ms and 0.8s. The delay in transition effect is GIVE by delay value. SPEED curve of transition effect is provided by timing function.

188.

getCurrentPosition does not take the argument?(a) successCallback(b) options(c) errorCallback(d) TimeoutI got this question during an interview for a job.Asked question is from HTML Geolocation in chapter Advance HTML of HTML

Answer»

Right answer is (d) Timeout

Easiest explanation: getCurrentPosition METHOD takes THREE ARGUMENTS successCallbaack, errorCallback, OPTIONS. A successCallback set to GetMap.showMap by MapSwitcher or to GeoMap.showPosition by GeolocationBox.

189.

Which attribute assigns a name to the applet?(a) name(b) vspace(c) src(d) objectThe question was posed to me during an online exam.The origin of the question is HTML5 Semantics & YouTube Videos topic in portion Advance HTML of HTML

Answer»

The CORRECT option is (a) name

To explain: name attribute assigns a name to the APPLET so that it can be identified by the other resources especially for some PARTICULAR scripts. Additional vertical space is specified by vspace attribute in pixels. Additional vertival space above or below applet is GIVEN by vspace attribute. Src attribute provides absolute URL for file or applet. Object attribute is URL REPRESENTATION of applet.

190.

Which button let us move the map to the current position of the device?(a) currentPositionBtn(b) enableHighAccuracy(c) timeout(d) maximumAgeThe question was asked in examination.Origin of the question is HTML Geolocation topic in portion Advance HTML of HTML

Answer»

The correct answer is (a) currentPositionBtn

To explain I WOULD say: The GEOLOCATION HTML includes a currentPositionBtn which is used to move the map to the current position of the device, there are 3 inputs to let the user choose the geolocation options enableHighAccuracy, TIMEOUT, and maximumAge.

191.

Which of the following element is known as ruby fallback parenthesis?(a) (b) (c) (d) This question was addressed to me in class test.This key question is from HTML5 Semantics in section Advance HTML of HTML

Answer»

Right answer is (b)

For EXPLANATION I would say: In ruby, DEFINES explanation of characters. is Ruby FALLBACK Parenthesis element in HTML. It is used to provide fall-back parentheses for browsers that do not SUPPORT display of ruby annotations when using element is used for SHORT quotation.

192.

Which method is used to display a message on the status line?(a) NPN_MemFree(b) NPN_HandleWindow(c) NPN_Status(d) NPN_GetValueI got this question during an online exam.This is a very interesting question from HTML Plugins topic in division Advance HTML of HTML

Answer»

Correct answer is (c) NPN_Status

Best EXPLANATION: NPN_Status is used to DISPLAY a message on the status line. It MAKES the user feel that the plug-in is a part of the browser user interface, plug-in can emulate browser BEHAVIOR by PROVIDING status line message.

193.

Which of the following specifies the main content of the document?(a) (b) (c) (d) This question was addressed to me in exam.My question is from HTML5 Semantics topic in chapter Advance HTML of HTML

Answer»

The correct answer is (B)



Explanation: Human readable date/time is shown by

194.

Which of the following type will support 45 degree perspective view?(a) Terrain(b) Hybrid(c) Roadmap(d) Climate mapThe question was posed to me by my school principal while I was bunking the class.This intriguing question originated from HTML Google Maps topic in section Advance HTML of HTML

Answer»

The CORRECT option is (b) HYBRID

For explanation I would say: Satellite and hybrid type of map support 45 degree perspective imagery view for specified locations. The map will ADD a compass wheel around Pan control, it allows to rotate the image. There is a TOGGLE control to display 45 degree perspective view.

195.

Which one of the following is not google map overlay?(a) Polygon(b) Polyline(c) Eclipse(d) MarkerThis question was posed to me in a national level competition.My query is from HTML Google Maps topic in chapter Advance HTML of HTML

Answer»

Right choice is (c) Eclipse

Easy explanation: The OBJECTS on the map that are bound to longitude/latitude coordinates are overlays. Google Maps has MANY types of overlays. Marker, Polygon, POLYLINE, CIRCLE, Rectangle, Info Windows, Custom overlays ETC.

196.

Which one of the following is not the default control in google maps?(a) Pan(b) Street view(c) MapType(d) Climate mapThe question was asked in an interview for job.I'm obligated to ask this question of HTML Google Maps topic in division Advance HTML of HTML

Answer»

The correct answer is (d) Climate map

The BEST EXPLANATION: Google map has a default control set namely PAN, Zoom, Street view, MapType, Rotate, Overview map, SCALE. A slider or “+/-” buttons for controlling zoom level of the map. For PANNING the map we use pan control.

197.

What is the range of dimension for small devices?(a) 450px to 700px(b) 768px to 991px(c) 992px to 1199px(d) 120px to 500pxI got this question during an online interview.This key question is from Responsive Overview in chapter Advance HTML of HTML

Answer» RIGHT answer is (B) 768px to 991px

Best EXPLANATION: Small devices are defined as a SCREEN width from 768px to 991px. For small devices we use the class .col-sm-*, for medium devices the screen width from 992px to 1199PX.
198.

Which of the following aligns media objects?(a) .media-body(b) .media(c) .media-list(d) .media-objectI have been asked this question in unit test.This key question is from Responsive Overview topic in chapter Advance HTML of HTML

Answer»

Correct ANSWER is (b) .media

The BEST I can explain: .media aligns media objects like images or videos often used for COMMENTS in a blog POST, .media-body specifies the text that should appear NEXT to media object, .media-list creates nested media lists, .media-object indicates a media object.

199.

Which tag is used to let control over the viewport?(a) (b) (c) (d) The question was posed to me during an internship interview.This interesting question is from Responsive Overview topic in portion Advance HTML of HTML

Answer»

Right answer is (a)

To elaborate: HTML5 introduced a method to let web designers take control over the VIEWPORT by using tag. We should include viewport ELEMENT in all the web pages. viewport element gives the BROWSER instructions on how to control page’s dimensions and SCALING.

200.

Which of the following will show popup-box?(a) .well(b) .visible-*(c) .thumbnail(d) .tooltipI have been asked this question during an online interview.My doubt stems from Responsive Overview in section Advance HTML of HTML

Answer»

Right option is (d) .tooltip

Explanation: .tooltip is for the popup-box that appears when a user moves the mouse pointer over an ELEMENT, .thumbnail adds a border around an element often used for images or videos to make it look like a thumbnail. .WELL adds a rounded border around an element with gray background color and some PADDING. .VISIBLE-* is used to SHOW the content by device.