Interfaces & Types interview questions

18 Interfaces & Types questions from the TypeScript 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 interface?

Junior
  1. A.interfaces merge across declarations and are object-focused; type aliases don't merge but can express unions and primitives
  2. B.a named contract describing the shape of an object, open to declaration merging
  3. C.a property that can be set when the object is created but not reassigned afterward
  4. D.a property marked with ? that may be absent from the object

Answer + AI explanation with Pro

2. Which term means: "a named contract describing the shape of an object, open to declaration merging"?

Junior
  1. A.optional property
  2. B.interface
  3. C.type alias
  4. D.readonly property

Answer + AI explanation with Pro

3. Which statement is correct?

Junior
  1. A.interface — a property that can be set when the object is created but not reassigned afterward
  2. B.interface — a named contract describing the shape of an object, open to declaration merging
  3. C.interface — a [key: string]: T declaration describing objects with arbitrary keys mapping to a value type
  4. D.interface — interfaces merge across declarations and are object-focused; type aliases don't merge but can express unions and primitives

Answer + AI explanation with Pro

4. What is type alias?

Junior
  1. A.a [key: string]: T declaration describing objects with arbitrary keys mapping to a value type
  2. B.a named contract describing the shape of an object, open to declaration merging
  3. C.a property that can be set when the object is created but not reassigned afterward
  4. D.a name for any type — unions, primitives, tuples — that cannot be reopened or merged

Answer + AI explanation with Pro

5. Which term means: "a name for any type — unions, primitives, tuples — that cannot be reopened or merged"?

Junior
  1. A.type alias
  2. B.readonly property
  3. C.interface vs type alias
  4. D.optional property

Answer + AI explanation with Pro

6. Which statement is correct?

Junior
  1. A.type alias — a property marked with ? that may be absent from the object
  2. B.type alias — a [key: string]: T declaration describing objects with arbitrary keys mapping to a value type
  3. C.type alias — a named contract describing the shape of an object, open to declaration merging
  4. D.type alias — a name for any type — unions, primitives, tuples — that cannot be reopened or merged

Answer + AI explanation with Pro

7. What is interface vs type alias?

Mid
  1. A.a name for any type — unions, primitives, tuples — that cannot be reopened or merged
  2. B.a named contract describing the shape of an object, open to declaration merging
  3. C.a [key: string]: T declaration describing objects with arbitrary keys mapping to a value type
  4. D.interfaces merge across declarations and are object-focused; type aliases don't merge but can express unions and primitives

Answer + AI explanation with Pro

8. Which term means: "interfaces merge across declarations and are object-focused; type aliases don't merge but can express unions and primitives"?

Mid
  1. A.optional property
  2. B.index signature
  3. C.readonly property
  4. D.interface vs type alias

Answer + AI explanation with Pro

9. Which statement is correct?

Mid
  1. A.interface vs type alias — a property marked with ? that may be absent from the object
  2. B.interface vs type alias — a named contract describing the shape of an object, open to declaration merging
  3. C.interface vs type alias — interfaces merge across declarations and are object-focused; type aliases don't merge but can express unions and primitives
  4. D.interface vs type alias — a property that can be set when the object is created but not reassigned afterward

Answer + AI explanation with Pro

10. What is optional property?

Junior
  1. A.a property that can be set when the object is created but not reassigned afterward
  2. B.a [key: string]: T declaration describing objects with arbitrary keys mapping to a value type
  3. C.a named contract describing the shape of an object, open to declaration merging
  4. D.a property marked with ? that may be absent from the object

Answer + AI explanation with Pro

11. Which term means: "a property marked with ? that may be absent from the object"?

Junior
  1. A.optional property
  2. B.interface vs type alias
  3. C.readonly property
  4. D.interface

Answer + AI explanation with Pro

12. Which statement is correct?

Junior
  1. A.optional property — a property marked with ? that may be absent from the object
  2. B.optional property — interfaces merge across declarations and are object-focused; type aliases don't merge but can express unions and primitives
  3. C.optional property — a property that can be set when the object is created but not reassigned afterward
  4. D.optional property — a named contract describing the shape of an object, open to declaration merging

Answer + AI explanation with Pro

13. What is readonly property?

Junior
  1. A.a property that can be set when the object is created but not reassigned afterward
  2. B.a named contract describing the shape of an object, open to declaration merging
  3. C.interfaces merge across declarations and are object-focused; type aliases don't merge but can express unions and primitives
  4. D.a property marked with ? that may be absent from the object

Answer + AI explanation with Pro

14. Which term means: "a property that can be set when the object is created but not reassigned afterward"?

Junior
  1. A.readonly property
  2. B.interface vs type alias
  3. C.interface
  4. D.optional property

Answer + AI explanation with Pro

15. Which statement is correct?

Junior
  1. A.readonly property — interfaces merge across declarations and are object-focused; type aliases don't merge but can express unions and primitives
  2. B.readonly property — a property that can be set when the object is created but not reassigned afterward
  3. C.readonly property — a [key: string]: T declaration describing objects with arbitrary keys mapping to a value type
  4. D.readonly property — a name for any type — unions, primitives, tuples — that cannot be reopened or merged

Answer + AI explanation with Pro

16. What is index signature?

Mid
  1. A.a [key: string]: T declaration describing objects with arbitrary keys mapping to a value type
  2. B.a name for any type — unions, primitives, tuples — that cannot be reopened or merged
  3. C.interfaces merge across declarations and are object-focused; type aliases don't merge but can express unions and primitives
  4. D.a property marked with ? that may be absent from the object

Answer + AI explanation with Pro

17. Which term means: "a [key: string]: T declaration describing objects with arbitrary keys mapping to a value type"?

Mid
  1. A.optional property
  2. B.index signature
  3. C.interface vs type alias
  4. D.type alias

Answer + AI explanation with Pro

18. Which statement is correct?

Mid
  1. A.index signature — a property marked with ? that may be absent from the object
  2. B.index signature — a [key: string]: T declaration describing objects with arbitrary keys mapping to a value type
  3. C.index signature — a name for any type — unions, primitives, tuples — that cannot be reopened or merged
  4. D.index signature — interfaces merge across declarations and are object-focused; type aliases don't merge but can express unions and primitives

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 Interfaces & Types 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