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.

101.

HTMLMinifier is written in ________(a) JavaScript(b) Java(c) C++(d) CThis question was addressed to me in class test.This intriguing question originated from Working with Forms & Minification in chapter HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

Answer» CORRECT choice is (a) JavaScript

Explanation: There are mainly two popular HTML minifier. HTMLMinifier and htmlcompressor first are written in JavaScript. It is to be RUN via a web browser. Second is command-line Java application. HTMLMinifier OFFERS BETTER levels of compression.
102.

Before HTML5 where data had to be stored?(a) cookies(b) browser(c) only in Internet Explorer(d) only in ChromeThis question was posed to me during an internship interview.This interesting question is from Web Storage in chapter HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

Answer»

Right choice is (a) cookies

To elaborate: When HTML5 was not introduced application data had to store in cookies when server REQUESTED for it. Web storage was secure then as WELL as LARGE data could be stored even it does not affect performance. After coming of HTML5 web applications can store data within the browser that the user is using.

103.

The __________ element must reference either an ‘altGlyphDef’ element or a ‘glyph’ element.(a) href(b) src(c) animate(d) altGlyphThis question was addressed to me by my college director while I was bunking the class.I'm obligated to ask this question of Scalable Vector Graphics topic in division HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

Answer»

Right option is (d) altGlyph

To explain: Src is the URL of IMAGE. The href is Hypertext Reference which is used to link pages in html and is also an attribute for anchor TAG. The altGlyph ELEMENT allows sophisticated selection of the glyphs used to render its child character DATA.

104.

Which element does not support autofocus attribute?(a) (b) (c) (d) I got this question in an online quiz.This key question is from Elements and Attributes to Support Web Applications topic in chapter HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

Answer» RIGHT answer is (d)

Easiest explanation: Autofocus is a new attribute as well as very interesting ONE. It can be SPECIFIED on ,
105.

Which of the following is a new input attribute introduce by HTML5?(a) text(b) checkbox controls(c) submit buttons(d) dateI had been asked this question at a job interview.This is a very interesting question from Input Types for Forms in division HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

Answer»

Right option is (d) date

Best explanation: HTML4 has ATTRIBUTES with elements like radio buttons, CHECKBOX controls, submit buttons, text input etc.

 HTML5 has introduced NEW attributes like date, color, month, time, week, datetime-local, email, NUMBER, range, tel, url, search etc.

106.

An API is an application programming interface consisting of methods and properties which allow the author to get or set data or execute commands to the user agent.(a) True(b) FalseI got this question by my college professor while I was bunking the class.I'm obligated to ask this question of Client-Side Graphics with Canvas topic in section HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

Answer»

The CORRECT CHOICE is (a) True

Best explanation: API, an abbreviation of application program interface, is a set of routines, protocols, and tools for building software APPLICATIONS. API allow the author/owner to get or set data or execute commands to the USER agent.

107.

Which attribute of element can be used both with and elements?(a) List(b) Pattern(c) Multiple(d) MaxThe question was asked in an international level competition.Origin of the question is Elements and Attributes to Support Web Applications in section HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

Answer»

Right choice is (a) List

Easy explanation: List is the NEW attribute of element and can be used together with and element only.

108.

Which of the following is not a type of attribute for input tag?(a) day(b) week(c) month(d) timeThe question was asked in an interview.Origin of the question is HTML5 Form Changes topic in chapter HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

Answer»

Correct option is (a) day

Best explanation: Day is not DEFINED in the pre-defined attribute list of input tag. WEEK attribute defines week and year when used as attribute in input tag. MONTH specifies month and year when it is accessed in input tag. The time attribute DISPLAYS current time in html.

109.

Which element has been removed from HTML5 (W3C) specification?(a) (b) (c) (d) The question was posed to me in semester exam.This is a very interesting question from Elements and Attributes to Support Web Applications topic in division HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

Answer»

The correct answer is (c)



The explanation: A section that is TANGENTIALLY related to its surrounding content is DEFINED by

110.

Which attribute does not lie inside and elements?(a) Media(b) Ping(c) Hreflang(d) PreloadThis question was posed to me in an interview.My query is from Elements and Attributes to Support Web Applications topic in chapter HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

Answer» CORRECT option is (d) Preload

