Data Types & Structures interview questions

15 real Data Types & Structures questions from the Python 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 tuple?

Junior
  1. A.an immutable, hashable version of a set that can itself be used as a dictionary key or set member
  2. B.an ordered, immutable sequence whose elements cannot be changed after creation
  3. C.a mapping of unique hashable keys to values, insertion-ordered since version 3.7
  4. D.an unordered collection of unique, hashable elements with no duplicates
Reveal the answer + AI explanation — free account

3. Which statement is correct?

Junior
  1. A.tuple — an ordered, immutable sequence whose elements cannot be changed after creation
  2. B.tuple — an ordered, mutable sequence that supports in-place insertion, removal, and reordering of elements
  3. C.tuple — a mapping of unique hashable keys to values, insertion-ordered since version 3.7
  4. D.tuple — an immutable, hashable version of a set that can itself be used as a dictionary key or set member
Reveal the answer + AI explanation — free account

4. What is list?

Junior
  1. A.an immutable, hashable version of a set that can itself be used as a dictionary key or set member
  2. B.an ordered, immutable sequence whose elements cannot be changed after creation
  3. C.an unordered collection of unique, hashable elements with no duplicates
  4. D.an ordered, mutable sequence that supports in-place insertion, removal, and reordering of elements
Reveal the answer + AI explanation — free account

6. Which statement is correct?

Junior
  1. A.list — an immutable, hashable version of a set that can itself be used as a dictionary key or set member
  2. B.list — an unordered collection of unique, hashable elements with no duplicates
  3. C.list — an ordered, mutable sequence that supports in-place insertion, removal, and reordering of elements
  4. D.list — a mapping of unique hashable keys to values, insertion-ordered since version 3.7
Reveal the answer + AI explanation — free account

7. What is set?

Junior
  1. A.a mapping of unique hashable keys to values, insertion-ordered since version 3.7
  2. B.an ordered, immutable sequence whose elements cannot be changed after creation
  3. C.an immutable, hashable version of a set that can itself be used as a dictionary key or set member
  4. D.an unordered collection of unique, hashable elements with no duplicates
Reveal the answer + AI explanation — free account

9. Which statement is correct?

Junior
  1. A.set — an ordered, immutable sequence whose elements cannot be changed after creation
  2. B.set — an ordered, mutable sequence that supports in-place insertion, removal, and reordering of elements
  3. C.set — a mapping of unique hashable keys to values, insertion-ordered since version 3.7
  4. D.set — an unordered collection of unique, hashable elements with no duplicates
Reveal the answer + AI explanation — free account

10. What is dict?

Junior
  1. A.an immutable, hashable version of a set that can itself be used as a dictionary key or set member
  2. B.an unordered collection of unique, hashable elements with no duplicates
  3. C.a mapping of unique hashable keys to values, insertion-ordered since version 3.7
  4. D.an ordered, mutable sequence that supports in-place insertion, removal, and reordering of elements
Reveal the answer + AI explanation — free account

12. Which statement is correct?

Junior
  1. A.dict — an ordered, mutable sequence that supports in-place insertion, removal, and reordering of elements
  2. B.dict — an unordered collection of unique, hashable elements with no duplicates
  3. C.dict — a mapping of unique hashable keys to values, insertion-ordered since version 3.7
  4. D.dict — an immutable, hashable version of a set that can itself be used as a dictionary key or set member
Reveal the answer + AI explanation — free account

13. What is frozenset?

Mid
  1. A.an ordered, immutable sequence whose elements cannot be changed after creation
  2. B.an immutable, hashable version of a set that can itself be used as a dictionary key or set member
  3. C.an ordered, mutable sequence that supports in-place insertion, removal, and reordering of elements
  4. D.a mapping of unique hashable keys to values, insertion-ordered since version 3.7
Reveal the answer + AI explanation — free account

15. Which statement is correct?

Mid
  1. A.frozenset — an unordered collection of unique, hashable elements with no duplicates
  2. B.frozenset — an immutable, hashable version of a set that can itself be used as a dictionary key or set member
  3. C.frozenset — an ordered, mutable sequence that supports in-place insertion, removal, and reordering of elements
  4. D.frozenset — an ordered, immutable sequence whose elements cannot be changed after creation
Reveal the answer + AI explanation — free account

Free to start

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.

Practice Data Types & Structures free