Search test library by skills or roles
⌘ K

No trick questions.
40 min coding tests.
500+ ready-to-use tests.

A radical new way to screen candidates for programming skills. Use non-googleable MCQs and coding questions. Screen for experience with programming languages and software engineering frameworks.

Adaface coding tests are trusted by enterprises globally

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

No trick questions.

Code tracing MCQs & coding questions that test for core fundamentals & on-the-job skills for accurate shortlisting.

Skills

🧐 Question

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

Hard

Holding References
Solve
What does the following Java code output?
 image

Hard

Context re-renders
React Context API
Conditional Rendering
Component Lifecycle State
Solve
Review the following React code:
 image
Pick the correct statements:
            
            A: The code renders 10 INDIAN RUPEE
            B: The code renders 10 SINGAPORE DOLLAR
            C: The code does not render anything and throws an error since JavaScript objects are not valid as React children
            D: When the currency portion is clicked, the parent component is re-rendered
            E: When the currency portion is clicked, parent component will skip the re-render because shouldComponentUpdate returns false
            F: Parent component can be converted to a functional component with memoization (useMemo or memo) to avoid the re-render

Medium

EC2DataProcessing
EC2
S3
Security Groups
Network ACLs
Solve
You work as a Solutions Architect for a data analysis firm. The company stores large datasets on Amazon S3, and you've been tasked with setting up an Amazon EC2 instance to process this data. The EC2 instance will fetch data from S3, process it, and then write the results back to a different S3 bucket.
            
            To ensure security, the EC2 instance should not have direct internet access, and it should only be able to communicate with the S3 buckets. You've decided to place the EC2 instance in a VPC private subnet with a CIDR block of 10.0.1.0/24. The associated security group is set to deny all inbound traffic and allow all outbound traffic.
            
            Which additional configuration should you make to enable the EC2 instance to access the S3 buckets while complying with the security requirements?
A: Modify the Network ACL of the subnet to allow outbound connections to the IP range of the S3 service.
            B: Assign a Public IP to the EC2 instance and update the security group to allow inbound and outbound traffic to S3.
            C: Add a NAT Gateway in the private subnet and update the route tables to direct S3 traffic to the NAT Gateway.
            D: Create an S3 VPC Gateway Endpoint and update the route tables for the private subnet to direct S3 traffic to the VPC Endpoint.
            E: Create a VPN connection from the VPC to the S3 buckets.

Medium

Applying Middleware to Resource Routes
Middleware
Routing
Solve
You are developing a Laravel application that has a PostController for managing blog posts. The routes for this controller are set up as a resource route in your web.php file:
 image
You have already created a middleware called EnsureAdminRole to restrict access to certain routes for admin users. Now, you want to apply this middleware to the create, edit, update, and delete routes for the PostController, but not the index or show routes.
            
            Which of the following ways would correctly apply the EnsureAdminRole middleware to these routes?
 image

Medium

ZeroDivisionError and IndexError
Exceptions
Solve
What will the following Python code output?
 image

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.

Medium

Less complex decision tree model
Model Complexity
Overfitting
Solve
You are given a dataset to solve a classification problem using a decision tree algorithm. You are concerned about overfitting and decide to implement pruning to control the model's complexity. Consider the following pseudo code for creating the decision tree model:
 image
Which of the following combinations of parameters would result in a less complex decision tree model, reducing the risk of overfitting?
            
            A: max_depth=5, min_samples_split=2, min_samples_leaf=1
            B: max_depth=None, min_samples_split=5, min_samples_leaf=5
            C: max_depth=3, min_samples_split=2, min_samples_leaf=1
            D: max_depth=None, min_samples_split=2, min_samples_leaf=1
            E: max_depth=3, min_samples_split=10, min_samples_leaf=10
            F; max_depth=5, min_samples_split=5, min_samples_leaf=5

Medium

Defer, Panic, and Recover
Control Flow
Error Handling
Solve
Consider the following Go code snippet, where we're exploring the use of defer, panic, and recover:
 image
In this pseudo-code, badCall function is deliberately causing a panic. test function uses a deferred function to handle the panic and recover from it. What will the output of this code be when it is run?
 image

Medium

Database testcase
Regression Testing
Solve
Adaface is developing a new database system called “Helen”. The tester at Adaface developed the following testcase for regression testing:
1. Open Helen
            2. Open “Students” database
            3. Enter data for “Sid”
            4. Set checkpoint
            5. Store “Sid” data in “Students” 
            6. Restart Helen
            7. Read “Sid” data from “Students”
            8. Compare checkpoint with the contents
When the tester ran the testcase the first time, it worked as expected. Pick the correct statements:
            
            A: When the test case is ran the second time, the data entry for “Sid” already exists in the database. 
            B: When the test case is ran the second time, it performs exactly as it did the first time
            C: The testcase is a good example for regression testing “Helen”
            D: The testcase is not a good example for regression testing “Helen” since the system behaves differently when the testcase is ran the second time
🧐 Question🔧 Skill