Easiest explanation: Preload is the ATTRIBUTE of the
111.

Which browser does not support MP4 H.264 format?(a) Opera(b) Chrome(c) Safari(d) Internet ExplorerThe question was asked in my homework.This key question is from Audio and its MIME Types in portion HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

Answer»

The CORRECT choice is (a) Opera

The EXPLANATION: The MP4 H.264 format is supported by SAFARI, Chrome, Internet Explorer. Opera and Chromium do not support this format. This MP4 H.264 is used for both video and audio. This format is not freely licensed so commonly not that much used on an open WEB platform.

112.

In HTML Audio/Video DOM, __________ sets or returns whether the audio/video should be loaded when the page loads.(a) preload(b) autoplay(c) buffered(d) controllerThe question was asked during an internship interview.I want to ask this question from HTML5 Video in portion HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

Answer»

Correct option is (a) preload

The explanation: Autoplay, preload, buffered, controller etc are the different KINDS of attribute of video/audio element. Using autoplay, video/audio automatically begins to play. The preload property allows the author to provide a hint to the browser about what he/she thinks will lead to the BEST user EXPERIENCE. This attribute MAY be ignored in some instances.

113.

When the _____________ method is passed an animated image as its image argument, the user agent must use the poster frame of the animation, or, if there is no poster frame, the first frame of the animation.(a) measureText()(b) imageData()(c) drawImage()(d) setImage()The question was asked by my college professor while I was bunking the class.This intriguing question originated from Client-Side Graphics with Canvas topic in section HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

Answer» RIGHT option is (C) drawImage()

The explanation: The width of specified text present in an object is given by measureText() METHOD. The drawImage() method draws an IMAGE, CANVAS, or video onto the canvas. ImageData() method provides image data in pixels in canvas.
114.

The ____________ method must fill all the subpaths of the current path, using fillStyle, and using the non-zero winding number rule.(a) fill()(b) stroke()(c) clip()(d) get()This question was posed to me during an online exam.The query is from Client-Side Graphics with Canvas topic in portion HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

Answer»

Right ANSWER is (a) fill()

To explain I would say: The path one defines is drawn by stroke() method. Any region/shape or size in canvas is clipped by clip(). The fill() method fills the CURRENT drawing (path). The DEFAULT COLOR is BLACK. There is no method like get().

115.

In HTML Audio/Video DOM __________ sets or returns whether the audio/video should start playing as soon as it is loaded.(a) controls(b) audio Tracks(c) autoplay(d) currentSrcThis question was addressed to me by my school teacher while I was bunking the class.Query is from HTML5 Audio in section HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

Answer»

Correct answer is (c) autoplay

For explanation I would say: Control attribute is USED to SET whether AUDIO/video should DISPLAY controls. AudioTrack list representing audio tracks is set by audio track. The autoplay attribute is a BOOLEAN attribute. When present, the audio will automatically start playing as soon as it can do so without stopping. A current src of audio/video is returned by currentSrc.

116.

In HTML Audio/Video DOM, __________ sets or returns the CORS settings of the audio/video.(a) currentTime(b) duration(c) defaultPlaybackRate(d) crossOriginThe question was posed to me in an interview for internship.This interesting question is from HTML5 Video topic in section HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

Answer»

Right choice is (d) CROSSORIGIN

For explanation I would say: CurrentTime set or returns CURRENT playback position while playing audio/video. The length of the current audio/video is set or returned by duration. Default speed of playback is given by defaultPlaybackRate. The purpose of the crossorigin attribute is to allow you to configure the CORS requests for the ELEMENT’s fetched data.

117.

Which of the following HTML Video – Media Type is not supported in IE?(a) WebM(b) MP4(c) Ogg(d) MP4 FLACI had been asked this question in unit test.My question comes from HTML5 Video in chapter HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

Answer»

The correct choice is (c) Ogg

To explain I would say: The Ogg container format with the Theora video codec and the Vorbis audio codec is supported in desktop/mobile Gecko (Firefox), Chrome, and Opera, and support for the format can be added to Safari (but not on IOS) by installing an add-on. The format is not supported in Internet Explorer in any way. The most widely used format for HTML video i.e MP4 format is supported in IE.

118.

