Chapter quiz · Advanced Types

Test what you learned.

8 questions on Advanced Types. Pass 70% to clear the chapter.

← Review chapter lessons

Quiz

TS Advanced Types — Chapter Quiz

Eight questions on keyof, mapped, conditional, and utility types.

0/ 9
  1. Question 1
    1

    Given type T = { a: string; b: number }, what is keyof T?

  2. Question 2
    2

    What is the type of Result?

    type T = { a: string; b: number };
    type Result = T["b"];
    
  3. Question 3
    3

    Which utility type makes every field optional?

  4. Question 4
    4

    Which utility selects a subset of keys?

  5. Question 5
    5

    A conditional type T extends U ? X : Y distributes over unions when T is a naked type parameter.

  6. Question 6
    6

    The keyword that extracts a type from a position inside a conditional is ___.

  7. Question 7
    7

    What does this template literal type produce?

  8. Question 8
    8

    Which utility types extract pieces of a function signature?

    Select all that apply.

Pick an answer — instant feedback as you go.