Sail E0 Webinar

MCQs

Total Questions : 59 | Page 1 of 6 pages
Question 1. Which of the following elements in HTML5 defines video or movie content?
  1.    media
  2.    video
  3.    movie
  4.    audio
 Discuss Question
Answer: Option B. -> video


Before HTML5, videos could only be played with a plug-in (like flash). The HTML5 video element specifies a standard way to embed a video in a web page.


Question 2. Calling the ______________ method during both a dragenter and dragover event will indicate that a drop is allowed at that location.
  1.    drop
  2.    drag
  3.    preventDefault
  4.    dataTransfer
 Discuss Question
Answer: Option C. -> preventDefault




Question 3. When is the mouseout event fired?
  1.    When mouse is no longer over an element
  2.    When mouse is over an element
  3.    When mouse is hovered
  4.    None of the mentioned
 Discuss Question
Answer: Option A. -> When mouse is no longer over an element


When the mouse moves so that it is no longer over an element, the browser fires a mouseout event on that element.


Question 4. The focus and blur events are also part of
  1.    Element events
  2.    Handler events
  3.    Window events
  4.    Scroll events
 Discuss Question
Answer: Option C. -> Window events


The focus and blur events are also used as Window events: they are triggered on a window when that browser window receives or loses keyboard focus from the operating system.


Question 5. When is the mouseover event fired?
  1.    When mouse is moved over a new element
  2.    When mouse is clicked
  3.    When mouse is both moved and clicked
  4.    None of the mentioned
 Discuss Question
Answer: Option A. -> When mouse is moved over a new element


When the user moves the mouse so that it goes over a new element, the browser fires a mouseover event on that element.


Question 6. Which of the following property is used to determine which drag operation was desired?
  1.    dragend
  2.    getData
  3.    dropEffect
  4.    captureData
 Discuss Question
Answer: Option C. -> dropEffect


During the drop event, you should retrieve that data that was dropped from the event and insert it at the drop location. One can use the dropEffect property to determine which drag operation was desired.


Question 7. The ______________ parameter identifies a character encoding, which is a method of converting a sequence of bytes into a sequence of characters.
  1.    class
  2.    element
  3.    charset
  4.    none of the mentioned
 Discuss Question
Answer: Option C. -> charset




Question 8. Which of the following defines graphic drawing using JavaScript?
  1.    class
  2.    canvas
  3.    graphics
  4.    draw
 Discuss Question
Answer: Option B. -> canvas


The canvas tag is only a container for graphics, you must use a script to actually draw the graphics.


Question 9. ______________ should include data of two types; the first should be the URL using the type text/uri-list, and the second is the URL using the text/plain type.
  1.    Dragging HTML and XML
  2.    Dragging Text
  3.    Dragging Files
  4.    Dragging Links
 Discuss Question
Answer: Option D. -> Dragging Links




Question 10. The __________ begins with a series of parameter entity definitions.
  1.    DTD
  2.    SGML
  3.    XML
  4.    None of the mentioned
 Discuss Question
Answer: Option A. -> DTD


The HTML DTD begins with a series of parameter entity definitions. A parameter entity definition defines a kind of macro that may be referenced and expanded elsewhere in the DTD. These macros may not appear in HTML documents, only in the DTD. Other types of macros, called character references, may be used in the text of an HTML document or within attribute values.


Latest Videos

Latest Test Papers