Sheet 09 · QuizzesSurveyed 2026

TypeScript Advanced: Types, Generics, Utility Types

20 QuestionsAdvancedPublished:

TypeScript Advanced: Types, Generics, Utility Types

Up to 20 questions, shuffled on every run

Quiz Configuration
Enterto start

Welcome to the TypeScript Advanced Quiz! Test your knowledge on advanced types, generics, utility types, and more. Each question has a hint and explanations for all options. Good luck!

Answer key and explanations20 questions

The quiz above draws 20 questions at random from these 30, so a second attempt will not be the same run. Everything in the pool is listed here.

  1. What is an interface in TypeScript?

    AnswerA syntax to define the shape of an object, including properties and methods

  2. What is a union type?

    AnswerA type allowing a variable to hold values from one of several distinct types

  3. What is an intersection type?

    AnswerA type that combines multiple existing types into one, requiring all properties

  4. What is a generic in TypeScript?

    AnswerA way to create reusable components that work with a variety of types

  5. What is a generic constraint?

    AnswerA rule using the "extends" keyword to limit the types a generic can accept

  6. What is a conditional type?

    AnswerA type that selects one of two types based on a ternary-like condition

  7. What is a mapped type?

    AnswerA way to create a new type by iterating through the keys of an existing type

  8. What is the Partial utility type?

    AnswerA utility that constructs a type with all properties of T set to optional

  9. What is the Readonly utility type?

    AnswerA utility that constructs a type with all properties of T set to readonly

  10. What is the Pick utility type?

    AnswerA utility that creates a type by selecting a specific set of keys from T

  11. What is the Omit utility type?

    AnswerA utility that creates a type by picking all properties from T and then removing K

  12. What is the Record utility type?

    AnswerA utility used to construct an object type with specific keys and a specific value type

  13. What is the typeof operator in TypeScript?

    AnswerAn operator used in a type context to extract the type of a variable or property

  14. What is the keyof operator in TypeScript?

    AnswerAn operator that produces a union of string or numeric literal keys from an object

  15. What is the Exclude utility type?

    AnswerA utility that removes types from a union that are assignable to a second type

  16. What is the Extract utility type?

    AnswerA utility that selects members of a union that are assignable to a second type

  17. What is the NonNullable utility type?

    AnswerA utility that constructs a type by excluding null and undefined from T

  18. What is the Parameters utility type?

    AnswerA utility that extracts the types of arguments from a function type as a tuple

  19. What is the ReturnType utility type?

    AnswerA utility that extracts the return type of a function type T

  20. What is the InstanceType utility type?

    AnswerA utility that extracts the instance type from a constructor function type

  21. What is the infer keyword in TypeScript?

    AnswerA keyword used within a conditional type to declare a type variable to be extracted

  22. What is a template literal type?

    AnswerA type that uses template literal syntax to build new string types

  23. What is a const assertion (as const)?

    AnswerA suffix that tells the compiler to treat a literal as its most specific type

  24. What is the satisfies operator in TypeScript?

    AnswerAn operator used to validate a value matches a type while preserving its narrowest type

  25. What are recursive types in TypeScript?

    AnswerTypes that refer to themselves in their own definition to describe nested structures

  26. What is a discriminated union?

    AnswerA union of types that share a common literal property used for narrowing

  27. What is a user-defined type guard?

    AnswerA function that uses a type predicate to narrow a type within a conditional block

  28. What is declaration merging in TypeScript?

    AnswerThe ability for the compiler to join multiple declarations with the same name

  29. What is module augmentation?

    AnswerA way to add new type definitions to an existing external module

  30. What is the Awaited utility type?

    AnswerA utility that recursively unwraps a type to retrieve the non-promise result

Was this useful?

You might also enjoy

More posts on similar topics

Rust: Ownership, Borrowing & Memory Safety

Rust: Ownership, Borrowing & Memory Safety

This quiz tests your grip on the parts of Rust that trip up newcomers and pay off later: ownership and moves, borrowing and lifetimes, traits and generics, pattern matching, error handling with `Resul

Java: Core Language & JVM Fundamentals

Java: Core Language & JVM Fundamentals

Java has quietly powered banks, Android, and countless backend systems for decades, and the language keeps evolving with records, sealed classes, and virtual threads. This quiz walks through the core

WebAssembly (WASM): Performance & Interoperability

WebAssembly (WASM): Performance & Interoperability

Welcome to the WebAssembly (WASM) Quiz! This quiz will test your knowledge of WebAssembly concepts, performance benefits, and practical use cases. Each question is designed to challenge your understan

TypeScript: Typed JavaScript Fundamentals

TypeScript: Typed JavaScript Fundamentals

Welcome to the TypeScript Basics Quiz! This quiz covers fundamental TypeScript concepts, static typing, and type-safe programming best practices. Each question is multiple-choice, and you'll find hint

JavaScript: Language Fundamentals & Modern Features

JavaScript: Language Fundamentals & Modern Features

Welcome to the JavaScript Basics Quiz! This quiz tests your understanding of fundamental JavaScript concepts, syntax, and modern programming best practices. Each question is multiple-choice, and you'l

Advanced Frontend Patterns: State Management & Performance

Advanced Frontend Patterns: State Management & Performance

Master advanced frontend architecture: state management (Redux, Zustand), performance optimization, code splitting, lazy loading, and responsive design patterns.

6 related posts