__________ is a JavaScript library that implements the most common user interface elements and interactions like sliders, accordions, tabs, and so on.(a) JavaScript(b) JQuery UI(c) VTS(d) JCLThis question was addressed to me in unit test.I need to ask this question from HTML5 Video topic in section HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

Answer»

Right answer is (b) JQuery UI

For explanation: JQuery UI is a CURATED SET of user interface interactions, EFFECTS, WIDGETS, and themes built on top of the jQuery JAVASCRIPT Library. JavaScript is a scripting language. VTS is a powerful rendering engine browser for JavaScript. JCL is Job Control Language which is also named as scripting language.

119.

The element ___________ simply groups items within an enclosed dd tag, though it may associate them with a caption defined by a dt tag.(a) object(b) figure(c) embed(d) collectThis question was addressed to me in an interview for job.I'm obligated to ask this question of HTML5 Document Structure Changes topic in portion HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

Answer»

Right answer is (a) object

To explain: HTML documents are delivered as “documents”.These are then parsed, which turns them into the Document Object Model (DOM) INTERNAL representation, within the WEB browser. A self-contained information like IMAGES, diagrams are specified by figure tag in HTML. EXTERNAL applications are EMBED using embed tag.

120.

Which of the following element sets is an item of metadata?(a) itemscope(b) itemref(c) itemtype(d) none of the mentionedI have been asked this question at a job interview.Question is from Embracing the Reality of Web Markup in section HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

Answer»

The correct option is (a) itemscope

Best explanation: Itemscope is a BOOLEAN global attribute that defines the scope of associated METADATA. The itemscope attribute creates a new ITEM, a group of name-value pairs. The URL of VOCABULARY is specified by itemtype global attribute. List of ELEMENT ID’s is provided by itemref.

121.

Which of the following attribute adds audio controls, like play, pause, and volume?(a) audio(b) controls(c) source(d) srcThis question was addressed to me in a national level competition.I would like to ask this question from HTML5 Audio in section HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

Answer»

Right choice is (b) CONTROLS

The BEST I can explain: The audio attribute defines sound, such as MUSIC or other audio STREAMS. Source attribute defines multiple media resources for media elements, such as

122.

____________ defines the accelerator key to be used for keyboard access to an element.(a) data-X(b) accesskey(c) rp(d) commandThe question was posed to me in an internship interview.My enquiry is from Embracing the Reality of Web Markup topic in chapter HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

Answer»

Right answer is (b) accesskey

To explain: Command TAG specifies a command PROVIDED with action. When one want to PROVIDE PARENTHESES around ruby TEXT, rp tag is used. The accesskey attribute specifies a shortcut key to activate/focus an element. Data-X stores data.

123.

HTML5 documents may contains a ___________ element, which is used to set the header section of a document.(a) header(b) footer(c) section(d) driveI have been asked this question in examination.The origin of the question is HTML5 Document Structure Changes in portion HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

Answer»

The correct answer is (a) HEADER

Easiest EXPLANATION: Section element is used to make sections in document. The copyright/footer INFORMATION is provided by footer element in HTML5. A header for document section is GIVEN by header element. The header tag is used to contain the header content of a SITE.

124.

In HTML Audio/Video DOM, __________ returns a TimeRanges object representing the buffered parts of the audio/video.(a) preload(b) networkState(c) buffered(d) controllerThe question was posed to me in a national level competition.This intriguing question comes from HTML5 Video in division HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

Answer»

The correct choice is (c) buffered

To explain: Preload is used to SET or RETURN whether the video/ audio has been loaded on page. Current NETWORK of audio/video has been set or returned by networkState. A buffered range is a time-range of buffered audio/video. The user gets several buffered RANGES if he/she skips in the audio/video. Media controller of current video/audio is GIVEN or returned by controller.

125.

To draw on the canvas, authors must first obtain a reference to a context using the ______________ method of the canvas interface element.(a) getImageData(b) toDataURL(c) getContext(d) restoreI got this question in an online interview.This interesting question is from Client-Side Graphics with Canvas in chapter HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

Answer»

The correct choice is (C) getContext

To EXPLAIN I would SAY: The method getImageData(), returns an imageData that copiespixel data for a specified thing in canvas. ContextType is a DOMString containing the CONTEXT identifier defining the DRAWING context associated to the canvas.

126.

