Commerce

Caching And Debugging MCQs

Practice Caching And Debugging MCQs for competitive exams.

Caching And Debugging MCQs

Practice questions from this topic.

Which of the following attribute takes the source of the PHP file?

  1. A. img
  2. B. src
  3. C. source
  4. D. none of the mentioned
Report Error

Which of the following is possible to be referenced in external JavaScript?

  1. A. cpp
  2. B. cs
  3. C. php
  4. D. all of the mentioned
Report Error

Which of the following is added to prefs.js when the console is automatically opened during JavaScript error?

  1. A. user_pref("javascript.console.open_on_error", true)
  2. B. user_pref("javascript.console.open_error ", true)
  3. C. user_pref("javascript.console.open_error ", false)
  4. D. user_pref(" javascript.console.open_on_error", false)
Report Error

What are the two parts of JavaScript libraries?

  1. A. “script” tag and “body” tag
  2. B. External JavaScript and the “script” tag
  3. C. “html” tag and “body” tag
  4. D. None of the mentioned
Report Error

In which format does JavaScript support external JavaScript?

  1. A. .js
  2. B. .php
  3. C. .js/php
  4. D. .jss
Report Error

Which of the following is a way to retain an object in memory?

  1. A. Console Log
  2. B. Closures
  3. C. Destory objects
  4. D. All of the mentioned
Report Error

When does a cycle occur during memory leak?

  1. A. No reference occurs
  2. B. Two objects reference
  3. C. One object gets referenced
  4. D. None of the above
Report Error

What is the purpose of destroying the functions and objects?

  1. A. Consume unnecessary CPU cycles
  2. B. Prevent the dropping of reference count to 0
  3. C. Centralize the responsibility to clean up
  4. D. All of the mentioned
Report Error

Which of the following functions are referenced internally?

  1. A. setTimeout
  2. B. setInterval
  3. C. both setTimeout and setInterval
  4. D. none of the mentioned
Report Error

When does a memory leak happen?

  1. A. Browser doesn’t release memory from objects unnecessary
  2. B. Browser releases too many memories
  3. C. All of the mentioned
  4. D. None of the mentioned
Report Error

What is the central concept of JavaScript memory management?

  1. A. Reliability
  2. B. Reachability
  3. C. Efficiency
  4. D. Transparency
Report Error

Where are memory leaks found?

  1. A. Client side objects
  2. B. Server side objects
  3. C. Both Client side and Server side objects
  4. D. None of the mentioned
Report Error