Filter interviews by
Clear (1)
Activity lifecycle refers to the series of states an activity goes through during its lifetime in an Android app.
onCreate() - activity is created
onStart() - activity becomes visible to the user
onResume() - activity is interacting with the user
onPause() - activity is partially visible but still running
onStop() - activity is no longer visible to the user
onDestroy() - activity is being destroyed
MVVM is an architectural pattern used in software development, particularly in Android apps, to separate the user interface from the business logic.
MVVM stands for Model-View-ViewModel
Model represents the data and business logic
View is the UI component that displays the data and interacts with the user
ViewModel acts as a mediator between the Model and the View, handling user interactions and updating the Model
MVVM help...
It was DSA questions
I applied via Naukri.com and was interviewed in Jul 2022. There were 2 interview rounds.
Android Framework is a set of APIs and tools provided by Android to develop applications for Android devices.
It provides a set of pre-built components for building mobile applications.
It includes libraries for UI design, data storage, networking, and more.
Developers can use Android Framework to create apps for smartphones, tablets, wearables, and other devices.
Examples of Android Framework components include Activities...
MVVM stands for Model-View-ViewModel, an architectural pattern used in software development.
MVVM separates the user interface from the business logic and data access layers.
Model represents the data and business logic, View represents the UI, and ViewModel acts as a mediator between the two.
ViewModel exposes data and commands to the View, and communicates with the Model to retrieve and save data.
MVVM is commonly used i...
Room is an abstraction layer over SQLite to allow for more robust database access while harnessing the full power of SQLite.
Room is a part of Android Architecture Components.
It provides compile-time verification of SQL queries.
It simplifies database operations by eliminating boilerplate code.
It supports LiveData and RxJava for reactive programming.
It allows for easy migration of database schema.
It provides a clean API ...
A Builder class is used to create objects with a large number of optional parameters.
Builder class is a creational design pattern.
It separates the construction of a complex object from its representation.
It allows you to create different variations of an object while avoiding constructor pollution.
It has a fluent interface that allows you to chain method calls together.
Example: StringBuilder in Java.
Coroutines and RxJava are both used for asynchronous programming in Android development.
Coroutines are a lightweight solution for asynchronous programming that allow for easy cancellation and error handling.
RxJava is a reactive programming library that uses Observables and Observers to handle asynchronous events.
Both Coroutines and RxJava can be used to simplify complex asynchronous code and improve app performance.
Cor...
SOLID principles are a set of five design principles that help in creating maintainable and scalable software applications.
S - Single Responsibility Principle (SRP)
O - Open-Closed Principle (OCP)
L - Liskov Substitution Principle (LSP)
I - Interface Segregation Principle (ISP)
D - Dependency Inversion Principle (DIP)
Top trending discussions
posted on 10 Mar 2015
Algorithm to find 2 numbers in an array whose sum is equal to a target integer
Use a hash table to store the difference between target and each element in the array
Iterate through the array and check if the current element exists in the hash table
Return the pair of elements that sum up to the target integer
Write a select statement to retrieve work of all users who belong to my team.
Join USERS and WORK tables on user_id
Join MANAGERS and USERS tables on team
Filter by manager_id
The manifest.json file contains the most important information of a Chrome extension.
The manifest.json file includes the version number, permissions, content scripts, background scripts, and other important details.
It is located in the root directory of the extension.
It is required for all Chrome extensions.
Example: "manifest_version": 2, "version": "1.0", "permissions": ["tabs", "storage"]
Hashtable is faster for finding an item than a sorted list.
Hashtable has constant time complexity O(1) for finding an item.
Sorted list has logarithmic time complexity O(log n) for finding an item.
Hashtable uses hashing to directly access the item's location.
Sorted list requires binary search to find the item's location.
Hashtable is ideal for large datasets with frequent lookups.
Sorted list is ideal for datasets that re
JSON and XML are the most popular data interchange formats when using APIs.
JSON (JavaScript Object Notation) is a lightweight format that is easy to read and write. It is widely used in web APIs.
XML (Extensible Markup Language) is a more complex format that is also widely used in web APIs.
Other formats include CSV (Comma Separated Values), YAML (YAML Ain't Markup Language), and Protocol Buffers.
Popular APIs for Social Commerce services
Facebook Graph API for social media integration
Instagram API for photo sharing and tagging
Twitter API for real-time updates and customer engagement
Pinterest API for product discovery and sharing
Google Maps API for location-based services
PayPal API for secure payment processing
Use a script to iterate through each HTML page, locate phone numbers, and update their format.
Write a script using a programming language like Python or JavaScript to iterate through each HTML page
Use regular expressions to locate phone numbers in the pages
Update the format of the phone numbers as needed (e.g. adding country code, changing separators)
Save the updated HTML pages with the new phone number format
Designing Google Suggest system
I would start by analyzing user search patterns and frequently searched keywords
Then, I would create a database of these keywords and their associated search results
I would use indexing services to quickly retrieve relevant results for each keyword
I would also implement machine learning algorithms to improve the accuracy of suggestions over time
Check if a number is a power of 2 and odd.
To check if a number is a power of 2, use bitwise AND operator with the number and its predecessor. If the result is 0, it is a power of 2.
To check if a number is odd, use modulus operator with 2. If the result is 1, it is odd.
Example code in Python:
def is_power_of_two(num):
return num & (num - 1) == 0
def is_odd(num):
return num % 2 == 1
By introducing new menu items, optimizing pricing strategy, and improving the overall dining experience.
Conduct a survey to understand the preferences of employees
Introduce healthy and affordable meal options
Offer discounts for bulk orders or loyalty programs
Partner with local vendors to source fresh ingredients
Improve the ambiance and seating arrangements
Implement online ordering and delivery services
Reviewing 30 million ads from 42 languages in Google AdWords and rejecting non-compliant ads requires a systematic approach.
Create a set of specific rules and guidelines for ad compliance
Use automated tools to filter out ads that violate the rules
Assign a team of reviewers to manually check the remaining ads
Ensure that the reviewers are fluent in the languages of the ads they are reviewing
Regularly update the rules and...
Multiple data structures are used to print nodes in a specific order. One data structure cannot be used alone.
The given order suggests a depth-first search traversal of a tree-like structure.
A stack can be used to keep track of the nodes to be visited.
A queue can be used to store the children of a node in the order they are visited.
An array can be used to store the nodes in the required order.
A linked list can be used ...
Find largest pen using minimum comparisons with tops.
Divide pens into two groups and compare largest pen from each group with largest top.
Repeat the process with the group containing the largest pen until only one pen is left.
The remaining pen is the largest pen.
Total number of comparisons required is 2n-3.
Given n dice with 'a' sides and sum b, return no. of ways to obtain b. Optimize time and space complexity.
Use dynamic programming to reduce time complexity
Create a 2D array to store the number of ways to obtain each sum for each number of dice
Use rolling arrays to optimize space complexity
Example: n=2, a=6, b=7 -> 6 ways to obtain sum 7
Example: n=3, a=4, b=8 -> 21 ways to obtain sum 8
Sort 128 GB data on 2 machines with 64 GB RAM each. Extend to 1000 machines.
Use external sorting algorithm like merge sort or quick sort
Divide data into smaller chunks and sort them individually
Merge sorted chunks using additional RAM
For 1000 machines, use distributed sorting algorithms like MapReduce or Hadoop
Ensure data consistency and fault tolerance in distributed sorting
posted on 3 Dec 2015
posted on 22 Aug 2016
I applied via Campus Placement
based on 3 interviews
Interview experience
based on 1 review
Rating in categories
Senior Software Engineer
1.7k
salaries
| ₹0 L/yr - ₹0 L/yr |
Technical Lead
1.5k
salaries
| ₹0 L/yr - ₹0 L/yr |
Software Engineer
1.3k
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Engineer
931
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Product Engineer
904
salaries
| ₹0 L/yr - ₹0 L/yr |
Bose
Jbl
Sennheiser
Sony