This Kotlin Online Test
Separates Good From Bad Hires

Check our public questions below

Solve questions to get feedback or
take a practice test and get a free certificate.

Screen with work-sample questions

Work-samples are the best predictor of work performance. 8,000+ companies use TestDome premium questions.

About the test

The Kotlin online test assesses candidates' knowledge of programming in the Kotlin language and their ability to leverage commonly used parts of the Kotlin and Java standard libraries.

It's an ideal test for pre-employment screening. A good Kotlin developer needs to be able not only to solve problems using Kotlin but also recognize when to leverage the functionality of its features, such as nullable types, coroutines, and infix functions.

This online test requires candidates to answer multiple choice questions and understand Kotlin code.

Sample public questions

Easy
3 min
mca
Public
Kotlin
Functions
Infix Functions

Consider the following code used to check whether two materials are compatible to use in a construction project:

enum class Category {
    HEAVY, LIGHT, FILLER
}

data class Material (val category: Category)

// Extension infix function.
infix fun Material.compatibleWith(other: Material) : Boolean {
    return this.category == Category.LIGHT || other.category == Category.FILLER;
}

fun main() {
    val mat1 = Material(Category.HEAVY)
    val mat2 = Material(Category.LIGHT)
    // Use mat1 and mat2 here.
}

What is correct about the compatibleWith function?

Easy
3 min
mca
Public
Kotlin
Null Safety

The following Kotlin code is used in a toy drone to adjust its movement:

fun adjust(vertical: Int?, horizontal: Int?) : Unit {
    if (vertical == null) {
        println("Didn't get vertical information")
    } else {
        // Controls the drone with amplified vertical movements
        move(vertical * 2, horizontal!!)
    }
    log_movement(vertical ?: -1, horizontal ?: -1)
}

Select the correct answers about the adjust function.

For jobseekers: get certified

Earn a free certificate by achieving top 25% on the Kotlin test with public questions.

Take a Certification Test

For companies: premium questions

Buy TestDome to access premium questions that can't be practiced.
Get money back if you find any premium question answered online.

Sign Up to Offer this Test

Skills and topics tested

  • Kotlin
  • Inheritance
  • Method Overriding
  • OOP
  • Coroutines
  • Exceptions
  • Enum

For job roles

  • Back-End Developer
  • Kotlin Developer
  • Web Developer

Solve all your skill testing needs

150+ Pre-made tests

From web development and database administration to project management and customer support. See all pre-made tests.

Multi-skills Test

Mix questions for different skills or even custom questions in one test. See an example.

How TestDome works

1

Choose a pre-made test
or create a custom test

2

Invite candidates via
email, URL or your ATS

3

Candidates take
a test remotely

4

Sort candidates and
get individual reports

Want to know more?