TypeScript

TypeScript Quizzes

Improve your TypeScript skills with our quiz and test questions. Practice writing code with types, interfaces, and working with JavaScript projects. These quizzes help your understanding of TypeScript basics and will prepare you for building large web applications.

19 quizzes
690 questions

About TypeScript Quiz

Each TypeScript quiz consists of multiple questions, each with three to four possible answers. Only one answer is correct for each question. Select the answer you believe is correct, then click the "Check My Answers" button to see your results.

If you answer at least 75% of the questions correctly, you pass the quiz! This indicates you have a solid understanding of TypeScript concepts and are ready to advance to more challenging topics.

After submitting your quiz, you'll receive immediate feedback with detailed explanations for each question. This helps you understand not just what the correct answer is, but why it's correct—reinforcing your learning and helping you master TypeScript.

Quick Tips

  • Read each question carefully before selecting your answer
  • Review the code examples when provided
  • You can retake quizzes as many times as you want
  • Sign in to save your progress and track your performance
How to Use Quizibadu

Available Quizzes

1
40 questions

Introduction and Overview

Test your foundational knowledge with 40 questions on TypeScript—covering its purpose, differences from JavaScript, benefits, compilation, and real-world applications.

2
30 questions

Installation and Configuration

A 30-question TypeScript quiz covering installation, project setup, tsconfig.json fundamentals, compiler options, integrating build tools, project organization patterns, and how to run and compile TypeScript effectively.

3
40 questions

Basic Types and Type Annotations

A 40-question TypeScript quiz covering primitive types, type inference, explicit annotations, arrays, tuples, object types, unions, intersections, and literal types.

4
35 questions

Variables and Constants

A 35-question TypeScript & JavaScript quiz covering variable declarations, scope rules, hoisting, reassignment behavior, constants, immutability concepts, shadowing, and best practices for naming variables.

5
30 questions

Functions and Parameters

A 30-question TypeScript quiz covering function declarations, expressions, parameter types, optional and default parameters, rest arguments, and return type handling.

6
40 questions

Interfaces and Type Aliases

A 40-question TypeScript quiz covering interfaces, type aliases, structural typing, merging behavior, call signatures, index signatures, intersections, unions, and interface augmentation.

7
40 questions

Classes and Objects

A 40-question TypeScript quiz focusing on classes, constructors, access modifiers, readonly fields, methods, inheritance, abstract classes, and object-based typing.

8
40 questions

Enums and Tuples

A 40-question TypeScript quiz covering numeric enums, string enums, const enums, reverse mapping, tuple types, readonly tuples, labeled tuples, and practical usage patterns.

9
40 questions

Union and Intersection Types

A 40-question TypeScript quiz covering union types, narrowing, discriminated unions, intersections, type composition, compatibility, and real-world modelling.

10
35 questions

Literal Types and Type Inference

A 35-question TypeScript quiz about literal types, inference behavior, widening rules, const contexts, and practical modelling using specific literal values.

11
40 questions

Generics

A 40-question TypeScript quiz exploring generic type parameters, constraints, generic functions, interfaces, classes, defaults, inference, and advanced patterns.

12
40 questions

Type Assertions and Type Guards

A 40-question TypeScript quiz exploring type assertions, narrowing with guards, typeof checks, instanceof checks, custom predicate guards, discriminated unions, and safe narrowing patterns.

13
30 questions

Optional and Default Parameters

A 30-question TypeScript quiz exploring optional parameters, default parameter values, undefined handling, rest parameters, function declaration rules, and parameter type inference.

14
30 questions

Readonly and Immutability

A 30-question TypeScript quiz covering readonly properties, immutable arrays and tuples, const behavior, structural immutability, shallow freezing, and readonly utility types.

15
30 questions

Modules and Namespaces

A 30-question TypeScript quiz covering ES module imports, exports, module resolution rules, namespaces, namespace merging, ambient modules, and organizational patterns.

16
35 questions

Decorators

A 35-question TypeScript quiz covering decorator fundamentals, class decorators, method and property decorators, decorator factories, metadata reflection, and execution order.

17
35 questions

Function Overloads

A 35-question TypeScript quiz covering overload signatures, implementation signatures, narrowing behavior, return types, and best practices for overloaded functions.

18
40 questions

Abstract Classes and Access Modifiers

A 40-question TypeScript quiz covering abstract classes, abstract methods, public/private/protected access, readonly properties, inheritance behavior, and visibility constraints.

19
40 questions

Mixins and Composition

A 40-question TypeScript quiz covering mixin patterns, composition techniques, mixin constraints, function-based class factories, multiple mixin stacking, and practical patterns.

YOUR PROGRESS

0%
Complete
Completed
0/0
Not Passed
0/0
Not Started
0/0
Sign in to view Progress