Search test library by skills or roles
⌘ K

TypeScript Online Test

The TypeScript test uses scenario-based MCQ questions and code-tracing questions to evaluate a candidate's understanding of Typescript concepts like Types, ES6 Support, OOP (Classes, Modules, Interfaces) and their ability to write asynchronous code with async/await. Along with TypeScript, the test has MCQ questions to evaluate JavaScript fundamentals and coding questions to evaluate hands-on coding skills.

Get started for free
Preview questions

Screen candidates with a 45 mins test

Test duration:  45 mins
Difficulty level:  Moderate
Availability:  Ready to use
Questions:
  • 5 JavaScript MCQs
  • 5 TypeScript MCQs
  • 1 JavaScript Coding Question
Covered skills:
JavaScript fundamentals
Understanding of DOM and web scripting
Typescript basics (Types; ES6)
Creating objects using classes
Reusing Objects through Inheritance
Using different access modifiers
Encapsulating classes/objects
Asynchronous development with Async/Await
Usage of TypeScript with webpack
Exception handling
Get started for free
Preview questions

Use Adaface tests trusted by recruitment teams globally

Adaface is used by 1500+ businesses in 80 countries.

Adaface skill assessments measure on-the-job skills of candidates, providing employers with an accurate tool for screening potential hires.

Amazon Morgan Stanley Vodafone United Nations HCL PayPal Bosch WeWork Optimum Solutions Deloitte NCS Sokrati J&T Express Capegemini

Use the TypeScript Test to shortlist qualified candidates

The TypeScript Online Test helps recruiters and hiring managers identify qualified candidates from a pool of resumes, and helps in taking objective hiring decisions. It reduces the administrative overhead of interviewing too many candidates and saves time by filtering out unqualified candidates at the first step of the hiring process.

The test screens for the following skills that hiring managers look for in candidates:

  • Understanding and usage of basic JavaScript syntax and functions
  • Knowledge of the DOM and ability to manipulate web elements
  • Typescript fundamentals, including understanding types and ES6 features
  • Creation of objects using classes
  • Understanding and implementation of inheritance
  • Ability to use different access modifiers
  • Knowledge of encapsulation of classes and objects
  • Proficiency in asynchronous development with Async/Await
  • Experience using TypeScript with webpack
  • Efficient handling of exceptions and errors
Get started for free
Preview questions

Screen candidates with the highest quality questions

We have a very high focus on the quality of questions that test for on-the-job skills. Every question is non-googleable and we have a very high bar for the level of subject matter experts we onboard to create these questions. We have crawlers to check if any of the questions are leaked online. If/ when a question gets leaked, we get an alert. We change the question for you & let you know.

How we design questions

These are just a small sample from our library of 15,000+ questions. The actual questions on this TypeScript Online Test will be non-googleable.

🧐 Question

Medium

Alias
OOPs
Solve
What does the following TypeScript code print?
 image
 image

Medium

Truthiness
Narrowing
Solve
We wrote the following TypeScript function to work as global print function. The function needs to handle string input, an array of strings as input or null as an input. In case of string and array of strings, it needs to print them to console. For null input, the code should not print anything.
 image
The function is throwing an error when it is called with null - globalConsole(null). This is happening because typeof null is ‘object’ in JavaScript. Here are two modifications of the code to handle this case:
 image
 image
Pick the correct statements:

A: In the case of null input, globalConsole1 won’t produce any compiler errors like globalConsole
B: In the case of null input, globalConsole2 won’t produce any compiler errors like globalConsole
C: globalConsole1 will differ from globalConsole for an empty string
D: globalConsole2 will differ from globalConsole for an empty string

Hard

Types
Solve
Consider the following TypeScript code: 
 image
Which of the following statements are correct:

A: The typescript compiler confirms that toUpperCase exists on the a instance.
B: The typescript compiler states that the toUpperCase function does not exist on the b instance.
C: The typescript compiler confirms that the toUpperCase function exists on the b instance.
D: RectangleType is an array where the type of a fixed number of elements is known.
E: Variables r, g, b are immutable.
F: r, g, b would compile to same type signature

Medium

Async Await Promises
Promises
Async-Await
Solve
What will the following code output?
 image
