Add office photos
Employer?
Claim Account for FREE

Ola Electric Mobility

3.3
based on 1.6k Reviews
Filter interviews by

Soumi's Herbal Products Interview Questions and Answers

Updated 7 Oct 2024
Popular Designations

Q1. Lifecycle of activity. What would be the state if app is running in the background. When it will be in onStop and onRestart state?

Ans.

The app lifecycle includes states like running in the background, onStop, and onRestart.

  • App running in the background: When the app is not visible but still running, it is in the background state.

  • onStop state: Occurs when the activity is no longer visible to the user.

  • onRestart state: Follows onStop and is called when the activity is being re-displayed to the user.

Add your answer

Q2. How many ways we can share data between one app to another app?

Ans.

There are multiple ways to share data between apps, including using intents, content providers, broadcast receivers, and shared preferences.

  • Using Intents: Allows apps to send and receive data through an Intent object.

  • Content Providers: Enable apps to share data with other apps by exposing a structured set of data through a URI.

  • Broadcast Receivers: Apps can send broadcasts to other apps to share data or events.

  • Shared Preferences: Apps can store and retrieve key-value pairs to ...read more

Add your answer

Q3. How we can perform background tasks in Android?

Ans.

Background tasks in Android can be performed using services, AsyncTask, JobScheduler, or WorkManager.

  • Use Services for long-running tasks in the background

  • AsyncTask for short background tasks that need to interact with the UI

  • JobScheduler for deferrable background tasks that require network connectivity

  • WorkManager for tasks that need to run reliably across different Android versions

Add your answer

Q4. What is AIDL in Android development?

Ans.

AIDL stands for Android Interface Definition Language, used for inter-process communication in Android development.

  • AIDL is a tool used to define the programming interface that clients and servers use to communicate with each other in Android.

  • It allows different Android components to communicate with each other across different processes.

  • AIDL files define the methods that can be called remotely, along with the data types that can be passed.

Add your answer
Discover Soumi's Herbal Products interview dos and don'ts from real experiences

Q5. Difference between Threads and Coroutines.

Ans.

Threads are independent sequences of execution within a process, while coroutines are cooperative routines that can pause and resume.

  • Threads are managed by the operating system, while coroutines are managed by the programmer.

  • Threads run concurrently and can execute in parallel on multiple cores, while coroutines are typically single-threaded.

  • Threads have their own stack and memory space, while coroutines share the same stack and memory space.

  • Threads are preemptive, meaning th...read more

Add your answer

Q6. What is a service?

Ans.

A service is a piece of code that performs specific tasks or functions to support the overall functionality of a software application.

  • Services are often used for tasks such as data processing, communication with external systems, or background tasks.

  • Examples of services include web services, REST APIs, and microservices.

  • Services can run independently of the user interface and can be accessed by multiple components within an application.

Add your answer

Q7. Intersection of Linked list

Ans.

Intersection of two linked lists is finding the common node(s) between them.

  • Traverse both lists and compare each node to find the common node(s).

  • Use a hash table to store the nodes of one list and check for their presence in the other list.

  • Calculate the length of both lists and move the pointer of the longer list to match the length of the shorter list, then compare each node.

Add your answer

Q8. Sort and Merge two linked list

Ans.

Sort and merge two linked lists

  • Traverse both linked lists simultaneously

  • Compare the values of nodes and merge them in sorted order

  • Handle cases where one list is longer than the other

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at Soumi's Herbal Products

based on 4 interviews
Interview experience
3.5
Good
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Software Developer Interview Questions from Similar Companies

4.0
 • 81 Interview Questions
3.1
 • 19 Interview Questions
4.0
 • 16 Interview Questions
3.8
 • 12 Interview Questions
3.5
 • 10 Interview Questions
3.8
 • 10 Interview Questions
View all
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter