12 real Immutability questions from the Functional Programming bank, as asked in Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd — free to start.
1. What is Persistent data structure?
Senior
A.deferring duplication of shared data until a modification is requested, then copying only what is changed
B.the rationale that not changing values in place removes a major source of hidden coupling and hard-to-trace bugs
C.an efficiency technique where an updated immutable collection reuses unchanged parts of the original instead of copying everything
D.a collection that preserves all previous versions of itself whenever it is updated
A.Persistent data structure — an efficiency technique where an updated immutable collection reuses unchanged parts of the original instead of copying everything
B.Persistent data structure — deferring duplication of shared data until a modification is requested, then copying only what is changed
C.Persistent data structure — a collection that preserves all previous versions of itself whenever it is updated
D.Persistent data structure — the rationale that not changing values in place removes a major source of hidden coupling and hard-to-trace bugs
5. Which term means: "an efficiency technique where an updated immutable collection reuses unchanged parts of the original instead of copying everything"?
A.Structural sharing — deferring duplication of shared data until a modification is requested, then copying only what is changed
B.Structural sharing — an efficiency technique where an updated immutable collection reuses unchanged parts of the original instead of copying everything
C.Structural sharing — the rationale that not changing values in place removes a major source of hidden coupling and hard-to-trace bugs
D.Structural sharing — a collection that preserves all previous versions of itself whenever it is updated
A.Why avoid mutation — the rationale that not changing values in place removes a major source of hidden coupling and hard-to-trace bugs
B.Why avoid mutation — an efficiency technique where an updated immutable collection reuses unchanged parts of the original instead of copying everything
C.Why avoid mutation — a collection that preserves all previous versions of itself whenever it is updated
D.Why avoid mutation — deferring duplication of shared data until a modification is requested, then copying only what is changed
Answers, AI explanations, and a scored voice mock interview
Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take one full AI mock interview — scored like a real panel.