Skip to content
QuizMaster
LearnQuizzesPracticeDaily ChallengeBlogAbout
Generate Quiz
LearnQuizzesPracticeDaily ChallengeBlogAboutPrivacy PolicyTermsContact
Generate Quiz
  1. Home/
  2. Quizzes/
  3. TypeScript/
  4. Generics, Utility Types & Narrowing
TypeScriptIntermediateTypeScript 5.x, strict mode

Generics, Utility Types & Narrowing

Generics and inference, utility types, discriminated unions, exhaustive checks and why compile-time types do not validate runtime data.

Ready to start?

  • 7 questions
  • ~5 mins
Choose a mode

Answer order is shuffled each attempt. Your results are saved only in this browser.

What this quiz covers

Generics, discriminated unions, const assertions and runtime safety.

  • Generics
  • Utility types
  • Enums vs unions
  • const assertions
  • Discriminated unions
  • Runtime safety
  • never

TypeScript learning roadmap

See where this quiz fits from beginner to expert.

How this works

  • Practice or exam mode

    Practice mode explains each answer straight away. Exam mode holds all answers until you finish, then shows a full review.

  • Shuffled answer order

    Options are shuffled on every attempt, so you learn the idea rather than the position of the right letter.

  • Timer, flags and skips

    A timer runs while you play. Flag questions to revisit them, or skip and come back from the question navigator.

  • Saved on your device

    Scores, streaks and topic accuracy are stored in your browser only. There is no account.

Keep practising

More TypeScript quizzes

  • TypeScript
    Beginner

    TypeScript Basics

    Static types, unions, interfaces and strictness

    Compile-time vs runtimeType annotationsunknown vs any
    7 Qs~5mStart

Related technologies

  • JavaScript
    Beginner

    JavaScript Fundamentals

    Types, coercion and equality

    TypesEqualityVariables
    7 Qs~5mStart
  • React
    Basic

    React Core Concepts

    State, props, keys and rendering

    StateListsProps
    7 Qs~5mStart

All TypeScript quizzes →

QuizMaster

Learn. Practice. Challenge yourself. Improve. Free technology quizzes and interactive challenges for students, with progress saved privately in your browser.

Product

  • Learn
  • Quizzes
  • Practice
  • Technologies
  • Daily Challenge
  • PDF to Quiz
  • My Progress

Top Technologies

  • Python
  • JavaScript
  • React
  • SQL
  • Docker
  • All Technologies →

Company

  • About
  • Blog
  • FAQ
  • Contact

Legal

  • Privacy Policy
  • Terms
  • Cookie Policy
  • Disclaimer

© 2026 QuizMaster. All rights reserved.