All Kotlin quizzes
Advanced30 questions75 minutes

Kotlin Advanced Quiz

Master advanced coroutines, delegation, DSLs, inline functions, and performance optimization

Start the quiz

Sample questions from this quiz

A preview of the style and depth. Try each one, then reveal the answer — or skip straight to the timed quiz.

1. What is CoroutineScope?

  • Defines scope for coroutine lifecycle
  • Lifecycle manager
  • Scope manager
  • Coroutine container
Show answer

Answer: Defines scope for coroutine lifecycle. CoroutineScope defines coroutine lifecycle. Provides context and manages child coroutines. Use GlobalScope, lifecycleScope, viewModelScope. Structured concurrency.

2. What is CoroutineContext?

  • Coroutine configuration
  • Set of elements defining coroutine behavior
  • Context object
  • Execution context
Show answer

Answer: Set of elements defining coroutine behavior. CoroutineContext is indexed set of elements: Job, Dispatcher, CoroutineName, ExceptionHandler. Combine with +. Child inherits parent context.

3. What is Dispatcher?

  • Determines thread for coroutine execution
  • Executor
  • Thread manager
  • Thread pool
Show answer

Answer: Determines thread for coroutine execution. Dispatcher determines thread: Dispatchers.Main (UI), IO (blocking IO), Default (CPU-intensive), Unconfined (inherits). Set with withContext or CoroutineScope.

Frequently asked questions

How many questions are in this Kotlin quiz?+

30 questions, with a 75-minute time limit. Every question includes a written explanation of the correct answer.

Is this Kotlin quiz free?+

Yes. Every quiz on CodexQuizz is free and needs no account. You only enter a name if you choose to post your score to the leaderboard.

What level is the advanced quiz aimed at?+

Master advanced coroutines, delegation, DSLs, inline functions, and performance optimization

Can I use this to prepare for a Kotlin interview?+

Yes. The questions cover the topics that come up in Kotlin technical screens, and the explanations are written so that a wrong answer still teaches you the underlying concept.

Ready to test your Kotlin?

30 questions, 75 minutes. Free, no sign-up.

Start now