Kotlin Advanced Quiz 1
q
L
quizLearn
Select your answers and check your results. Use Reset to start again.
Practice Pronunciation (Merriam-Webster)
Search Google
Search
Navigation
HTML Beginner Quizzes
Quiz 1,
Quiz 2,
Quiz 3,
Quiz 4,
Quiz 5
HTML Intermediate Quizzes
Quiz 1,
Quiz 2,
Quiz 3,
Quiz 4,
Quiz 5
HTML Advanced Quizzes
Quiz 1,
Quiz 2,
Quiz 3,
Quiz 4,
Quiz 5
CSS Beginner Quizzes
Quiz 1,
Quiz 2,
Quiz 3,
Quiz 4,
Quiz 5
CSS Intermediate Quizzes
Quiz 1,
Quiz 2,
Quiz 3,
Quiz 4,
Quiz 5
CSS Advanced Quizzes
Quiz 1,
Quiz 2,
Quiz 3,
Quiz 4,
Quiz 5
PHP Beginner Quizzes
Quiz 1,
Quiz 2,
Quiz 3,
Quiz 4,
Quiz 5
PHP Intermediate Quizzes
Quiz 1,
Quiz 2,
Quiz 3,
Quiz 4,
Quiz 5
PHP Advanced Quizzes
Quiz 1,
Quiz 2,
Quiz 3,
Quiz 4,
Quiz 5
GO Beginner Quizzes
Quiz 1,
Quiz 2,
Quiz 3,
Quiz 4,
Quiz 5
GO Intermediate Quizzes
Quiz 1,
Quiz 2,
Quiz 3,
Quiz 4,
Quiz 5
GO Advanced Quizzes
Quiz 1,
Quiz 2,
Quiz 3,
Quiz 4,
Quiz 5
Kotlin Beginner Quizzes
Quiz 1
Quiz 2,
Quiz 3,
Quiz 4,
Quiz 5
Kotlin Intermediate Quizzes
Quiz 1
Quiz 2,
Quiz 3,
Quiz 4,
Quiz 5
Kotlin Advanced Quizzes
Quiz 1
Quiz 2,
Quiz 3,
Quiz 4,
Quiz 5
Rust Beginner Quizzes
Quiz 1,
Quiz 2,
Quiz 3,
Quiz 4,
Quiz 5
Rust Intermediate Quizzes
Quiz 1,
Quiz 2,
Quiz 3,
Quiz 4,
Quiz 5
Rust Advanced Quizzes
Quiz 1,
Quiz 2,
Quiz 3,
Quiz 4,
Quiz 5
Quiz 1
1. Which annotation is used to expose a Kotlin property as a public field in Java without getters/setters?
@JvmStatic
@JvmField
@ExposeField
2. What is the purpose of the 'contract' API in Kotlin?
To define legal agreements between modules
To enforce strict interface implementation
To help the compiler perform smarter flow analysis
3. How do you remove a specific element from a CoroutineContext?
minusKey()
remove()
drop()
4. Which class is commonly used in Kotlin to handle manual locking for thread safety?
ThreadLock
ReentrantLock
MutexVariable
5. Which function can be used to intercept the logic of 'creating' a delegate?
provideDelegate
createDelegate
delegateFactory
6. At a bytecode level, what does a Sequence primarily avoid creating?
Function objects
Iterator instances
Intermediate collections
7. What is the main advantage of using 'Mutex' over 'synchronized' in coroutines?
It is faster
It suspends instead of blocking the thread
It works with Java's volatile keyword
8. Which coroutine builder is used to 'race' multiple suspending functions?
select { ... }
race { ... }
combine { ... }
9. Which standard delegate allows you to reject a property assignment based on a condition?
observable
vetoable
constrained
10. How do you define multiple generic constraints for a single type parameter?
Using the & symbol
Using multiple ':' signs
Using the 'where' clause
Previous
Check Quiz
Reset
Next
Other
Timer
00:00
Start
Stop
Reset
Vocabulary Quiz
Score: 0
Reset Score
Submit Answer
Next Word
Spin the Wheel
SPIN
Promo's
Explore More
External Link