A: 24 after 5 seconds and after another 5 seconds, another 24
B: 24 followed by another 24 immediately
C: 24 immediately and another 24 after 5 seconds
D: After 5 seconds, 24 and 24
E: Undefined
F: NaN
G: None of these

Medium

Bitcoin prices
Axios
Promises
Solve
Review the following JavaScript code and pick the correct options: 
 image
Assume that the API returns a successful 200 response code and a JSON object as the response body. What would the value of ‘a’ be after the code is executed?

Medium

My Module
Scope
Solve
What will the output of the following JavaScript code be?
 image
 image

Medium

Promise Resolve
Promises
Async-Await
Solve
What does the following code output? 
 image

Easy

Throw, Try, Async
Promises
Async-Await
Solve
What does the following JS code output?
 image

Easy

Registration Queue
Logic
Queues
Solve
We want to register students for the next semester. All students have a receipt which shows the amount pending for the previous semester. A positive amount (or zero) represents that the student has paid extra fees, and a negative amount represents that they have pending fees to be paid. The students are in a queue for the registration. We want to arrange the students in a way such that the students who have a positive amount on the receipt get registered first as compared to the students who have a negative amount. We are given a queue in the form of an array containing the pending amount.
For example, if the initial queue is [20, 70, -40, 30, -10], then the final queue will be [20, 70, 30, -40, -10]. Note that the sequence of students should not be changed while arranging them unless required to meet the condition.
⚠️⚠️⚠️ Note:
- The first line of the input is the length of the array. The second line contains all the elements of the array.
- The input is already parsed into an array of "strings" and passed to a function. You will need to convert string to integer/number type inside the function.
- You need to "print" the final result (not return it) to pass the test cases.

For the example discussed above, the input will be:
5
20 70 -40 30 -10

Your code needs to print the following to the standard output:
20 70 30 -40 -10

Medium

Visitors Count
Strings
Logic
Solve
A manager hires a staff member to keep a record of the number of men, women, and children visiting the museum daily. The staff will note W if any women visit, M for men, and C for children. You need to write code that takes the string that represents the visits and prints the count of men, woman and children. The sequencing should be in decreasing order. 
Example:

Input:
WWMMWWCCC

Expected Output: 
4W3C2M

Explanation: 
‘W’ has the highest count, then ‘C’, then ‘M’. 
⚠️⚠️⚠️ Note:
- The input is already parsed and passed to a function.
- You need to "print" the final result (not return it) to pass the test cases.
- If the input is- “MMW”, then the expected output is "2M1W" since there is no ‘C’.
- If any of them have the same count, the output should follow this order - M, W, C.
🧐 Question🔧 Skill

Medium

Alias
OOPs

2 mins

TypeScript
Solve

Medium

Truthiness
Narrowing

3 mins

TypeScript
Solve

Hard

Types

2 mins

TypeScript
Solve

Medium

Async Await Promises
Promises
Async-Await

2 mins

JavaScript
Solve

Medium

Bitcoin prices
Axios
Promises

2 mins

JavaScript
Solve

Medium

My Module
Scope

2 mins

JavaScript
Solve

Medium

Promise Resolve
Promises
Async-Await

2 mins

JavaScript
Solve

Easy

Throw, Try, Async
Promises
Async-Await

2 mins

JavaScript
Solve

Easy

Registration Queue
Logic
Queues

30 mins

Coding
Solve

Medium

Visitors Count
Strings
Logic

30 mins

Coding
Solve
🧐 Question🔧 Skill💪 Difficulty⌛ Time
Alias
OOPs
TypeScript
Medium2 mins
Solve
Truthiness
Narrowing
TypeScript
Medium3 mins
Solve
Types
TypeScript
Hard2 mins
Solve
Async Await Promises
Promises
Async-Await
JavaScript
Medium2 mins
Solve
Bitcoin prices
Axios
Promises
JavaScript
Medium2 mins
Solve
My Module
Scope
JavaScript
Medium2 mins
Solve
Promise Resolve
Promises
Async-Await
JavaScript
Medium2 mins
Solve
Throw, Try, Async
Promises
Async-Await
JavaScript
Easy2 mins
Solve
Registration Queue
Logic
Queues
Coding
Easy30 minsSolve
Visitors Count
Strings
Logic
Coding
Medium30 minsSolve

