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
                                    

Options:

  • A
  • B
  • C
  • D
  • E
  • F
  • G

Medium

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

Options:

  • 1
  • 2
  • 3
  • 12
  • 13
  • Error

Medium

Context re-renders
Context
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
                                    

Options:

  • C
  • A D
  • A E
  • B D
  • B E
  • A D F
  • A E F
  • B D F
  • B E F

Medium

Data Microservices
S3
SQS
SNS
Solve
                                    Slapchat deployed a new data processing application to the market. The backend part of the application does two specific segments:
            
            - For every new data file submitted by the user, proprietary data cleanup logic is done
            - Once data cleanup is complete, proprietary data transformations are done
                                    
                                    After launching the application for few months, the metrics indicated that the clean up stage of the application is pretty quick while transformation stage takes longer time to complete. In the next phase, the application is being re-written as 2 microservices (’cleanup’ and ‘transformation’). The deployment strategy is to run both on ECS and scale independently. How should the services be integrated?
                                    
                                    A: ‘cleanup’ publishes data to SNS topic, ‘transformation’ subscribes to the SNS topic
            
            B: ‘cleanup’ sends data to S3 bucket, ‘transformation’ is invoked by S3 event notifications
            
            C: ‘cleanup’ sends data to SQS queue, ‘transformation’ processes messages from the queue
            
            D: ‘cleanup’ sends data to Kinesis Data Firehose, ‘transformation’ reads from the Kinesis Data Firehose
                                    

Options:

  • A
  • B
  • C
  • D

Medium

Inject instances into routes
Solve
                                    Your friend Sabrina is interning with a data analytics startup. For their app, they want to be able to automatically inject the instances of the model into their routes. Which of the following would you recommend?
                                    
 image

Options:

  • A
  • B
  • C
  • A or B
  • B or C
  • A or C
  • A or B or C

Hard

Session
File Handling
Dictionary
Solve
 image
                                    The function high_sess should compute the highest number of events per session of each user in the database by reading a comma-separated value input file of session data. The result should be returned from the function as a dictionary. The first column of each line in the input file is expected to contain the user’s name represented as a string. The second column is expected to contain an integer representing the events in a session. Here is an example input file:
                                    
                                    Tony,10
            Stark,12
            Black,25
            Your program should ignore a non-conforming line like this one.
            Stark,3
            Widow,6
            Widow,14
                                    
                                    The resulting return value for this file should be the following dictionary: { 'Stark':12, 'Black':25, 'Tony':10, 'Widow':14 }
                                    
                                    What should replace the CODE TO FILL line to complete the function?
                                    
 image

Options:

  • OPTION 1
  • OPTION 2
  • OPTION 3
  • OPTION 4

Medium

Longest Road
logic
hashmaps
Solve
                                    A startup company E-Motors is building driverless automated cars. The car contains a sensor that checks the road quality for the next N meters to decide the optimal speed at which the cars should move. We are given recorded data by the sensor in the form of an array, where each element of the array is the rating given to 1 meter of the road in sequence. 
            
            The rating given by the sensor is from 1 to 100, where 100 represents the road with the best condition, and any rating above 60 is optimal. Find the longest stretch of road in meters that is categorized as optimal by the sensor.
            
            The input is an array of "strings" which needs to be converted from string to integer/number inside the function.
                                    

    Hard

    n-gram generator
    Solve
                                        Our newest machine learning developer want to write a function to calculate the n-gram of any text. An N-gram means a sequence of N words. So for example, "black cats" is a 2-gram, "saw black cats" is a 3-gram etc. The 2-gram of the sentence "the big bad wolf fell down" would be [["the", "big"], ["big", "bad"], ["bad", "wolf"], ["wolf", "fell"], ["fell", "down"]]. Can you help them select the correct function for the same?
                                        
     image

    Options:

    • A
    • B
    • C
    • None of these

    Medium

    File Handling and Defer
    File Handling
    Solve
                                        Consider the following Go code. Where should we use *defer*?
                                        
     image

    Options:

    • OPTION ONE
    • OPTION TWO
    • OPTION THREE
    • None of these

    Medium

    Decision Table
    Solve
                                        Check the following decision table:
                                        
     image
                                        What are the expected actions for following testcases?
                
                I: Joey's age is 22. He is a smoker residing in India
                
                II: Jennifer's age is 62. She is a non-smoker not residing in India
                
                A) I - Insure, 10% discount. II - Insure, no discount
                B) I - Don't insure. II - Don't insure
                C) I - Insure, no discount. II - Don't insure
                D) I - Insure, no discount. II - Insure, 10% discount
                                        

    Options:

    • A
    • B
    • C
    • D
    🧐 Question🔧 Skill

    Medium

    Async Await Promises
    Promises
    Async-Await
    2 mins
    JavaScript
    Solve

    Medium

    Holding References
    2 mins
    Java
    Solve

    Medium

    Context re-renders
    Context
    3 mins
    React
    Solve

    Medium

    Data Microservices
    S3
    SQS
    SNS
    2 mins
    AWS
    Solve

    Medium

    Inject instances into routes
    2 mins
    Laravel
    Solve

    Hard

    Session
    File Handling
    Dictionary
    2 mins
    Python
    Solve

    Medium

    Longest Road
    logic
    hashmaps
    25 mins
    Coding
    Solve

    Hard

    n-gram generator
    2 mins
    Machine Learning
    Solve

    Medium

    File Handling and Defer
    File Handling
    2 mins
    Go
    Solve

    Medium

    Decision Table
    3 mins
    Testing
    Solve
    🧐 Question🔧 Skill💪 Difficulty⌛ Time
    Async Await Promises
    Promises
    Async-Await
    JavaScript
    Medium2 mins
    Solve
    Holding References
    Java
    Medium2 mins
    Solve
    Context re-renders
    Context
    React
    Medium3 mins
    Solve
    Data Microservices
    S3
    SQS
    SNS
    AWS
    Medium2 mins
    Solve
    Inject instances into routes
    Laravel
    Medium2 mins
    Solve
    Session
    File Handling
    Dictionary
    Python
    Hard2 mins
    Solve
    Longest Road
    logic
    hashmaps
    Coding
    Medium25 minsSolve
    n-gram generator
    Machine Learning
    Hard2 mins
    Solve
    File Handling and Defer
    File Handling
    Go
    Medium2 mins
    Solve
    Decision Table
    Testing
    Medium3 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



    How to use coding tests for hiring

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


    Why Adaface coding tests work

    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

    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.

    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.

    借助Adaface,我们能够优化我们的初始筛查过程超过75%,从而为招聘经理和我们的人才获取团队提供了宝贵的时间!


    Brandon Lee, 人的负责人, Love, Bonito

    hashtag image heart icon Brandon
    Join 1200+ companies in 75+ countries.
    立即尝试最候选的友好技能评估工具。
    Have questions about Adaface coding tests?
    Have questions about Adaface coding tests?
    与我们聊天
    40 min tests.
    No trick questions.
    Accurate shortlisting.
    Ada
    ● Online
    Previous
    Score: NA
    Next
    ✖️