Filter interviews by
I applied via Approached by Company and was interviewed in Oct 2024. There were 2 interview rounds.
Write a program to print first and last letters of words alternatively from am list
OOPs stands for Object-Oriented Programming. It is based on four main pillars: Inheritance, Encapsulation, Abstraction, and Polymorphism.
Inheritance: Allows a class to inherit properties and behavior from another class. Example: class B extends class A.
Encapsulation: Bundling data and methods that operate on the data into a single unit. Example: using private access modifiers to restrict access to certain data.
Abstract...
View Model Scope determines whether a ViewModel should be scoped to an activity or a fragment.
View Model scoped to activity: shared between all fragments within the activity
View Model scoped to fragment: specific to that fragment only
Use activity scope for data shared across fragments, fragment scope for fragment-specific data
Top trending discussions
I applied via Naukri.com and was interviewed in Aug 2024. There was 1 interview round.
Structs are value types and passed by value, while classes are reference types and passed by reference.
Structs are used for small, simple data types like coordinates or colors.
Classes are used for more complex data types that require inheritance or reference semantics.
Structs are copied when passed around, while classes are passed by reference.
Structs are stack allocated, while classes are heap allocated.
I applied via Company Website and was interviewed in May 2024. There were 2 interview rounds.
Data structure - tree and linkedlist questions asked, binary search tree
Synchronizing threads in Android can be achieved using synchronization blocks or methods.
Use synchronized keyword to create a synchronized block or method
Use locks such as ReentrantLock for more complex synchronization needs
Consider using synchronized collections like ConcurrentHashMap for thread-safe data structures
I was interviewed in Apr 2024.
The answer to the question is provided below.
To create an API flow, start by identifying the endpoints and their functionalities.
Design the UI and UX testing by using appropriate design patterns like MVC or MVVM.
Implement the API calls and handle the responses using networking libraries like Alamofire.
Use XCTest or UI Testing frameworks for automated UI and UX testing.
Mock the API responses for testing purposes using t...
I applied via Approached by Company
The flow of API implementation can be designed using design patterns and unit testing.
Identify the design patterns suitable for the API implementation
Create a flow diagram to visualize the steps involved
Implement the API using the chosen design patterns
Write unit tests to ensure the functionality and reliability of the API
Refactor and optimize the code as needed
The design pattern for API flow involves defining the structure and sequence of API calls.
Identify the required API endpoints and their parameters
Determine the order and dependencies of API calls
Handle error scenarios and implement error handling mechanisms
Consider authentication and authorization requirements
Implement data caching and request throttling if necessary
I applied via Recruitment Consulltant and was interviewed in Jan 2024. There was 1 interview round.
I applied via Approached by Company and was interviewed in Dec 2022. There were 5 interview rounds.
Find the 2nd largest element in an array of strings.
Sort the array in descending order
Access the element at index 1 to get the 2nd largest element
To get the top view of a binary tree, we need to find the nodes that are visible when looking at the tree from the top.
Start from the root node and assign it a horizontal distance of 0.
Traverse the tree using a queue and keep track of the horizontal distance of each node.
For each horizontal distance, only keep the node with the smallest level in the result.
Repeat the process for left and right child nodes, updating the
NotificationCenter is a system that enables communication between different parts of an application.
NotificationCenter allows components of an application to communicate without having direct references to each other.
It uses the observer pattern where objects register themselves as observers for specific notifications.
Notifications can be posted to the NotificationCenter with optional data.
Observers can then receive an...
Design a Twitter feed using SOLID principles
Separate classes for each responsibility (Single Responsibility Principle)
Use interfaces to define behavior and allow for easy swapping of implementations (Open/Closed Principle)
Dependency Injection to decouple components and make testing easier (Dependency Inversion Principle)
Liskov Substitution Principle to ensure derived classes can be substituted for their base classes wi...
Find the first occurrence of a given number in a sorted array.
Use binary search to efficiently find the first occurrence of the number.
Keep track of the index of the first occurrence as you search through the array.
Return the index of the first occurrence once found.
Software Engineer
380
salaries
| ₹6.5 L/yr - ₹23.5 L/yr |
Senior Software Engineer
248
salaries
| ₹9.5 L/yr - ₹36 L/yr |
Software Developer
188
salaries
| ₹5.3 L/yr - ₹19.5 L/yr |
Software Engineer2
158
salaries
| ₹9.8 L/yr - ₹21 L/yr |
Software Engineer II
146
salaries
| ₹9.2 L/yr - ₹20 L/yr |
TCS
Infosys
Wipro
HCLTech