Sail E0 Webinar

MCQs

Total Questions : 25 | Page 3 of 3 pages
Question 21. What is the correct javascript syntax to change the content of the html element below?
  1.    document.getElement("p").innerHTML = "Hello World!"
  2.    document.getElementById("demo").innerHTML = "Hello World!";
  3.    document.getElementByName("p").innerHTML = "Hello World!";
  4.    demo.innerHTML = "Hello World!";
 Discuss Question
Answer: Option B. -> document.getElementById("demo").innerHTML = "Hello World!";
Question 22. Use the ________ element to associate javascript with a web page
  1.    object
  2.    script
  3.    embed
  4.    canvas
 Discuss Question
Answer: Option B. -> script
Question 23. When does the function name become optional in javascript
  1.    When the function is defined as a looping statement
  2.    When the function is defined as expressions
  3.    When the function is predefined
  4.    None of these
 Discuss Question
Answer: Option B. -> When the function is defined as expressions
Question 24. The external javascript file must contain the tag
  1.    True
  2.    False
 Discuss Question
Answer: Option B. -> False
Question 25. The main purpose of javascript in web browser is to
  1.    Creating animations and other visual effects
  2.    User Interface
  3.    Visual effects
  4.    All of above
 Discuss Question
Answer: Option A. -> Creating animations and other visual effects

Latest Videos

Latest Test Papers