GormalOne
10+ Maharaja Grains Interview Questions and Answers
Q1. What is coroutines? Launch mode of coroutines.
Coroutines are a way to perform asynchronous operations in a sequential manner. Launch modes include launch, async, and runBlocking.
Coroutines are lightweight threads that can be used for asynchronous programming in Kotlin.
Launch mode 'launch' starts a new coroutine and does not return any result.
Launch mode 'async' starts a new coroutine and returns a 'Deferred' object that can be used to retrieve the result.
Launch mode 'runBlocking' blocks the current thread until the corou...read more
Q2. Difference between Table variable and Temporary Table
Table variables are created in memory and are scoped to the batch, while temporary tables are stored in tempdb and can be accessed across batches.
Table variables are created using DECLARE statement, while temporary tables are created using CREATE TABLE statement.
Table variables are limited to the scope of the batch or stored procedure in which they are declared, while temporary tables can be accessed across batches.
Table variables are automatically deallocated when the batch ...read more
Q3. Which SQL execution plan is better
The SQL execution plan that is more efficient and utilizes indexes is better.
Look for execution plans that utilize indexes to minimize the number of rows scanned.
Avoid full table scans if possible, as they can be resource-intensive.
Consider the use of join algorithms like nested loops, hash joins, or merge joins for optimal performance.
Q4. What is Identity Management System
Identity Management System is a system used to manage and control user identities and access permissions within an organization.
It centralizes user data and permissions
It allows for single sign-on across multiple systems
It enhances security by enforcing access controls
Examples include Active Directory, Okta, and OneLogin
Q5. Difference between API and Web Services
API is a set of rules and protocols that allows different software applications to communicate with each other. Web services are a type of API that are accessed over a network, typically using HTTP.
API is a broader term that encompasses all types of interfaces for software communication.
Web services are a specific type of API that are accessed over a network, often using HTTP protocols.
APIs can be used for various purposes such as accessing databases, hardware, or other softw...read more
Q6. How to Communicate Two API
Communicate two APIs by using HTTP requests to send and receive data between them.
Use HTTP methods like GET, POST, PUT, DELETE to interact with APIs
Utilize JSON or XML format to send and receive data
Implement authentication mechanisms like API keys or OAuth for secure communication
Q7. What is SQL Locks
SQL locks are mechanisms used to control access to data in a database to prevent conflicts and ensure data integrity.
SQL locks are used to prevent multiple users from accessing or modifying the same data simultaneously.
There are different types of SQL locks such as shared locks, exclusive locks, and update locks.
Locks can be applied at different levels such as row-level, page-level, or table-level.
For example, a shared lock allows multiple users to read data but only one user...read more
Q8. OOPs concept of core java.
OOPs concept in core Java refers to the principles of Object-Oriented Programming such as Inheritance, Encapsulation, Polymorphism, and Abstraction.
Inheritance: Allows a class to inherit properties and behavior from another class.
Encapsulation: Bundling data and methods that operate on the data into a single unit.
Polymorphism: Ability of a method to do different things based on the object it is acting upon.
Abstraction: Hiding the implementation details and showing only the ne...read more
Q9. LifeCycle of android.
The Android lifecycle refers to the series of states an activity or fragment goes through from creation to destruction.
Android components like activities, services, and broadcast receivers have lifecycles.
The main lifecycle methods include onCreate(), onStart(), onResume(), onPause(), onStop(), and onDestroy().
Understanding the lifecycle is crucial for managing resources and handling state changes.
Example: An activity goes through onCreate() when it is first created, onResume...read more
Q10. Scope function in kotlin.
Scope functions in Kotlin are functions that allow you to execute a block of code within the context of an object.
Scope functions include let, run, with, apply, and also.
They help in reducing boilerplate code and improving code readability.
For example, using 'apply' to initialize properties of an object.
Interview Process at Maharaja Grains
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month