How to use the TypeScript MCQ Quiz
- 1. Choose the length10 random TypeScript questions, or all 25. Untick shuffle for a fixed order.
- 2. AnswerPick an option and see straight away whether it's right, with a one-line reason.
- 3. See your scoreFinish to get your score and a review of every question with the correct answer.
What the quiz covers
TypeScript is now standard in React, Angular and Node projects, and interviews test whether you understand its type system rather than just its syntax. The 25 questions are grouped into 10 areas, shown above each question: Basics, Types, Utility types, Advanced, Generics, Narrowing, Operators, Config, Tooling, Classes.
A sample question explained
"Are TypeScript types checked at runtime?" The answer is No, they're erased; only the compiler checks them. Validate external data at runtime yourself (e.g. with zod). That's why validating API responses at runtime still matters in TypeScript projects.
More questions you'll meet
A few of the other TypeScript questions in the bank:
- any vs unknown?
- What does the ? in { name?: string } mean?
- What does Partial<User> produce?
- What does keyof User give?
- What does <T extends { id: number }> mean?
- What does the ! in user!.name do?
- Which tsconfig option turns on all strict type-checking options?
Study tips
- Paste tricky questions into the TypeScript Playground and hover over variables to see inferred types.
- Turn on strict in your own projects; many questions assume it.
- Aim for at least 20 out of 25 on two separate attempts before you treat TypeScript as revised; one lucky score can hide gaps.
Questions and options are shuffled on each attempt, so a retake is a fresh test. The TypeScript questions were written by Uncodemy for practice; they aren't copied from any exam or company test.
Frequently asked questions
Which TypeScript version?
TypeScript 5.x. Most answers also hold for 4.x.
Do I need to know JavaScript first?
Yes. TypeScript adds types on top of JavaScript.
Is the TypeScript MCQ quiz free?
Yes. Every question in the TypeScript MCQ quiz can be answered without signing up. When you finish your first round, we ask once for your name and WhatsApp number to show your score; after that the TypeScript MCQ quiz and every other Uncodemy tool open straight away.