Forwarded from Android books channel🤖
What is the name of the architectural style that separates responsibilities into models, views, and controllers?
Anonymous Quiz
1%
REST
6%
MVP (Model-View-Presenter)
12%
MVVM (Model-View-ViewModel)
81%
MVC (Model-View-Controller)
Which architectural pattern is best suited for an Android application to separate logic, UI, and data management?
Anonymous Quiz
10%
MVC
6%
MVP
80%
MVVM
4%
Singleton
Which Android component is responsible for managing the lifecycle of an activity?
Anonymous Quiz
29%
ActivityManager
35%
LifecycleOwner
32%
Activity
3%
Application
Which mechanism in Android is used for data exchange between application components?
Anonymous Quiz
58%
Intent
8%
SharedPreferences
25%
ContentProvider
8%
BroadcastReceiver
Forwarded from Android books channel🤖
How can you update the state in Jetpack Compose when data changes?
Anonymous Quiz
10%
Use setState() to update the state.
43%
Wrap the state variable in remember { mutableStateOf() } and modify its value directly.
41%
Use reactive data source like LiveData or StateFlow and subscribe to changes using collectAsState()
6%
Use updateState() to update the component's state.
Forwarded from Android books channel🤖
Which method is typically overridden in a ViewModel to perform cleanup operations when it is no longer needed?
Anonymous Quiz
22%
onDestroy()
21%
OnClear()
42%
onCleared()
8%
onDestroyed()
7%
OnCleared()
Forwarded from Android books channel🤖
Which method of the android.widget.SimpleAdapter class is used to set data and layout for binding data with a view in Android applications?
Anonymous Quiz
16%
setDataSource()
26%
bindLayout()
29%
setAdapterData()
29%
setViewBinder()
Forwarded from Android books channel🤖
What are the layers of clean architecture (Fernando Cejas)?
Anonymous Quiz
14%
View, Domain, Repository
74%
Presentation, Domain, Data
4%
View, Data
8%
Core, Domain, Data
Forwarded from Android books channel🤖
What callbacks and in what sequence are called when the screen is rotated?
Anonymous Quiz
22%
onPause, onStop, onSaveInstanceState, onDestroy–onCreate, onStart, onRestoreInstanceState, onResume
10%
onPause, onSaveInstanceState, onDestroy–onCreate, onStart, onRestoreInstanceState, onResume
41%
onPause, onStop, onSaveInstanceState, onDestroy–onCreate, onRestoreInstanceState, onStart, onResume
27%
onPause, onSaveInstanceState, onStop, onDestroy–onCreate, onRestoreInstanceState, onStart, onResume
Forwarded from Android books channel🤖
FragmentManager.commit() method - synchronous or asynchronous?
Anonymous Quiz
49%
Synchronous
51%
Asynchronous
Which Android component is used for executing background tasks without a user interface?
Anonymous Quiz
3%
Activity
11%
BroadcastReceiver
84%
Service
2%
ContentProvider
🤩1
Question and answer
What is the difference between an abstract class and an interface in Java?
Answer:An abstract class is a class that cannot be instantiated, and it can have abstract and non-abstract methods. An interface, on the other hand, is a collection of abstract methods and constants that can be implemented by any class. One key difference between the two is that a class can implement multiple interfaces, but it can only extend one abstract class .
#question #answer #java
What is the difference between an abstract class and an interface in Java?
Answer:
#question #answer #java
