59:09
Android Kotlin Online Test - Atyati Technologies
1. Total Time for completing 80 Questions in 50 Minutes
2. This link will expire in 50 minutes. Please complete and submit once you get started.
3. Using unfair means to solve the paper is strictly prohibited
4. Choose the best possible and enter the answer from the options available.
5. Note there will be 1 mark for each correct answer.
6. All the 80 questions are mandatory and must be answered.
ALL THE BEST !! See you @ atyati
When you submit this form, it will not automatically collect your details like name and email address
unless you provide it yourself.
Required
[Link] component is responsible for managing the application lifecycle in Android?
(1 Point)
Activity
Fragment
Service
Application
[Link] does the term "Context" refer to in Android?
(1 Point)
A layout file defining the UI components
A reference to the current application environment
A background task running independently of the UI
A data structure to store key-value pairs
[Link] is the purpose of the Android Manifest file?
(1 Point)
It contains user interface layouts
It defines the structure of the app's data.
It specifies the components of the application such as activities, services, broadcast receivers, etc.,
and their permissions.
It provides localization resources.
4. What is the purpose of the Android Support Library (now AndroidX)?
(1 Point)
To provide backward compatibility of new features to older Android versions.
To support iOS development within Android Studio.
To provide support for wearable devices.
To facilitate cross-platform development.
[Link] name of overloading is?
(1 Point)
Psudo polymorphism
transient polymorphism
Virtual polymorphism
Ad-hoc polymorphism
[Link] your previous/current employer name
Enter your answer
[Link] Kotlin, what does the term "coroutine" refer to?
(1 Point)
A design pattern for managing asynchronous tasks
A higher-order function
A type of lambda expression
A lightweight thread
[Link] the incorrect constructor type.
(1 Point)
friend constructor
default constructor
parameterized constructor
Copy constructor
[Link] the abstract data type among the following.
(1 Point)
double
int
Class
string
[Link] MVVM architecture, how does the ViewModel communicate with the View?
(1 Point)
Through direct method calls
Through observable properties and data binding
Through event listeners
Through callback interfaces
[Link] of the following Kotlin code snippets correctly declares and initializes a nullable variable of
type Int?
(1 Point)
val x: Int? = 5
val x: Int = null
val x: Int = 5
val x: Int? = null
[Link] layout is most suitable for creating complex UI designs with a fixed number of rows and
columns?
(1 Point)
LinearLayout
RelativeLayout
GridLayout
FrameLayout
[Link] is reusability a desirable feature?
(1 Point)
Reduces compilation time
Decrease testing time
Lowers maintenance cost
None
[Link] Kotlin feature is used for avoiding null pointer exceptions?
(1 Point)
Option type
Elvis operator (?:)
Ternary operator
Safe call operator (?.)
[Link] architectural pattern typically involves using interfaces to decouple the View from the
Presenter or ViewModel?
(1 Point)
MVVM (Model-View-ViewModel)
MVP (Model-View-Presenter)
MVI (Model-View-Intent)
MVC (Model-View-Controller)
[Link] Android, what is the purpose of the "ViewGroup" class?
(1 Point)
To define the layout of an individual UI element
To provide a container for holding multiple UI elements
To manage background tasks in a separate thread
To handle user interactions with UI elements
[Link] will be the output of the following Kotlin code?
fun main() { val str = "Hello, World!" val substr = [Link](7) println(substr)}
(1 Point)
World!
Hello
Hello,
Error
[Link] architectural pattern is known for its emphasis on maintaining a clear separation between
the presentation layer and the business logic?
(1 Point)
MVVM (Model-View-ViewModel)
MVP (Model-View-Presenter)
MVI (Model-View-Intent)
MVC (Model-View-Controller)
[Link] of the following is not an oops concept?
(1 Point)
Inheritance
Compilation
Polymorephism
Encapsulation
[Link] to work from office in Bangalore location?
YES
NO
[Link] is the implicit return type of constructor?
(1 Point)
No return type
A class object in which it is defined
void
none
[Link] are the total catch blocks that can be used using a single Try block?
(1 Point)
According to needs
256
[Link] members and member functions of a class are private. default. True or False?
(1 Point)
True
False
Depends on code
None
24. Which of the following is not a common HTTP operation/method:
(1 Point)
GET
POST
PUT
SET
[Link] is the equivalent of a Java static method in Kotlin?
(1 Point)
`static` keyword
`companion object`
`singleton object
`static` modifier
[Link] your expected CTC
Enter your answer
[Link] layout manager is typically used for creating a scrollable list of items in Android?
(1 Point)
LinearLayoutManager
GridLayout
StaggeredGridLayoutManager
FlexboxLayoutManager
[Link] is the number of parameters that a default constructor requires?
(1 Point)
3
[Link] Your highest qualification
Enter your answer
[Link] is the purpose of the `when` keyword in Kotlin?
(1 Point)
To define a loop
To handle multiple cases with a single expression
To declare a variable
To define a class
[Link] of the following is not a valid storage option available in Android?
(1 Point)
Shared Preferences
SQLite Database
Internal Storage
External Storage
[Link] component is used to store and retrieve data persistently in Android?
(1 Point)
SharedPreferences
SQLiteDatabase
Internal storage
All of the above
[Link] whether True or False: Object cannot be passed as a function.
(1 Point)
True
False
Depends on implementation
None
[Link] the scope resolution operator.
(1 Point)
::
?:
None
[Link] what basis is it determined, when a variable comes into existence in memory?
(1 Point)
data type
Storage class
Scope
All of the above
[Link] is the purpose of the "Intent" in Android?
(1 Point)
To declare permissions for the app
To define the layout of the user interface
To facilitate communication between components
To manage database operations
37. Which architectural pattern is commonly associated with Android Jetpack's ViewModel
component?
(1 Point)
MVP (Model-View-Presenter)
MVVM (Model-View-ViewModel)
MVI (Model-View-Intent)
MVC (Model-View-Controller)
[Link] is the difference between "match_parent" and "wrap_content" layout parameters in
Android?
(1 Point)
There is no difference; both have the same effect
"match_parent" makes the view fill the entire parent container, while "wrap_content" sizes the view
to fit its content
"wrap_content" makes the view fill the entire parent container, while "match_parent" sizes the view
to fit its content
"match_parent" makes the view expand to twice its original size
[Link] component is used to perform background operations without a user interface in Android?
(1 Point)
Activity
Service
BroadcastReceiver
ContentProvider
[Link] Kotlin keyword is used to declare a variable that can hold a nullable value?
(1 Point)
null
var
val
[Link] response from a REST web service is commonly formatted in one of the common data transfer
formats like XML or JSON.
(1 Point)
True
False
Both A and B
None
[Link] of the following is true about Kotlin's `sealed` classes?
(1 Point)
They can have both abstract and concrete members.
They can be instantiated directly.
They allow inheritance from external classes.
They restrict the types that can inherit from them to a predefined set.
[Link] component is responsible for holding the presentation logic and handling user interactions
in MVP architecture?
(1 Point)
View
Model
Presenter
ViewModel
[Link] is the purpose of the "Parcelable" interface in Android?
(1 Point)
To define the layout of an activity's user interface
To enable passing custom objects between activities using Intent extras
To manage the navigation flow between different screens in an app
To store large datasets efficiently in memory
[Link] is cout?
(1 Point)
operator
object
function
Macro
[Link] MVVM architecture, what is the responsibility of the View layer?
(1 Point)
To hold and manage UI-related data in a lifecycle-aware manner
To perform business logic and data operations
To handle user interactions and update the UI
To interact with the database
[Link] your current CTC
Enter your answer
[Link] of the following is a feature of Kotlin's type system?
(1 Point)
Type erasure
Wildcard types
Optional types
Smart casts
[Link] your current location
Enter your answer
[Link] which pillar of OOPS do base class and derived class relationships come?
(1 Point)
Polymorphism
Inheritance
Encapsulation
Abstraction
[Link] the option below which cannot be used with the term “virtual”.
(1 Point)
constructor
destructor
class
Member function
[Link] your Email id
Enter your answer
[Link] does the `lateinit` modifier in Kotlin signify?
(1 Point)
The variable can have a null value
The variable must be initialized before use
The variable cannot be reassigned after initialization
The variable can be initialized lazily
[Link] architectural pattern is known for its ability to simplify testing of the presentation layer?
(1 Point)
MVVM (Model-View-ViewModel)
MVP (Model-View-Presenter)
MVI (Model-View-Intent)
MVC (Model-View-Controller)
[Link] the operators which cannot be overloaded.
(1 Point)
?:
.(dot operator)
>>
both A and B
56. What is the primary difference between MVVM and MVP architectural patterns?
(1 Point)
In MVVM, the ViewModel interacts directly with the View, while in MVP, the Presenter interacts
directly with the View.
MVVM stands for Model-View-Presenter-ViewModel, while MVP stands for Model-View-ViewModel-
Presenter.
MVVM does not have a Presenter component, while MVP does not have a ViewModel component.
MVVM is an evolution of MVP, with improved separation of concerns and data binding capabilities.
[Link] of the following is used to replace the Main dispatcher with a TestDispatcher in a local unit
test:
(1 Point)
runTest
runBlocking
[Link]()
[Link]()
[Link] access specifiers in OOPS for C++ are?
(1 Point)
[Link] runTest() function can be used to test suspend functions.
(1 Point)
True
False
Both A and B
None
[Link] does the `?.` operator do in Kotlin?
(1 Point)
It is used to perform a null check and execute the following code only if the object is not null.
It is used to concatenate strings
It is used to perform bitwise AND operation.
It is used to access properties and methods of an object.
[Link] MVVM architecture, how does the ViewModel handle configuration changes?
(1 Point)
By retaining data in the View
By using onSaveInstanceState
By using a retained fragment
By surviving configuration changes automatically
[Link] MVP architecture, what is the role of the View?
(1 Point)
To manage the application state
To display data and handle user input
To perform business logic operations
To communicate with the database
[Link] is the purpose of a ViewModel in MVVM architecture?
(1 Point)
To handle user interactions and update the UI
To perform business logic and data operations
To act as an intermediary between the View and the Model
To hold and manage UI-related data in a lifecycle-aware manner
[Link] is the function of the "onCreateOptionsMenu" method in an Android activity?
(1 Point)
To inflate the layout resource for the activity's UI
To create a context menu for long-press interactions
To create the options menu for the activity's action bar
To initialize the activity's data and resources
[Link] keyword is used to immutable variable in Kotlin?
(1 Point)
`let`
`val`
`var`
`const`
[Link] your Contact Number
Enter your answer
[Link] will be the output of the following Kotlin code? fun main() { val x = "Hello" val y =
"World" val z = if (x == y) "Equal" else "Not Equal" println(z) } ```
(1 Point)
Equal
Not Equal
Hello
World
[Link] Kotlin function is used to concatenate multiple strings?
(1 Point)
`concat()`
`plus()`
`append()`
`joinToString()`
[Link] developed object-oriented programming?
(1 Point)
Dennie Ritchie
Charles Babbage
Alan Kay
Andrea Ferro
[Link] Your Full Name
Enter your answer
[Link] of the following is not a valid layout in Android?
(1 Point)
RelativeLayout
GridBagLayout
LinearLayout
FrameLayout
[Link] architectural pattern is known for its emphasis on testability and separation of concerns?
(1 Point)
MVC (Model-View-Controller)
MVVM (Model-View-ViewModel)
MVP (Model-View-Presenter)
MVI (Model-View-Intent)
[Link] instances of an abstract class that can be created?
(1 Point)
0
[Link] s = "Hello"; [Link]([Link](1));
(1 Point)
[Link] Android, what is the purpose of a BroadcastReceiver?
(1 Point)
To perform background tasks independently of the user interface
To display notifications to the user.
To receive and react to broadcast messages from other applications or from the system.
To manage data persistence.
[Link] does the following Kotlin code snippet print?
fun main() { val list = listOf(1, 2, 3, 4, 5) val result = [Link] { it % 2 == 0 }.map { it * 2 }.sum()
println(result) }
(1 Point)
12
14
16
77. Following Android’s recommended app architecture guidelines, an app should have which of the
following:
(1 Point)
UI Layer
Domain Layer
Data Layer
Business Layer
[Link] architectural pattern is known for its ability to handle configuration changes more
efficiently in Android applications?
(1 Point)
MVVM (Model-View-ViewModel)
MVP (Model-View-Presenter)
MVC (Model-View-Controller)
MVI (Model-View-Intent)
[Link] method is called to inflate a menu resource in Android?
(1 Point)
onCreateOptionsMenu()
onPrepareOptionsMenu()
onOptionsItemSelected()
inflateMenu()
[Link] your notice period? How early you can join our company after the selection process? In
days
Enter your answer
[Link] component in MVVM architecture is responsible for fetching and processing data from the
Model layer?
(1 Point)
View
ViewModel
Model
Repository
[Link] advantages of using Dependency Injection (DI) in your app include which of the following:
(1 Point)
Helps with the reusability of code
Makes refactoring easier
Helps with testing
All of the above
[Link] is the correct order of the Android Activity lifecycle methods, from the first to the last to be
called?
(1 Point)
onCreate() -> onStart() -> onResume() -> onPause() -> onStop() -> onDestroy()
onCreate() -> onStart() -> onResume() -> onPause() -> onStop() -> onRestart() -> onDestroy()
onCreate() -> onStart() -> onResume() -> onRestart() -> onPause() -> onStop() -> onDestroy()
onCreate() -> onResume() -> onStart() -> onPause() -> onStop() -> onDestroy()
[Link] the option below which is not a member of the class.
(1 Point)
friend function
Static function
Virtual function
Const function
85. How does the Presenter communicate with the View in MVP architecture?
(1 Point)
Through direct method calls
Through observable properties and data binding
Through event listeners
Through callback interfaces
[Link] is the primary benefit of using MVVM architecture over traditional MVC or MVP in Android
development?
(1 Point)
Improved performance
Easier integration with third-party libraries
Better separation of concerns and easier unit testing
Simpler implementation
[Link] JSON object contains the following:
(1 Point)
set of key-value pairs separated by a colon.
set of key-value pairs separated by a comma.
set of key-value pairs separated by a semi colon
None of the above
[Link] is the primary purpose of Kotlin?
(1 Point)
A markup language
A scripting language
A statically-typed programming language
A database query language
[Link] your app has more than one type of data source, they should all be stored in the same
repository for ease of use.
(1 Point)
True
False
Both A and B
None
[Link] is the purpose of the `apply` function in Kotlin?
(1 Point)
To perform an action on each element of a collection
To transform each element of a collection into another form
To initialize properties of an object
To filter elements of a collection based on a condition
Submit
Never give out your [Link] abuse
Microsoft 365
This content is created by the owner of the form. The data you submit will be sent to the form owner.
Microsoft is not responsible for the privacy or security practices of its customers, including those of
this form owner. Never give out your password.
Microsoft Forms | AI-Powered surveys, quizzes and pollsCreate my own form
The owner of this form has not provided a privacy statement as to how they will use your response
data. Do not provide personal or sensitive information. | Terms of use