Android Engineer
Android Engineer Interview Questions and Answers

Asked in Go-Jek

Q. Beautiful String Problem Statement
Given a binary string STR
containing either '0' or '1', determine the minimum number of operations needed to make it beautiful. A binary string is called beautiful if it conta...read more
Determine the minimum number of operations needed to make a binary string beautiful by having alternating 0s and 1s.
Iterate through the binary string and count the number of operations needed to make it beautiful by flipping the bits if they are the same.
Keep track of the current bit and compare it with the next bit to determine if an operation is needed.
Return the total number of operations needed for each test case.

Asked in Go-Jek

Q. Maximum Sum Rectangle Problem Statement
Given a matrix ARR
with dimensions N
x M
, your task is to identify the rectangle within the matrix that has the maximum sum of its elements.
Input:
The first line contain...read more
Find the rectangle within a matrix that has the maximum sum of its elements.
Iterate through all possible rectangles within the matrix
Calculate the sum of each rectangle
Keep track of the maximum sum found
Android Engineer Interview Questions and Answers for Freshers

Asked in Go-Jek

Q. Reverse Blocks Problem Statement
You are provided with a Singly Linked List of integers and an integer array B
of size N
. Each element in the array B
indicates a block size. Your task is to reverse the nodes wi...read more
Reverse nodes within blocks of specified sizes in a singly linked list.
Iterate through the linked list and reverse nodes within each block size specified in the array.
Handle cases where block size exceeds remaining nodes by reversing the remaining nodes as one block.
Update pointers accordingly to reverse the nodes within each block size.

Asked in Trackier

Q. How many architectures are there in Android?
There are three main architecture patterns in Android: Model-View-Controller (MVC), Model-View-Presenter (MVP), and Model-View-ViewModel (MVVM).
Model-View-Controller (MVC) separates the application into three main components: the model (data), the view (UI), and the controller (logic).
Model-View-Presenter (MVP) separates the application into three main components: the model (data), the view (UI), and the presenter (handles user input and updates the view).
Model-View-ViewModel...read more

Asked in Merkle Sokrati

Q. How do you scale an application?
Scaling an application involves optimizing performance, increasing capacity, and ensuring reliability.
Use load balancing to distribute traffic evenly across servers.
Implement caching to reduce database load and improve response times.
Optimize database queries and indexes for faster data retrieval.
Use horizontal scaling by adding more servers to handle increased traffic.
Monitor performance metrics and scale resources accordingly.
Consider microservices architecture for better s...read more

Asked in Trackier

Q. How does the Room library work?
Room library is a persistence library that provides an abstraction layer over SQLite to allow for more robust database access while leveraging the full power of SQLite.
Room library simplifies database interactions by providing compile-time verification of SQL queries.
It includes components like Entity, DAO (Data Access Object), and Database to define database schema and access data.
Room library also supports LiveData and RxJava for reactive programming with databases.
Example:...read more
Android Engineer Jobs




Asked in Park Plus

Q. Depth of SOLID principles
SOLID principles are a set of five design principles in object-oriented programming to make software designs more understandable, flexible, and maintainable.
S - Single Responsibility Principle: A class should have only one reason to change.
O - Open/Closed Principle: Software entities should be open for extension but closed for modification.
L - Liskov Substitution Principle: Objects of a superclass should be replaceable with objects of its subclasses without affecting the func...read more

Asked in Trackier

Q. How do coroutines work?
Coroutines are lightweight threads that can be suspended and resumed, allowing for asynchronous programming in Kotlin.
Coroutines are defined using the 'suspend' keyword in Kotlin.
They can be launched using 'launch' or 'async' functions from the kotlinx.coroutines library.
Coroutines can suspend execution using 'delay' or other suspension points.
They can communicate with each other using channels or other forms of structured concurrency.
Share interview questions and help millions of jobseekers 🌟

Asked in Target

Q. Recompositions of composables
Recompositions of composables allow for efficient updates of UI components in Jetpack Compose.
Recompositions are triggered when the state of a composable changes.
Composables are re-evaluated during recomposition to reflect the updated state.
Using key parameters can optimize recompositions by preserving state across recomposition calls.
Interview Questions of Similar Designations
Interview Experiences of Popular Companies






Calculate your in-hand salary
Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary


Reviews
Interviews
Salaries
Users

