Sail E0 Webinar

MCQs

Total Questions : 80 | Page 5 of 8 pages
Question 41. Which of the following is a way of embedding Client-side JavaScript code within HTML documents?
  1.    From javascript:encoding
  2.    External file specified by the src attribute of a “script” tag
  3.    All of the mentioned
  4.    None of the mentioned
 Discuss Question
Answer: Option B. -> External file specified by the src attribute of a “script” tag
Question 42. When does JavaScript code appear inline within an HTML file?
  1.    Between the “script” tag
  2.    Outside the “script” tag
  3.    Between or Outside the “script” tag
  4.    None of the mentioned
 Discuss Question
Answer: Option A. -> Between the “script” tag
Question 43. Which character in JavaScript code will be interpreted as XML markup?
  1.    !
  2.    >
  3.    &
  4.    .
 Discuss Question
Answer: Option C. -> &
Question 44. What is the code for getting the current time?
  1.    now = new Date();
  2.    var now = new Date();
  3.    var now = Date();
  4.    var now = new Date(current);
 Discuss Question
Answer: Option B. -> var now = new Date();
Question 45. Which is the root element in a HTML document?
  1.    HTML
  2.    HEAD
  3.    SCRIPT
  4.    BODY
 Discuss Question
Answer: Option A. -> HTML
Question 46. What is the code to start displaying the time when document loads?
  1.    onload = displayTime;
  2.    window. = displayTime;
  3.    window.onload = displayTime;
  4.    window.onload = start;
 Discuss Question
Answer: Option C. -> window.onload = displayTime;
Question 47. One of the main advantage of using src attribute is
  1.    It becomes self-cached
  2.    It makes the HTML file modular
  3.    It restricts manipulation in the HTML file
  4.    It simplifies the HTML files
 Discuss Question
Answer: Option D. -> It simplifies the HTML files
Question 48. What will be done if more than one page requires a file of JavaScript code?
  1.    Downloads that many times
  2.    Retrives from the browser cache
  3.    Must be re executed
  4.    None of the mentioned
 Discuss Question
Answer: Option B. -> Retrives from the browser cache
Question 49. What is the default value of the type attribute?
  1.    text/css
  2.    text/javascript
  3.    text
  4.    xml
 Discuss Question
Answer: Option B. -> text/javascript
Question 50. The language is commonly used to
  1.    Specify the user’s language
  2.    Specify the language going to be scripted
  3.    No longer in use
  4.    Specify the programmer’s favorable language
 Discuss Question
Answer: Option C. -> No longer in use

Latest Videos

Latest Test Papers