Data Structures interview questions

21 real Data Structures questions from the Redis 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 String?

Junior
  1. A.the most basic Redis value type, a binary-safe sequence of bytes up to 512 MB holding text, numbers, or serialized objects
  2. B.a probabilistic structure that estimates the cardinality of a large set using roughly 12 KB regardless of element count, with about 0.81% standard error
  3. C.an append-only log of entries with unique ids, supporting time-ordered reads, ranges, and consumer groups for messaging workloads
  4. D.a collection of unique members each ordered by an associated floating-point score, enabling fast range and rank queries
Reveal the answer + AI explanation — free account

3. Which statement is correct?

Junior
  1. A.String — an append-only log of entries with unique ids, supporting time-ordered reads, ranges, and consumer groups for messaging workloads
  2. B.String — an ordered sequence of entries implemented as a linked structure where pushes and pops at either end run in constant time
  3. C.String — a value type mapping field names to values, ideal for representing a single object with many attributes compactly
  4. D.String — the most basic Redis value type, a binary-safe sequence of bytes up to 512 MB holding text, numbers, or serialized objects
Reveal the answer + AI explanation — free account

4. What is List?

Junior
  1. A.the most basic Redis value type, a binary-safe sequence of bytes up to 512 MB holding text, numbers, or serialized objects
  2. B.a value type mapping field names to values, ideal for representing a single object with many attributes compactly
  3. C.an ordered sequence of entries implemented as a linked structure where pushes and pops at either end run in constant time
  4. D.a probabilistic structure that estimates the cardinality of a large set using roughly 12 KB regardless of element count, with about 0.81% standard error
Reveal the answer + AI explanation — free account

6. Which statement is correct?

Junior
  1. A.List — an extension of the string type letting you set, clear, and count individual bits by offset, perfect for compact boolean flags per id
  2. B.List — an ordered sequence of entries implemented as a linked structure where pushes and pops at either end run in constant time
  3. C.List — a collection of unique members each ordered by an associated floating-point score, enabling fast range and rank queries
  4. D.List — an append-only log of entries with unique ids, supporting time-ordered reads, ranges, and consumer groups for messaging workloads
Reveal the answer + AI explanation — free account

7. What is Hash?

Junior
  1. A.the most basic Redis value type, a binary-safe sequence of bytes up to 512 MB holding text, numbers, or serialized objects
  2. B.an extension of the string type letting you set, clear, and count individual bits by offset, perfect for compact boolean flags per id
  3. C.a value type mapping field names to values, ideal for representing a single object with many attributes compactly
  4. D.an ordered sequence of entries implemented as a linked structure where pushes and pops at either end run in constant time
Reveal the answer + AI explanation — free account

9. Which statement is correct?

Junior
  1. A.Hash — an ordered sequence of entries implemented as a linked structure where pushes and pops at either end run in constant time
  2. B.Hash — a probabilistic structure that estimates the cardinality of a large set using roughly 12 KB regardless of element count, with about 0.81% standard error
  3. C.Hash — a value type mapping field names to values, ideal for representing a single object with many attributes compactly
  4. D.Hash — an append-only log of entries with unique ids, supporting time-ordered reads, ranges, and consumer groups for messaging workloads
Reveal the answer + AI explanation — free account

10. What is Sorted set?

Mid
  1. A.a probabilistic structure that estimates the cardinality of a large set using roughly 12 KB regardless of element count, with about 0.81% standard error
  2. B.the most basic Redis value type, a binary-safe sequence of bytes up to 512 MB holding text, numbers, or serialized objects
  3. C.an ordered sequence of entries implemented as a linked structure where pushes and pops at either end run in constant time
  4. D.a collection of unique members each ordered by an associated floating-point score, enabling fast range and rank queries
Reveal the answer + AI explanation — free account

12. Which statement is correct?

