Quiz: HTML5 Training Practice Paper Questions!

19 Questions | Total Attempts: 4006

SettingsSettingsSettings
Quiz: HTML5 Training Practice Paper Questions! - Quiz

.


Questions and Answers
  • 1. 
    What does HTML stand for?
    • A. 

      Hyper Text Markup Language

    • B. 

      Home Tool Markup Language

    • C. 

      Hyperlinks and Text Markup Language

  • 2. 
    What's the DOCTYPE Declaration for HTML5 pages?
    • A. 

      DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"

    • B. 

      DOCTYPE html5

    • C. 

      DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"

    • D. 

      DOCTYPE html

  • 3. 
     What is the difference between HTML and HTML5 ?
    • A. 

      In HTML5 no need to do external plugin like Flash player or other library

    • B. 

      HTML5 is an upgraded version of HTML

    • C. 

      All are correct.

    • D. 

      In HTML5 lot of new future like Video and Audio/mp3, placeholder , Canvas, 2D/3D Graphics, Local Storage were added.

  • 4. 
    What is the  < ! DOCTYPE >  ? 
    • A. 

      It's an instruction to recognize you are creating an XML file.

    • B. 

      It's an instruction to the web browser about what version of HTML the page is written in.

    • C. 

      It's an instruction to finish an HTML page.

  • 5. 
    Which of the follows are all new elements for  HTML5?
    • A. 

      Article, footer, section, audio, track

    • B. 

      Object, article, br, table, input

    • C. 

      Input, frame, body, table, form

    • D. 

      All of them

  • 6. 
    Which of the follow options are new input types in HTML5?
    • A. 

      Text, textarea, multiplebox, list

    • B. 

      Email, month, number, color, search

    • C. 

      Month, date, table, email, textarea

  • 7. 
     How to add video in HTML5?
    • A. 

      Video width="320" height="240" src="myVideo.mp4"

    • B. 

      < video width="320″ height="240″ controls="controls" > < source src="myVideo.mp4″ type="video/mp4" / >

    • C. 

      < object id="MediaPlayer" width="434" height="300" classid="clsid:22D6F312-B0F6-11D0-94AB… type="application/x-oleobject" > < param name="Filename" value="myVideo.mp4" >

    • D. 

      Object width="320" height="240" src="myVideo.mp4"

    • E. 

      Embed src="video.avi" width="352" height="240"

  • 8. 
     What is the use of sessionStorage in HTML5?
    • A. 

      It doesn't exist for HTML5

    • B. 

      It stores the data for one session.

    • C. 

      It stores data with no expiration date.

  • 9. 
     What is the use of localStorage in HTML5?
    • A. 

      It doesn't exist for HTML5

    • B. 

      It stores the data for one session.

    • C. 

      It stores data with no expiration date.

    • D. 

      It stores data until cache is cleaned.

  • 10. 
    Which browsers support HTML5?
    • A. 

      IE, Opera, Chrome, Firefox.

    • B. 

      All.

    • C. 

      The major browsers, but only some features.

    • D. 

      Mobiles, Opera, Chrome.

    • E. 

      The major browsers.

  • 11. 
    Which are some advantage using HTML5?
    • A. 

      Cleaner markup.

    • B. 

      Additional semantics of new elements

    • C. 

      Reduce the need for external plugins

    • D. 

      Better error handling

    • E. 

      All of above

  • 12. 
    Which object you can get the geolocation with?
    • A. 

      Maps.getCurrentPosition();

    • B. 

      Navigator.location.getCurrentPosition();

    • C. 

      Navigator.geolocation.getCurrentPosition();

    • D. 

      Navigator.maps.getCurrentPosition();

  • 13. 
    Why is recommended to use HTML5?
    • A. 

      Because it's a new technology.

    • B. 

      Because it's changing the world.

    • C. 

      It's still not recommended.

    • D. 

      Because all navigators use it.

  • 14. 
    What's the difference between sessionStorage and localStorage?
    • A. 

      There's no difference.

    • B. 

      The scope we can use them.

    • C. 

      The time they store data.

    • D. 

      The object they implement.

  • 15. 
    Which are all new events in HTML5?
    • A. 

      Onplay, ondrag, onmousewheel, onstorage, onbeforeprint

    • B. 

      Onblur, onpause, onoffline, onload, ondrop

    • C. 

      Ondrop, onkeypress, onmouseover, onplaying, onclick

  • 16. 
    How does HTML5 implement dragAndDrop ?
    • A. 

      With the dataTransfer object

    • B. 

      With the event ondragstart, ondragover and ondrop

    • C. 

      Setting the draggable attribute

    • D. 

      It's needed to make the other three options

  • 17. 
    What's the advantage for Application cache?
    • A. 

      Offline browsing.

    • B. 

      All above.

    • C. 

      Reduce the page size.

    • D. 

      Spent less time filling in forms.

  • 18. 
    What is Web workers for?
    • A. 

      It's a StyleSheet that runs in the background, independently of other sheets.

    • B. 

      It's a JavaScript that runs in the background, independently of other scripts.

    • C. 

      It's a new page that runs in the background, independently of other pages.

  • 19. 
    How to implement Canvas in HTML5?
    • A. 

      With the object paint.canvas

    • B. 

      With the element "canvas"

    • C. 

      With the attribute "body canvas='true' "

    • D. 

      That doesn't exists in HTML5

Back to Top Back to top