The ____________ method must create a new clipping region by calculating the intersection of the current clipping region and the area described by the current path, using the non-zero winding number rule.(a) fill()(b) stroke()(c) clip()(d) get()I got this question in quiz.The origin of the question is Client-Side Graphics with Canvas in section HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

Answer»

The correct choice is (c) clip()

To elaborate: The PATH one defines is DRAWN by STROKE() method. Any region/shape or SIZE in canvas is clipped by clip(). The fill() method fills the current drawing (path). The default color is black. There is no method like get().

127.

Which of the following is not the promises of the open web platform?(a) Security and Privacy(b) Performance and Tuning(c) Media and Real-Time Communications(d) Device InterconnectionThe question was posed to me in an online quiz.This interesting question is from HTML5’s Open Media Effort in section HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

Answer»

Right answer is (d) Device Interconnection

The best I can explain: The different promises of the open web platform are –

• Security and Privacy

• Core Web DESIGN and Development

• Device Interaction

APPLICATION Lifecycle

• Media and Real-Time Communications

PERFORMANCE and Tuning

• Usability and Accessibility

SERVICES

128.

Prior to HTML5 in web market, traditionally, multimedia has been inserted with the concept of tag-based multimedia back.(a) True(b) FalseI had been asked this question during an interview.This interesting question is from HTML5’s Open Media Effort in division HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

Answer»

Right option is (B) False

For EXPLANATION I would say: Multimedia has different FORMATS, it can be anything that you can hear or see. TRADITIONALLY, multimedia has been inserted with the embed and object elements, particularly when inserting ADOBE Flash, Apple QuickTime, Windows Media, and other formats.

129.

_____________ defines a group of content that should be used as a figure and may be labeled by a legend element.(a) figure(b) details(c) output(d) asideThe question was asked during an online exam.My question is taken from Embracing the Reality of Web Markup topic in section HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

Answer»

Right answer is (a) figure

Easiest explanation: The ASIDE tag contains data related to its surrounding. is result of anything. The figure tag specifies self-contained content, like illustrations, diagrams, PHOTOS, code listings, etc. ADDITIONAL details that SOMEONE wants to know or hide as per demand are provided by details element.

130.

To insert a video, we use a video tag and set its src attribute to a local or remote URL containing a playable movie.(a) True(b) FalseThis question was posed to me in class test.The above asked question is from HTML5 Document Structure Changes in portion HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

Answer»

Right choice is (a) True

Explanation: To SHOW a video in HTML, video ELEMENT is used. ONE of the ATTRIBUTE of video called src is used to provide the location of video i.e. it’s URL address.

131.

In HTML Audio/Video DOM, __________ sets or returns the default speed of the audio/video playback.(a) currentTime(b) duration(c) defaultPlaybackRate(d) playbackRateThe question was asked during an online interview.This key question is from HTML5 Video in division HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

Answer»

The correct option is (c) defaultPlaybackRate

The best I can explain: CurrentTime set or returns CURRENT playback position while playing audio/video. The length of the current audio/video is set or RETURNED by duration. Default SPEED of playback is GIVEN by defaultPlaybackRate while playback returns speed of the audio/video.

132.

The _________ element is used to render simple graphics such as line art, graphs, and other custom graphical elements on the client side.(a) metadata(b) css(c) canvas(d) artThe question was posed to me during an interview.This interesting question is from HTML5’s Open Media Effort topic in chapter HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

Answer»

Right OPTION is (c) CANVAS

To elaborate: Metdata gives data or information of other data. CSS i.e. Cascading Style Sheets is a style SHEET language. Canvas is introduced in HTML5 for providing/drawing graphics. The canvas element is part of HTML5 and allows for dynamic, scriptable rendering of 2D SHAPES and bitmap images.

133.

Which tag is used to encapsulate navigation and then style the elements appropriately as menu items?(a) ul(b) li(c) nav(d) both ul and liThis question was addressed to me by my college director while I was bunking the class.My doubt is from HTML5 Document Structure Changes in section HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

Answer»

The correct choice is (d) both ul and li

