Sail E0 Webinar

MCQs

Total Questions : 23 | Page 2 of 3 pages
Question 11. What does it indicate when the type attribute of the navigation object is set to 2?
  1.    Navigation by moving back through history
  2.    Navigation by moving forward through history
  3.    Both a and b
  4.    None of the mentioned
 Discuss Question
Answer: Option C. -> Both a and b


When the type attribute of the navigation object is set to 2, it means that the navigation is done by moving back or forward through history.


Question 12. How many properties are there in the interface PerformanceTiming?
  1.    21
  2.    22
  3.    23
  4.    24
 Discuss Question
Answer: Option A. -> 21


There are a total of 23 properties associated with the interface PerformanceTiming.


Question 13. The style property belongs to while of the following object?
  1.    Element
  2.    Window
  3.    Location
  4.    None of the mentioned
 Discuss Question
Answer: Option A. -> Element


Each Element object has style and className properties that allow scripts to specify CSS styles for a document element or to alter the CSS class names that apply to the element.


Question 14. Which is the method used to add an event listener?
  1.    addEventListener()
  2.    addListener()
  3.    addEvent(Listener)
  4.    addListener(Event)
 Discuss Question
Answer: Option A. -> addEventListener()


The addEventListener() method is used to add an event listener to the script.


Question 15. What should be the value of the type attribute of a variable if the type of file is CSS?
  1.    text/js/css
  2.    text/js
  3.    text/css
  4.    text
 Discuss Question
Answer: Option C. -> text/css


Since the type of file is CSS, the type attribute should hold the value text/css.


Question 16. Which is the next step after retrieving the content in chunks?
  1.    Paint DOM elements
  2.    Parse Content
  3.    Build DOM nodes in render tree
  4.    None of the mentioned
 Discuss Question
Answer: Option B. -> Parse Content


After retrieving the content in chunks, the contents will be parsed.


Question 17. How can one access the redirectCount property?
  1.    navigation.redirectCount
  2.    performance.navigation.redirectCount
  3.    performance.redirectCount
  4.    redirectCount
 Discuss Question
Answer: Option B. -> performance.navigation.redirectCount


The redirectCount property can be accessed as : performance.navigation.redirectCount.


Question 18. What is the purpose of the startTimeLogging() method?
  1.    Start the timer
  2.    Capture time logging
  3.    Capture timing data for referencing
  4.    All of the mentioned
 Discuss Question
Answer: Option D. -> All of the mentioned


The startTimeLogging() method captures the timing data for ad hoc, etc for referencing an uncached document.location.


Question 19. Which of the following gives the high level breakdown of memory usage?
  1.    about:memory
  2.    memory
  3.    about-memory
  4.    about::memory
 Discuss Question
Answer: Option A. -> about:memory


Typing about:memory into the location bar brings up a page that gives a high-level breakdown of memory usage.


Question 20. Which of the following are client-side JavaScript object?
  1.    Database
  2.    Cursor
  3.    Client
  4.    FileUpLoad
 Discuss Question
Answer: Option D. -> FileUpLoad


The FileUpLoad is a client-side JavaScript object.


Latest Videos

Latest Test Papers