Utility & Composite Types interview questions

18 real Utility & Composite Types questions from the TypeScript 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 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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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