Add office photos
Employer?
Claim Account for FREE

Nykaa

3.5
based on 918 Reviews
Filter interviews by

Lahori Zeera Interview Questions and Answers

Updated 19 Sep 2024
Popular Designations

Q1. What is a Service? How can a notification in a Foreground Service interact with other components e.g. buttons in a music player?

Ans.

A Service is a component that runs in the background to perform long-running operations. A Foreground Service is a Service that has a notification to show the user that it is running.

  • A Service is used to perform long-running operations in the background, such as playing music in a music player app.

  • A Foreground Service is a type of Service that has a notification to indicate to the user that it is running and to give it higher priority, making it less likely to be killed by th...read more

Add your answer

Q2. Which data structure is used to store views in a layout?

Ans.

The data structure used to store views in a layout is a tree structure.

  • Views in a layout are stored in a hierarchical tree structure.

  • Each view is a node in the tree, with parent-child relationships defining the layout.

  • Examples include LinearLayout, RelativeLayout, and ConstraintLayout.

Add your answer

Q3. What functions would you add in an Image Loader library?

Ans.

Functions to add in an Image Loader library for Senior Android Developer role

  • Support for loading images from different sources like network, local storage, and resources

  • Caching mechanism to improve performance and reduce network calls

  • Ability to handle image loading in different formats like JPEG, PNG, GIF, etc.

  • Support for placeholder images while the actual image is being loaded

  • Error handling for failed image loading requests

  • Option to customize image loading behavior like res...read more

Add your answer

Q4. Why do we prefer the use of ConstraintLayout?

Ans.

ConstraintLayout is preferred for its flexibility, efficiency, and ease of use in creating complex layouts.

  • Allows for creating complex layouts with a flat view hierarchy, improving performance

  • Supports responsive design with constraints that adapt to different screen sizes

  • Easier to use and understand compared to other layout options like RelativeLayout

  • Provides tools like Layout Editor in Android Studio for visual editing of layouts

Add your answer
Discover Lahori Zeera interview dos and don'ts from real experiences

Q5. What are content providers? What are its uses?

Ans.

Content providers are components in Android that manage access to a structured set of data. They are used to share data between apps.

  • Content providers allow apps to securely share data with other apps

  • They provide a standard interface for querying and modifying data

  • Content providers are often used to access data from databases or files

  • Examples include the Contacts Provider for accessing contact information and the Media Provider for accessing media files

Add your answer

Q6. Generics in kotlin and java interportability with kotlin

Ans.

Generics in Kotlin and Java can be used interchangeably, but there are some differences in syntax and features.

  • Kotlin supports declaration-site variance, while Java supports use-site variance.

  • In Kotlin, you can use reified generics with inline functions, which is not possible in Java.

  • Kotlin has nullable types by default, while in Java you need to use wildcards for similar behavior.

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories
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
Get AmbitionBox app

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