Medium

Async Await Promises
Promises
Async-Await

2 mins

JavaScript
Solve

Hard

Holding References

2 mins

Java
Solve

Hard

Context re-renders
React Context API
Conditional Rendering
Component Lifecycle State

3 mins

React
Solve

Medium

EC2DataProcessing
EC2
S3
Security Groups
Network ACLs

2 mins

AWS
Solve

Medium

Applying Middleware to Resource Routes
Middleware
Routing

2 mins

Laravel
Solve

Medium

ZeroDivisionError and IndexError
Exceptions

2 mins

Python
Solve

Medium

Visitors Count
Strings
Logic

30 mins

Coding
Solve

Medium

Less complex decision tree model
Model Complexity
Overfitting

2 mins

Machine Learning
Solve

Medium

Defer, Panic, and Recover
Control Flow
Error Handling

2 mins

Go
Solve

Medium

Database testcase
Regression Testing

2 mins

Testing
Solve
🧐 Question🔧 Skill💪 Difficulty⌛ Time
Async Await Promises
Promises
Async-Await
JavaScript
Medium2 mins
Solve
Holding References
Java
Hard2 mins
Solve
Context re-renders
React Context API
Conditional Rendering
Component Lifecycle State
React
Hard3 mins
Solve
EC2DataProcessing
EC2
S3
Security Groups
Network ACLs
AWS
Medium2 mins
Solve
Applying Middleware to Resource Routes
Middleware
Routing
Laravel
Medium2 mins
Solve
ZeroDivisionError and IndexError
Exceptions
Python
Medium2 mins
Solve
Visitors Count
Strings
Logic
Coding
Medium30 minsSolve
Less complex decision tree model
Model Complexity
Overfitting
Machine Learning
Medium2 mins
Solve
Defer, Panic, and Recover
Control Flow
Error Handling
Go
Medium2 mins
Solve
Database testcase
Regression Testing
Testing
Medium2 mins
Solve

40 min tests.

Short screening tests with high completion rates.

Code tracing MCQs  /  Coding questions

500+ ready-to-use tests.

Ready-to-use coding tests for all your IT roles.

Programming

IT

DevOps



How to use coding tests for hiring

1-click invites  /  skills profile  /  comparative analysis  /  code analysis


Why Adaface coding tests work

No puzzles. No niche algorithms.

Traditional pre-employment coding tests use the equivalent of computer science puzzles or niche algorithms that no programmer uses on the job.

While it's good if a candidate good at solving puzzles (this skill can be improved with practice), this is not a strong indicator of how good of an engineer someone is. Also, this way of measuring a developer's programming skills has an inherent bias against more experienced developers.

Score distribution

The actual score distribution will vary based on your candidate pipeline quality, but you should typically expect ~20% of the candidates to do well on Adaface coding tests.

The score distribution for our coding assessments follow the normal curve. This is a good sign- standardized tests like SAT and GRE follow the normal distribution (bell curve).

Status quo assessments typically have the exact opposite of the bell curve (too many candidates getting close to 0, too many candidates getting close to 100 and too few candidates in the middle). This is typically because they focus on theoretical questions or trick questions, which are very binary in nature- either you know the trick/ theory or you don’t.

score distribution

40 min coding tests =
8 MCQs + 1 coding question

Over the course of hundreds of thousands of coding tests for 1200+ companies globally, we have tested & seen that a combination of code tracing MCQ questions & 1 coding question is highly predictive of candidate's programming ability.

Designed for elimination, not selection

The most important thing while implementing pre-employment coding tests in any hiring process is that it is an elimination tool, not a selection tool. In other words: you want to use the test to eliminate the candidates who do poorly on the test, not to select the candidates who come out at the top.

While they are super valuable, coding tests do not paint the entire picture of a candidate’s programming ability, knowledge, and motivation.

20+ programming languages

50+ frameworks

FAQs

What is a coding test?

A coding test or programming test is used by recruiters to check if the candidate has the ability to write code. A short coding test can help filter out candidates who do not have the programming skills for the role early in the process.

How long is a coding test?

Ideally a coding test should be 40 mins long with 5-10 code tracing MCQ questions & 1 coding question. A short coding test ensures that candidate drop-off is low.
love bonito

Dzięki Adaface byliśmy w stanie zoptymalizować nasz początkowy proces badania przesiewowego o 75%, uwalniając cenny czas zarówno dla menedżerów ds. Zatrudnienia, jak i naszego zespołu pozyskiwania talentów!


Brandon Lee, Głowa ludzi, Love, Bonito

hashtag image heart icon Brandon
customers across world
Join 1200+ companies in 75+ countries.
Wypróbuj dziś najbardziej przyjazne narzędzie do oceny umiejętności.
g2 badges
Have questions about Adaface coding tests?
Have questions about Adaface coding tests?
Porozmawiaj z nami
logo
40 min tests.
No trick questions.
Accurate shortlisting.
ada
Ada
● Online
Previous
Score: NA
Next
✖️