CommerceCaching 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?
- A. img
- B. src
- C. source
- D. none of the mentioned
Correct Answer: B
Which of the following is possible to be referenced in external JavaScript?
- A. cpp
- B. cs
- C. php
- D. all of the mentioned
Correct Answer: C
Which of the following is added to prefs.js when the console is automatically opened during JavaScript error?
- A. user_pref("javascript.console.open_on_error", true)
- B. user_pref("javascript.console.open_error ", true)
- C. user_pref("javascript.console.open_error ", false)
- D. user_pref(" javascript.console.open_on_error", false)
Correct Answer: A
What are the two parts of JavaScript libraries?
- A. “script” tag and “body” tag
- B. External JavaScript and the “script” tag
- C. “html” tag and “body” tag
- D. None of the mentioned
Correct Answer: B
In which format does JavaScript support external JavaScript?
- A. .js
- B. .php
- C. .js/php
- D. .jss
Correct Answer: A
Which of the following is a way to retain an object in memory?
- A. Console Log
- B. Closures
- C. Destory objects
- D. All of the mentioned
Correct Answer: A
When does a cycle occur during memory leak?
- A. No reference occurs
- B. Two objects reference
- C. One object gets referenced
- D. None of the above
Correct Answer: B
What is the purpose of destroying the functions and objects?
- A. Consume unnecessary CPU cycles
- B. Prevent the dropping of reference count to 0
- C. Centralize the responsibility to clean up
- D. All of the mentioned
Correct Answer: D
Which of the following functions are referenced internally?
- A. setTimeout
- B. setInterval
- C. both setTimeout and setInterval
- D. none of the mentioned
Correct Answer: C
When does a memory leak happen?
- A. Browser doesn’t release memory from objects unnecessary
- B. Browser releases too many memories
- C. All of the mentioned
- D. None of the mentioned
Correct Answer: A
What is the central concept of JavaScript memory management?
- A. Reliability
- B. Reachability
- C. Efficiency
- D. Transparency
Correct Answer: B
Where are memory leaks found?
- A. Client side objects
- B. Server side objects
- C. Both Client side and Server side objects
- D. None of the mentioned
Correct Answer: A