Test candidates on core TypeScript Hiring Test topics

JavaScript fundamentals: JavaScript fundamentals refer to the core concepts and principles of the JavaScript programming language. This includes understanding variables, data types, control flow, loops, functions, and more. Assessing this skill is important as it forms the foundation for working with TypeScript and building web applications.

Understanding of DOM and web scripting: An understanding of the Document Object Model (DOM) and web scripting involves knowing how to manipulate HTML elements and interact with web pages dynamically using JavaScript. This is crucial for developing interactive and responsive web applications. Testing this skill helps evaluate the candidate's ability to work with the DOM and perform web scripting tasks.

Typescript basics (Types; ES6): Typescript basics cover important concepts such as type annotations, type inference, and the use of ES6 features. Assessing this skill ensures that candidates have a solid understanding of TypeScript syntax and can leverage its features to write type-safe and modern JavaScript code.

Creating objects using classes: Creating objects using classes is an essential skill as it allows for code organization and the creation of reusable, structured objects in TypeScript. Evaluating this skill helps determine the candidate's proficiency in using classes to define and instantiate objects, enabling better code maintainability and extensibility.

Reusing Objects through Inheritance: Reusing objects through inheritance is a key aspect of object-oriented programming in TypeScript. This skill involves understanding how to derive new classes from existing ones and inherit their properties and methods. Testing this skill ensures that candidates can effectively utilize inheritance to achieve code reuse and promote modular design.

Using different access modifiers: Using different access modifiers, such as public, private, and protected, allows for controlling the visibility and access of class members. Assessing this skill helps evaluate the candidate's ability to implement encapsulation and enforce proper data hiding and abstraction in TypeScript code.

Encapsulating classes/objects: Encapsulating classes/objects involves the practice of bundling data and methods within a class, providing a level of encapsulation and protecting the internals from external interference. This skill evaluation ensures candidates can effectively encapsulate and create well-organized, modular code in TypeScript.

Asynchronous development with Async/Await: Asynchronous development with Async/Await involves writing code that can handle asynchronous operations and manage promises in a more readable and maintainable manner. Testing this skill helps assess the candidate's ability to write asynchronous code using Async/Await syntax, allowing for better handling of operations like API calls, file reading/writing, and more.

Usage of TypeScript with webpack: Usage of TypeScript with webpack refers to the ability to integrate TypeScript into a webpack-based development workflow. This includes setting up TypeScript configuration, managing module bundling, and leveraging webpack features like code splitting and dynamic imports. Evaluating this skill verifies the candidate's proficiency in using TypeScript with webpack for optimized and efficient development.

Exception handling: Exception handling is the practice of catching and handling errors or exceptions that occur during the execution of a program. Assessing this skill helps determine the candidate's ability to handle errors gracefully and implement proper error handling mechanisms in TypeScript, ensuring more robust and reliable code.

Get started for free
Preview questions

Make informed decisions with actionable reports and benchmarks

View sample scorecard

Screen candidates in 3 easy steps

Pick a test from over 500+ tests

The Adaface test library features 500+ tests to enable you to test candidates on all popular skills- everything from programming languages, software frameworks, devops, logical reasoning, abstract reasoning, critical thinking, fluid intelligence, content marketing, talent acquisition, customer service, accounting, product management, sales and more.

Invite your candidates with 2-clicks

Make informed hiring decisions

Get started for free
Preview questions

Try the most advanced candidate assessment platform

ChatGPT Protection

Non-googleable Questions

Web Proctoring

IP Proctoring

Webcam Proctoring

MCQ Questions

Coding Questions

Typing Questions

Personality Questions

Custom Questions

Ready-to-use Tests

Custom Tests

Custom Branding

Bulk Invites

Public Links

ATS Integrations

Multiple Question Sets

Custom API integrations

Role-based Access

Priority Support

GDPR Compliance


Pick a plan based on your hiring needs

The most advanced candidate screening platform.
14-day free trial. No credit card required.

From
$15
per month (paid annually)
love bonito

With Adaface, we were able to optimise our initial screening process by upwards of 75%, freeing up precious time for both hiring managers and our talent acquisition team alike!

Brandon Lee, Head of People, Love, Bonito

