Sail E0 Webinar

MCQs

Total Questions : 117 | Page 10 of 12 pages
Question 91. When does a memory leak happen?
  1.    Browser doesn’t release memory from objects unnecessary
  2.    Browser releases too many memories
  3.    All of the mentioned
  4.    None of the mentioned
 Discuss Question
Answer: Option A. -> Browser doesn’t release memory from objects unnecessary
Question 92. 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
Question 93. Which of the following functions are referenced internally?
  1.    setTimeout
  2.    setInterval
  3.    both setTimeout and setInterval
  4.    none of the mentioned
 Discuss Question
Answer: Option C. -> both setTimeout and setInterval
Question 94. When does a cycle occur during memory leak?
  1.    No reference occurs
  2.    Two objects reference
  3.    One object gets referenced
  4.    One object gets referenced
 Discuss Question
Answer: Option B. -> Two objects reference
Question 95. What is the purpose of destroying the functions and objects?
  1.    Consume unnecessary CPU cycles
  2.    Prevent the dropping of reference count to 0
  3.    Centralize the responsibility to clean up
  4.    All of the mentioned
 Discuss Question
Answer: Option D. -> All of the mentioned
Question 96. In which format does JavaScript support external JavaScript?
  1.    .js
  2.    .php
  3.    .js/php
  4.    .jss
 Discuss Question
Answer: Option A. -> .js
Question 97. Which of the following is a way to retain an object in memory?
  1.    Console Log
  2.    Closures
  3.    Destory objects
  4.    All of the mentioned
 Discuss Question
Answer: Option A. -> Console Log
Question 98. What are the two parts of JavaScript libraries?
  1.    “script” tag and “body” tag
  2.    External JavaScript and the “script” tag
  3.    “html” tag and “body” tag
  4.    None of the mentioned
 Discuss Question
Answer: Option B. -> External JavaScript and the “script” tag
Question 99. Which of the following is added to prefs.js when the console is automatically opened during JavaScript error?
  1.    user_pref("javascript.console.open_on_error", true);
  2.    user_pref("javascript.console.open_error ", true);
  3.    user_pref("javascript.console.open_error ", false);
  4.    user_pref(" javascript.console.open_on_error", false);
 Discuss Question
Answer: Option A. -> user_pref("javascript.console.open_on_error", true);
Question 100. Which of the following is possible to be referenced in external JavaScript?
  1.    cpp
  2.    cs
  3.    php
  4.    all of the mentioned
 Discuss Question
Answer: Option C. -> php

Latest Videos

Latest Test Papers