Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up

What advantage does viewModelScope provide?

  1. A Coroutines are cancelled automatically when the ViewModel is cleared
  2. B It runs work on the main thread
  3. C It survives process death
  4. D It caches network responses
Answer

Coroutines are cancelled automatically when the ViewModel is cleared

Structured concurrency means cancelling a scope cancels its children, which prevents leaked background work.

All Android MCQs

Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up as