Brandon
love bonito

It's very easy to share assessments with candidates and for candidates to use. We get good feedback from candidates about completing the tests. Adaface are very responsive and friendly to deal with.

Kirsty Wood, Human Resources, WillyWeather

Brandon
love bonito

We were able to close 106 positions in a record time of 45 days! Adaface enables us to conduct aptitude and psychometric assessments seamlessly. My hiring managers have never been happier with the quality of candidates shortlisted.

Amit Kataria, CHRO, Hanu

Brandon
love bonito

We evaluated several of their competitors and found Adaface to be the most compelling. Great library of questions that are designed to test for fit rather than memorization of algorithms.

Swayam Narain, CTO, Affable

Brandon

Have questions about the TypeScript Hiring Test?

What roles can I use the TypeScript Test for?

Here are few roles for which we recommend this test:

  • Web Developer
  • Software Engineer
  • Full Stack Developer
  • Front End Developer
  • Back End Developer
  • UI Developer
  • JavaScript Developer
  • TypeScript Developer
  • Angular Developer
  • React Developer
  • Senior Software Engineer (TypeScript)
Can I combine TypeScript Online Test with JavaScript questions?

Yes, you can request a custom test with both JavaScript and TypeScript questions. Check out our JavaScript Online Test for more details.

How to use the TypeScript Online Test in my hiring process?

Use this test as a pre-screening tool at the start of your hiring process. Add the assessment link to your job post or invite candidates via email.

Can I combine multiple skills into one custom assessment?

Yes, absolutely. Custom assessments are set up based on your job description, and will include questions on all must-have skills you specify. Here's a quick guide on how you can request a custom test.

How do I interpret test scores?

The primary thing to keep in mind is that an assessment is an elimination tool, not a selection tool. A skills assessment is optimized to help you eliminate candidates who are not technically qualified for the role, it is not optimized to help you find the best candidate for the role. So the ideal way to use an assessment is to decide a threshold score (typically 55%, we help you benchmark) and invite all candidates who score above the threshold for the next rounds of interview.

Does every candidate get the same questions?

Yes, it makes it much easier for you to compare candidates. Options for MCQ questions and the order of questions are randomized. We have anti-cheating/ proctoring features in place. In our enterprise plan, we also have the option to create multiple versions of the same assessment with questions of similar difficulty levels.

What is the cost of using this test?

You can check out our pricing plans.

I just moved to a paid plan. How can I request a custom assessment?

Here is a quick guide on how to request a custom assessment on Adaface.

What is the TypeScript Online Test?

The TypeScript Online Test assesses a candidate's skills in JavaScript and TypeScript. It is used by recruiters to screen applicants for positions that demand proficiency in these languages.

What skills are evaluated in the TypeScript Online Test?

This test covers JavaScript fundamentals, DOM and web scripting, TypeScript basics, OOP principles, inheritance, access modifiers, async/await, webpack usage, and exception handling.

Can I test JavaScript and NodeJS together in a test?

Yes, you can test both JavaScript and NodeJS together. It's recommended for assessing backend development skills. Check out our JavaScript & NodeJS Test.

Do you have any anti-cheating or proctoring features in place?

We have the following anti-cheating features in place:

  • Non-googleable questions
  • IP proctoring
  • Screen proctoring
  • Web proctoring
  • Webcam proctoring
  • Plagiarism detection
  • Secure browser
  • Copy paste protection

Read more about the proctoring features.

What experience level can I use this test for?

Each Adaface assessment is customized to your job description/ ideal candidate persona (our subject matter experts will pick the right questions for your assessment from our library of 10000+ questions). This assessment can be customized for any experience level.

I'm a candidate. Can I try a practice test?

No. Unfortunately, we do not support practice tests at the moment. However, you can use our sample questions for practice.

Can I get a free trial?

Yes, you can sign up for free and preview this test.

customers across world
Join 1500+ companies in 80+ countries.
Try the most candidate friendly skills assessment tool today.
g2 badges
Ready to use the Adaface TypeScript Online Test?
Ready to use the Adaface TypeScript Online Test?
logo
40 min tests.
No trick questions.
Accurate shortlisting.
Terms Privacy Trust Guide
ada
Ada
● Online
Previous
Score: NA
Next
✖️