Mid
  1. A.Sorted set — an append-only log of entries with unique ids, supporting time-ordered reads, ranges, and consumer groups for messaging workloads
  2. B.Sorted set — a collection of unique members each ordered by an associated floating-point score, enabling fast range and rank queries
  3. C.Sorted set — an extension of the string type letting you set, clear, and count individual bits by offset, perfect for compact boolean flags per id
  4. D.Sorted set — a probabilistic structure that estimates the cardinality of a large set using roughly 12 KB regardless of element count, with about 0.81% standard error
Reveal the answer + AI explanation — free account

13. What is Bitmap?

Mid
  1. A.a probabilistic structure that estimates the cardinality of a large set using roughly 12 KB regardless of element count, with about 0.81% standard error
  2. B.the most basic Redis value type, a binary-safe sequence of bytes up to 512 MB holding text, numbers, or serialized objects
  3. C.an append-only log of entries with unique ids, supporting time-ordered reads, ranges, and consumer groups for messaging workloads
  4. D.an extension of the string type letting you set, clear, and count individual bits by offset, perfect for compact boolean flags per id
Reveal the answer + AI explanation — free account

15. Which statement is correct?

Mid
  1. A.Bitmap — an ordered sequence of entries implemented as a linked structure where pushes and pops at either end run in constant time
  2. B.Bitmap — an extension of the string type letting you set, clear, and count individual bits by offset, perfect for compact boolean flags per id
  3. C.Bitmap — a collection of unique members each ordered by an associated floating-point score, enabling fast range and rank queries
  4. D.Bitmap — a value type mapping field names to values, ideal for representing a single object with many attributes compactly
Reveal the answer + AI explanation — free account

16. What is HyperLogLog?

Senior
  1. A.the most basic Redis value type, a binary-safe sequence of bytes up to 512 MB holding text, numbers, or serialized objects
  2. B.a probabilistic structure that estimates the cardinality of a large set using roughly 12 KB regardless of element count, with about 0.81% standard error
  3. C.an append-only log of entries with unique ids, supporting time-ordered reads, ranges, and consumer groups for messaging workloads
  4. D.an ordered sequence of entries implemented as a linked structure where pushes and pops at either end run in constant time
Reveal the answer + AI explanation — free account

17. Which term means: "a probabilistic structure that estimates the cardinality of a large set using roughly 12 KB regardless of element count, with about 0.81% standard error"?

Senior
  1. A.String
  2. B.HyperLogLog
  3. C.Stream
  4. D.Sorted set
Reveal the answer + AI explanation — free account

18. Which statement is correct?

Senior
  1. A.HyperLogLog — a collection of unique members each ordered by an associated floating-point score, enabling fast range and rank queries
  2. B.HyperLogLog — a value type mapping field names to values, ideal for representing a single object with many attributes compactly
  3. C.HyperLogLog — the most basic Redis value type, a binary-safe sequence of bytes up to 512 MB holding text, numbers, or serialized objects
  4. D.HyperLogLog — a probabilistic structure that estimates the cardinality of a large set using roughly 12 KB regardless of element count, with about 0.81% standard error
Reveal the answer + AI explanation — free account

19. What is Stream?

Senior
  1. A.an extension of the string type letting you set, clear, and count individual bits by offset, perfect for compact boolean flags per id
  2. B.an ordered sequence of entries implemented as a linked structure where pushes and pops at either end run in constant time
  3. C.a probabilistic structure that estimates the cardinality of a large set using roughly 12 KB regardless of element count, with about 0.81% standard error
  4. D.an append-only log of entries with unique ids, supporting time-ordered reads, ranges, and consumer groups for messaging workloads
Reveal the answer + AI explanation — free account

21. Which statement is correct?

Senior
  1. A.Stream — a value type mapping field names to values, ideal for representing a single object with many attributes compactly
  2. B.Stream — a probabilistic structure that estimates the cardinality of a large set using roughly 12 KB regardless of element count, with about 0.81% standard error
  3. C.Stream — the most basic Redis value type, a binary-safe sequence of bytes up to 512 MB holding text, numbers, or serialized objects
  4. D.Stream — an append-only log of entries with unique ids, supporting time-ordered reads, ranges, and consumer groups for messaging workloads
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 Structures free