Accenture
10+ Cuemath Interview Questions and Answers
Q1. Last project and what technology and architecture used in the app?
Developed a social media app using Kotlin and MVVM architecture.
Used Kotlin for coding the app
Implemented MVVM architecture for better code organization
Integrated Firebase for real-time database and authentication
Used Glide library for image loading and caching
Implemented RecyclerView for displaying posts and comments
Q2. what is broadcast and it's type of broadcast and what is the use of broadcast?
Broadcast is a messaging system in Android that allows communication between different components of an app or between different apps.
Broadcast is a way to send messages to multiple components or apps at once.
There are two types of broadcasts: ordered and unordered.
Ordered broadcasts are delivered to receivers in a specific order, while unordered broadcasts are delivered to all receivers at once.
Broadcasts can be used for various purposes such as sending system events, notify...read more
Q3. what is the marker interface and when and where to use interface?
Marker interface is an empty interface used to mark a class as having a particular property or behavior.
Marker interface has no methods or fields, it is used to provide metadata to the code.
It is used to indicate that a class has a certain capability or should be treated in a special way.
Examples of marker interfaces are Serializable, Cloneable, and Remote.
Interfaces are used to achieve abstraction and provide a contract for implementing classes.
Interfaces are used to achieve...read more
Q4. Why do we prefer constraint layout?
Constraint layout is preferred for its flexibility and efficiency.
Allows for complex layouts with minimal nesting
Supports responsive design and animations
Reduces the need for nested layouts
Improves performance by reducing layout hierarchy
Easier to maintain and update layouts
Compatible with Android Studio's Layout Editor
Q5. Fragments and why is it used?
Fragments are reusable UI components in Android used to create flexible and dynamic user interfaces.
Fragments allow for modularization of UI components
They can be reused across multiple activities
They can be added or removed dynamically at runtime
They help in creating responsive UIs for different screen sizes
Example: A news app can use a fragment to display a list of articles and another fragment to display the details of a selected article
Q6. Components of Android?
Android has four main components: Activities, Services, Broadcast Receivers, and Content Providers.
Activities: UI components that represent a single screen with a user interface.
Services: Background components that perform long-running operations.
Broadcast Receivers: Respond to system-wide broadcast announcements.
Content Providers: Manage a shared set of app data that can be accessed by other apps.
Q7. Difference between Intent and PendingIntent?
Intent is used to start an activity or service. PendingIntent is used to perform an action on behalf of another application.
Intent is used to start an activity or service within the same application or in another application.
PendingIntent is used to perform an action on behalf of another application, such as starting an activity or sending a broadcast.
Intent can be used to pass data between activities or services.
PendingIntent is used to grant permission to another applicatio...read more
Q8. Retrofit library for web services?
Retrofit is a type-safe HTTP client for Android and Java.
Retrofit simplifies the process of sending network requests and handling responses.
It uses annotations to define API endpoints and request parameters.
Retrofit also supports various data formats such as JSON, XML, and Protocol Buffers.
It can be used with other libraries like OkHttp for better performance.
Retrofit is widely used in Android development for consuming RESTful APIs.
Q9. Mvvm design pattern?
MVVM is a design pattern that separates UI code from business logic using a ViewModel.
MVVM stands for Model-View-ViewModel
Model represents the data and business logic
View represents the UI
ViewModel acts as a mediator between the Model and View
ViewModel exposes data and commands to the View
MVVM helps in unit testing and maintainability
Example: Android Architecture Components provide support for MVVM
Q10. Storage types in android?
Android supports various types of storage options for storing data.
Internal Storage
External Storage
Shared Preferences
SQLite Databases
Network Connection
Q11. What is activity ? And it's lifecycle
An activity is a single, focused thing that the user can do. It represents a single screen with a user interface.
Activities are the building blocks of Android applications.
They are responsible for creating a window in which the app draws its user interface.
Activities have a lifecycle that defines how they are created, started, paused, resumed, stopped, and destroyed.
Examples of activities include login screen, settings screen, and profile screen.
Q12. Service in android?
Service is a component in Android that runs in the background to perform long-running operations.
Services can be started or bound to an activity
They can run indefinitely or until they complete their task
They can communicate with other components using intents or callbacks
More about working at Accenture
Interview Process at Cuemath
Top Android Developer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month