Data Structures interview questions

21 Data Structures questions from the Redis bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.

Free to start: the 2-minute IT readiness check — six questions and a result.

Take the free IT readiness check

or take a mock interview set up for this area

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

Answer + AI explanation with Pro

2. Which term means: "the most basic Redis value type, a binary-safe sequence of bytes up to 512 MB holding text, numbers, or serialized objects"?

Junior
  1. A.Stream
  2. B.List
  3. C.String
  4. D.Hash

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

5. Which term means: "an ordered sequence of entries implemented as a linked structure where pushes and pops at either end run in constant time"?

Junior
  1. A.Stream
  2. B.Bitmap
  3. C.List
  4. D.Sorted set

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

8. Which term means: "a value type mapping field names to values, ideal for representing a single object with many attributes compactly"?

Junior
  1. A.Hash
  2. B.Bitmap
  3. C.HyperLogLog
  4. D.Sorted set

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

11. Which term means: "a collection of unique members each ordered by an associated floating-point score, enabling fast range and rank queries"?

Mid
  1. A.Hash
  2. B.Sorted set
  3. C.String
  4. D.HyperLogLog

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

14. Which term means: "an extension of the string type letting you set, clear, and count individual bits by offset, perfect for compact boolean flags per id"?

Mid
  1. A.Hash
  2. B.Bitmap
  3. C.String
  4. D.HyperLogLog

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

20. Which term means: "an append-only log of entries with unique ids, supporting time-ordered reads, ranges, and consumer groups for messaging workloads"?

Senior
  1. A.Hash
  2. B.String
  3. C.HyperLogLog
  4. D.Stream

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

Free to start

Start with a free readiness check

Sign up free for the 2-minute IT readiness check and a scored result. Answers, explanations and the AI tutor on every Data Structures question come with Pro.

Take the free IT readiness check

or take a mock interview set up for this area

24,000+ questions & coding problemsSoftware & IT16,274 questionsGovernment jobs26 examsAptitudenew questions every timeAI practice interviewwith feedback65 topics to practiseMechanical1,149 questionsGATE ME9 papersEngineering Mathematics381 questions2-minute checkfreeDSA Problems1,422Civil1,005 questionsGATE CE9 papersCS Fundamentals1,209 questionsYour scores6 skillsSystem Design25Electrical / EEE1,047 questionsGATE EE9 papersRun your codeC++ · Java · PythonLow-Level Design144Electronics & Comm.975 questionsGATE EC9 papersAI help on every questionFull-Stack6,282Chemical1,005 questionsGATE CH9 papersAI whiteboardsystem designWork abroadEurope · remote · transfersESE ME1 paperGATE practice papers2019–2026ESE CE1 paperDate alertsbefore the last dateESE EE1 paperBehavioural courseHR round practiceESE ET1 paperResume optimizerProSSC JE ME1 paperApplication trackerSSC JE CE1 paperCompany-wise prepSSC JE EE1 paperRole roadmapsRRB JE1 subjectPriced in ₹UPI · cardsISRO SC1 paperGATE CS9 papersIBPS SO IT1 paperUGC NET CS1 paperSSC CGL26 papersIBPS PO26 papersRRB NTPC26 papersSSC CHSL26 papersIBPS Clerk26 papersSBI Clerk26 papersRRB Group D26 papersSSC CPO26 papersSSC GD26 papers