Filter interviews by
I was interviewed in Nov 2023.
I applied via Naukri.com and was interviewed in Aug 2024. There was 1 interview round.
Data class in Kotlin is used to represent a simple data container with automatically generated methods like equals(), hashCode(), toString(), and copy().
Data classes are declared using the 'data' keyword before the class keyword.
Properties of data classes are automatically generated component functions for destructuring declarations.
Data classes cannot be abstract, open, sealed, or inner.
Example: data class User(val na
ViewModel is a class that stores and manages UI-related data in a lifecycle-conscious way. MVVM is an architectural pattern that separates the UI from the business logic.
ViewModel is part of the Android Architecture Components and is used to store and manage UI-related data in a lifecycle-conscious way.
ViewModel survives configuration changes such as screen rotations and retains its data.
MVVM stands for Model-View-View...
Coroutines are a way to perform asynchronous operations in Android, securing app data involves encryption, SSL pinning enhances security, FCM for notifications.
Coroutines are used for managing asynchronous operations in Android, allowing for efficient and non-blocking code execution.
Securing app data involves using encryption techniques such as AES to protect sensitive information from unauthorized access.
SSL pinning i...
Coding project on my previous company
posted on 9 Jan 2024
I applied via Recruitment Consulltant and was interviewed in Dec 2023. There were 3 interview rounds.
Higher Order and Lambda Functions in Kotlin
Higher order functions are functions that take other functions as parameters or return functions
Lambda functions are anonymous functions that can be used as arguments or return values in higher order functions
They provide a concise way to write code and enable functional programming in Kotlin
Multi Modular Project structure is an architectural approach that divides an application into multiple modules for better organization and scalability.
Divide the application into separate modules based on functionality or features.
Each module should have its own set of code, resources, and dependencies.
Modules can communicate with each other through defined interfaces or APIs.
Modularization helps in code reusability, e...
Null pointer prevention and type safety in Kotlin
Kotlin uses nullable and non-nullable types to prevent null pointer exceptions
The safe call operator '?' can be used to safely access nullable variables
The '!!' operator can be used to explicitly throw a null pointer exception
Kotlin's type system ensures type safety by checking types at compile-time
Yahsjsj uejjeje iejejje jejejrj
posted on 20 May 2024
I applied via Naukri.com and was interviewed in Apr 2024. There was 1 interview round.
The lifecycle of an Activity in Android refers to the series of states an Activity goes through from creation to destruction.
An Activity goes through states like onCreate, onStart, onResume, onPause, onStop, onDestroy, etc.
Each state has specific methods that can be overridden to perform actions at that state.
For example, onCreate is called when the Activity is first created, onResume is called when the Activity is bro
To check if a number is palindrome, reverse the number and compare it with the original number.
Convert the number to a string to easily reverse it
Reverse the string and compare it with the original string
If they are the same, the number is a palindrome
To find the smallest number in a list, iterate through the list and keep track of the smallest number found so far.
Iterate through the list and compare each number with the current smallest number.
If a number is smaller than the current smallest number, update the smallest number.
Return the smallest number found after iterating through the entire list.
Scope functions in Kotlin are functions that allow you to execute a block of code within the context of an object.
There are five scope functions in Kotlin: let, run, with, apply, and also.
Each scope function has a specific use case and can help improve code readability and reduce boilerplate code.
Scope functions can be used to perform operations on an object and return a result or modify the object itself.
For example, ...
LazyRow is a Jetpack Compose component for displaying horizontally scrolling lists, while RecyclerView is a traditional Android view for displaying large data sets efficiently.
LazyRow is part of Jetpack Compose, RecyclerView is part of the Android framework
LazyRow is more declarative and easier to use for simple lists, RecyclerView is more powerful and customizable for complex lists
LazyRow automatically handles recycli...
TCS
Accenture
Wipro
Cognizant