Explore topic-wise MCQs in Javascript.

This section includes 10 Mcqs, each offering curated multiple-choice questions to sharpen your Javascript knowledge and support exam preparation. Choose a topic below to get started.

1.

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 mentioned
Answer» C. One object gets referenced
2.

Which_of_the_following_is_a_way_to_retain_an_object_in_memory?$

A. Console Log
B. Closures
C. Destroy objects
D. All of the mentioned
Answer» B. Closures
3.

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
Answer» E.
4.

Which of the following functions are referenced internally?

A. setTimeout
B. setInterval
C. both setTimeout and setInterval
D. none of the mentioned
Answer» D. none of the mentioned
5.

The style property belongs to while of the following object?

A. Element
B. Window
C. Location
D. None of the mentioned
Answer» B. Window
6.

What will happen when the data of the jQuery.cache is read from an element?

A. Unique number is retrieved as <b>elem[jQuery.expando]</b>
B. Data is read from <b>jQuery.cache[id]</b>
C. Unique number is retrieved as <b>elem[jQuery.expando]</b> & Data is read from <b>jQuery.cache[id]</b>
D. None of the mentioned
Answer» D. None of the mentioned
7.

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
Answer» B. Browser releases too many memories
8.

What is the central concept of JavaScript memory management?

A. Reliability
B. Reachability
C. Efficiency
D. Transparency
Answer» C. Efficiency
9.

Which handler is triggered when the content of the document in the window is stable and ready for manipulation?

A. onload
B. manipulate
C. create
D. none of the mentioned
Answer» B. manipulate
10.

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
Answer» B. Server side objects