Easy EXPLANATION: Conventionally, many web developers have use

    and
  • tags to encapsulate navigation and then STYLED the elements appropriately as menu items. This seems to introduce quite a BIT of AMBIGUITY in markup because it may be difficult to determine the difference between a list that has LINKS in it and a list that is simply navigation.
    134.

    Which of the following element is used for highlighting content similarly to how a highlighter pen might be used on important text in a book?(a) em(b) strong(c) mark(d) boldThis question was posed to me by my college professor while I was bunking the class.Origin of the question is HTML5 Document Structure Changes topic in chapter HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

    Answer»

    The correct option is (c) mark

    For explanation I would SAY: tag convert the font in italic one. The tag is used to denote the importance of text. tag is used to make the text bold in font SIZE. The mark tag defines marked text and is used to highlight parts of your text.

    135.

    ____________ contains the navigation menu, or other navigation functionality for the page.(a) section(b) header(c) nav(d) asideThis question was posed to me in final exam.Query is from HTML5 Document Structure Changes in portion HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

    Answer»

    Correct ANSWER is (c) nav

    The best explanation: The nav element is for marking up the navigation links or other constructs (eg a SEARCH form) that will take you to different PAGES of the current site, or different areas of the current page. Header contains section of HEADINGS. Section element is used to make sections in document. The aside tag defines a BLOCK of content that is related to the main content around it, but not central to the flow of it.

    136.

    In HTML Audio/Video DOM __________ sets or returns whether the audio/video should start over again when finished.(a) loop(b) autoplay(c) seeking(d) playedI had been asked this question in exam.My enquiry is from HTML5 Audio in portion HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

    Answer»

    The correct answer is (a) loop

    To elaborate: The loop attribute is a boolean attribute. When present, it specifies that the audio will start over again, every TIME it is finished. With autoplay, it ENSURES whether video/audio should play immediately after LOADING PAGE. Seeking returns whether user is currently seeking video/audio. Timeranges representing played parts of audio/video is set by played attribute.

    137.

    Which element may be used within content to represent material that is tangential?(a) aside(b) cite(c) article(d) classI had been asked this question during a job interview.I'd like to ask this question from HTML5 Document Structure Changes in portion HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

    Answer»

    The correct answer is (a) aside

    Easy explanation: TAG defines the TITLE of work. The class ATTRIBUTE specifies one or more class names to HTML. An article tag is similar to

    or
    which CONTAINS INFORMATION. The aside tag defines a block of content that is related to the main content around it, but not central to the flow of it.

    138.

    Which element is used to define a discrete unit of content such as a blogpost, comment, and so on?(a) section(b) class(c) article(d) mediaI have been asked this question during an internship interview.The origin of the question is HTML5 Document Structure Changes in portion HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

    Answer»

    Right choice is (c) ARTICLE

    Easiest explanation: Sections in document is made by the section tag. The class attribute specifies one or more class names to HTML. An article element is SEMANTIC element and it contains a standalone piece of CONTENT that would make sense if syndicated as an RSS ITEM, for example a news item.

    139.

    Which of the following element represents the header of a section or the document and contains a label or other heading information for the related content?(a) data-X(b) header(c) mark(d) meterThe question was posed to me in an international level competition.My query is from Embracing the Reality of Web Markup topic in chapter HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

    Answer»

    The correct answer is (b) header

    For explanation: DATA-X ELEMENT consist of data. The mark element INDICATES highlighted/marked text. The header element represents a container for introductory content or a set of navigational links.

    140.

    In HTML Audio/Video DOM __________ returns a MediaError object representing the error state of the audio/video.(a) ended(b) seeking(c) error(d) mediaGroupI have been asked this question in final exam.Enquiry is from HTML5 Audio topic in section HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

    Answer»

    Right option is (c) error

    Easy explanation: Seeking returns whether user is currently seeking video/audio. Ended attribute fires up when current PLAYING PLAYLIST is FINISHED. The error PROPERTY returns a MediaError object. The MediaError object has a CODE property containing the error state of the audio/video. The group to which audio/video belongs is returned by mediaGroup.

    141.

    In HTML Audio/Video DOM __________ sets or returns the volume of the audio/video.(a) src(b) volume controls(c) volume(d) video TracksThe question was asked in examination.My enquiry is from HTML5 Audio topic in section HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

    Answer»

    Right answer is (c) volume

    The explanation: Src attribute gives current source of audio/VIDEO element. The videoTrack list is returned REPRESENTING AVAILABLE video tracks by video TRACK attribute. Volume attribute sets the current volume of video/audio.

    142.

    In HTML Audio/Video DOM __________ returns a TextTrackList object representing the available text tracks.(a) readyState(b) startDate(c) videoTracks(d) textTracksI got this question in an online quiz.Question is from HTML5 Audio topic in section HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

    Answer»

    Right answer is (d) textTracks

    The best explanation: The current ready state of video/audio is set by readyState. STARTDATE sets current date REPRESENTING current TIME offsets. VideoTrack returns video track list representing available video TRACKS. The textTracks property returns a TextTrackList object. The TextTrackList object represents the available text tracks for the audio/video. Each available text track is represented by an TextTrack Object.

    143.

    Which protocol is supported by Android browsers?(a) HTTPS(b) HLS(c) RTMP(d) FTPThis question was posed to me in final exam.This question is from HTML5 Video topic in portion HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

    Answer» CORRECT answer is (b) HLS

    To explain I would say: HTTPS i.e. Hypertext Transfer Protocol Secure is USED on internet. HLS which stands for Hypertext Transfer Protocol Live Streaming invented by Apple INC., a new streaming protocol which is supported by ANDROID browsers. RTMP stands for Real-Time Messaging Protocol, FTP stands for File Transfer Protocol.
    144.

    __________ can be used to advise the browser to download media content in the background to improve playback.(a) poster(b) autobuffer(c) buffer(d) data-XI had been asked this question in final exam.Enquiry is from HTML5’s Open Media Effort in division HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

    Answer»

    The correct ANSWER is (b) autobuffer

    Easiest explanation: Data-X STORES custom data. Buffer property is used to DECIDE whether the output should be buffered or not. If autobuffering attribute is used, then the video will automatically begin to buffer even if it’s not SET. It suggests to the browser that it should load as much of the RESOURCE as possible. As long as the browser’s own media cache isn’t full, it will keep on downloading. URL of an image is given by poster attribute until the user seek for it.

    145.

    Which method must clear the pixels in the specified rectangle that also intersects the current clipping region to a fully transparent black, erasing any previous image?(a) strokeRect(x, y, w, h)(b) clearRect(x, y, w, h)(c) fillRect(x, y, w, h)(d) removeRect(x,y,w,h)I have been asked this question in final exam.The query is from Client-Side Graphics with Canvas in portion HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

    Answer»

    Correct option is (b) clearRect(x, y, W, h)

    To EXPLAIN: StrokeRect(x, y, w, h) DRAWS rectangle without filling it. The clearRect() METHOD clears the specified pixels within a given rectangle. FillRect(x, y, w, h) method draws filled rectangle.

    146.

    Which of the following attribute is used to display date/time content?(a) time(b) datetime(c) date(d) yearThis question was posed to me in homework.My query is from HTML5 Document Structure Changes topic in portion HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

    Answer»

    Right choice is (b) DATETIME

    Explanation: To provide both HUMAN and machine-friendly date/time content, the element supports a datetime ATTRIBUTE, which should be set to the previously mentioned date FORMAT of YYYY-MM-DDThh:mm:ssTZD. Time tag defines date and time (human readable) while datetime tag display machine readable date/time.

    147.

    The ___________ method must add the scaling transformation described by the arguments to the transformation matrix.(a) scale(x, y)(b) translate(x, y)(c) rotate(angle)(d) skew(x,y)The question was asked in examination.This interesting question is from Client-Side Graphics with Canvas in section HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

    Answer»

    The correct answer is (a) scale(x, y)

    The explanation is: HTML5 canvas provides scale(x, y) method which is USED to increase or DECREASE the units in our canvas GRID. The position (0, 0) is remaped in canvas by translate(x, y) method. If ONE want to rotate the current drawing then rotate(angle) method can be used.

    148.

    HTML5 brings to the Web video and audio tracks without needing plugins.(a) True(b) FalseThe question was posed to me in an internship interview.Question is from HTML5’s Open Media Effort topic in chapter HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

    Answer»

    Correct choice is (a) True

    For explanation: The World Wide Web Consortium (W3C) published a Recommendation of HTML5, the fifth major revision of the FORMAT USED to build Web pages and applications, and the cornerstone of the Open Web Platform. HTML5 BRINGS to the Web video and audio tracks without needing plugins with programmatic access to resolution dependent canvas.