Utility & Composite Types interview questions

18 Utility & Composite 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 Partial<T>?

Mid
  1. A.A & B — a value that simultaneously has all members of A and B
  2. B.a utility type describing an object whose keys are K and whose values are V
  3. C.a utility type that makes every property of T optional
  4. D.a utility type that removes the properties K from T

Answer + AI explanation with Pro

2. Which term means: "a utility type that makes every property of T optional"?

Mid
  1. A.Partial<T>
  2. B.Pick<T,K>
  3. C.Intersection type
  4. D.Union type

Answer + AI explanation with Pro

3. Which statement is correct?

Mid
  1. A.Partial<T> — a utility type describing an object whose keys are K and whose values are V
  2. B.Partial<T> — A & B — a value that simultaneously has all members of A and B
  3. C.Partial<T> — a utility type that makes every property of T optional
  4. D.Partial<T> — a utility type that selects a subset K of the properties of T

Answer + AI explanation with Pro

4. What is Pick<T,K>?

Mid
  1. A.a utility type describing an object whose keys are K and whose values are V
  2. B.a utility type that selects a subset K of the properties of T
  3. C.a utility type that makes every property of T optional
  4. D.a utility type that removes the properties K from T

Answer + AI explanation with Pro

5. Which term means: "a utility type that selects a subset K of the properties of T"?

Mid
  1. A.Union type
  2. B.Omit<T,K>
  3. C.Pick<T,K>
  4. D.Record<K,V>

Answer + AI explanation with Pro

6. Which statement is correct?

Mid
  1. A.Pick<T,K> — a utility type that makes every property of T optional
  2. B.Pick<T,K> — a utility type that removes the properties K from T
  3. C.Pick<T,K> — A & B — a value that simultaneously has all members of A and B
  4. D.Pick<T,K> — a utility type that selects a subset K of the properties of T

Answer + AI explanation with Pro

7. What is Omit<T,K>?

Mid
  1. A.a utility type that selects a subset K of the properties of T
  2. B.a utility type describing an object whose keys are K and whose values are V
  3. C.a utility type that makes every property of T optional
  4. D.a utility type that removes the properties K from T

Answer + AI explanation with Pro

8. Which term means: "a utility type that removes the properties K from T"?

Mid
  1. A.Intersection type
  2. B.Pick<T,K>
  3. C.Omit<T,K>
  4. D.Record<K,V>

Answer + AI explanation with Pro

9. Which statement is correct?

Mid
  1. A.Omit<T,K> — A | B — a value that may be any one of several types
  2. B.Omit<T,K> — a utility type describing an object whose keys are K and whose values are V
  3. C.Omit<T,K> — a utility type that removes the properties K from T
  4. D.Omit<T,K> — A & B — a value that simultaneously has all members of A and B

Answer + AI explanation with Pro

10. What is Record<K,V>?

Mid
  1. A.A | B — a value that may be any one of several types
  2. B.a utility type that makes every property of T optional
  3. C.a utility type describing an object whose keys are K and whose values are V
  4. D.a utility type that selects a subset K of the properties of T

Answer + AI explanation with Pro

11. Which term means: "a utility type describing an object whose keys are K and whose values are V"?

Mid
  1. A.Union type
  2. B.Record<K,V>
  3. C.Intersection type
  4. D.Omit<T,K>

Answer + AI explanation with Pro

12. Which statement is correct?

Mid
  1. A.Record<K,V> — a utility type that makes every property of T optional
  2. B.Record<K,V> — a utility type that selects a subset K of the properties of T
  3. C.Record<K,V> — a utility type that removes the properties K from T
  4. D.Record<K,V> — a utility type describing an object whose keys are K and whose values are V

Answer + AI explanation with Pro

13. What is Union type?

Junior
  1. A.a utility type that makes every property of T optional
  2. B.A | B — a value that may be any one of several types
  3. C.a utility type describing an object whose keys are K and whose values are V
  4. D.a utility type that removes the properties K from T

Answer + AI explanation with Pro

14. Which term means: "A | B — a value that may be any one of several types"?

Junior
  1. A.Union type
  2. B.Omit<T,K>
  3. C.Pick<T,K>
  4. D.Record<K,V>

Answer + AI explanation with Pro

15. Which statement is correct?

Junior
  1. A.Union type — A & B — a value that simultaneously has all members of A and B
  2. B.Union type — a utility type that selects a subset K of the properties of T
  3. C.Union type — A | B — a value that may be any one of several types
  4. D.Union type — a utility type describing an object whose keys are K and whose values are V

Answer + AI explanation with Pro

16. What is Intersection type?

Mid
  1. A.a utility type that selects a subset K of the properties of T
  2. B.A | B — a value that may be any one of several types
  3. C.a utility type that makes every property of T optional
  4. D.A & B — a value that simultaneously has all members of A and B

Answer + AI explanation with Pro

17. Which term means: "A & B — a value that simultaneously has all members of A and B"?

Mid
  1. A.Intersection type
  2. B.Omit<T,K>
  3. C.Record<K,V>
  4. D.Pick<T,K>

Answer + AI explanation with Pro

18. Which statement is correct?

Mid
  1. A.Intersection type — a utility type describing an object whose keys are K and whose values are V
  2. B.Intersection type — A & B — a value that simultaneously has all members of A and B
  3. C.Intersection type — A | B — a value that may be any one of several types
  4. D.Intersection type — a utility type that selects a subset K of the properties of T

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 Utility & Composite 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