Check our public questions below
Solve questions to get feedback or
take a practice test and get a free certificate.
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.
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.
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?
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.
Earn a free certificate by achieving top 25% on the Kotlin test with public questions.
Take a Certification TestSunshine Caprio
Java and SQL
TestDome
Certificate
Buy TestDome to access premium questions that can't be practiced.
Get money back if you find any premium question answered online.
Kilometer Converter, Meditation Application, Read First Line, Soccer Tournament.
From web development and database administration to project management and customer support. See all pre-made tests.
From JavaScript and SQL to English and customer support. See all questions to filter by skill.
Mix questions for different skills or even custom questions in one test. See an example.
Choose a pre-made test
or create a custom test
Invite candidates via
email, URL or your ATS
Candidates take
a test remotely
Sort candidates and
get individual reports