MSCI
50+ Drogheria Sellers Interview Questions and Answers
Q1. Sliding Window Maximum Problem Statement
You are given an array/list of integers with length 'N'. A sliding window of size 'K' moves from the start to the end of the array. For each of the 'N'-'K'+1 possible wi...read more
Q2. The Skyline Problem
Compute the skyline of given rectangular buildings in a 2D city, eliminating hidden lines and forming the outer contour of the silhouette when viewed from a distance. Each building is descri...read more
Q3. Have you found a conflicting situation about Data Science projects, where a team member suggests an approach which you do not approve. What would you do in such situation?
Q4. How will you design Android lock pattern, which days Structure will you use for that, code for same.
Designing an Android lock pattern using Java
Use a 3x3 grid to create the pattern
Store the pattern as a string of numbers
Use onTouchListener to detect user input
Use Canvas to draw the pattern on the screen
Use SharedPreferences to store and retrieve the pattern
Q5. What is an array, and what are the different types of arrays?
An array is a collection of items stored at contiguous memory locations, allowing efficient data management.
1. One-Dimensional Array: A linear list of elements, e.g., ['apple', 'banana', 'cherry'].
2. Two-Dimensional Array: A grid-like structure, e.g., [['apple', 'banana'], ['cherry', 'date']].
3. Multi-Dimensional Array: Arrays with more than two dimensions, e.g., a 3D array for storing data in layers.
4. Dynamic Array: An array that can grow or shrink in size, e.g., using Arra...read more
Q6. What are HTML and HTML5, and what are the differences between them?
HTML is the standard markup language for creating web pages, while HTML5 is its latest version with enhanced features.
HTML (HyperText Markup Language) is the foundation of web pages, while HTML5 is the fifth version with new capabilities.
HTML5 supports multimedia elements like <audio> and <video>, which were not natively supported in earlier versions.
HTML5 introduces semantic elements like <header>, <footer>, <article>, and <section> for better structure and accessibility.
HTM...read more
Q7. Design question- how to design a fail safe iterator
A fail-safe iterator should handle exceptions and errors gracefully without crashing the program.
Use try-catch blocks to handle exceptions and errors
Implement a hasNext() method to check if there are more elements to iterate over
Use a current pointer to keep track of the current element being iterated over
Ensure that the iterator is thread-safe
Provide clear documentation on how to use the iterator
Q8. What is your knowledge about Real Estate?
I have extensive knowledge about real estate and its various aspects.
I have a strong understanding of real estate market trends and dynamics.
I am familiar with property valuation methods and techniques.
I have experience in analyzing real estate data and generating insights.
I am knowledgeable about real estate laws and regulations.
I have worked with real estate databases and software tools.
I have conducted market research and feasibility studies for real estate projects.
Q9. What are the parameters which affect Real Estate prices?
Parameters affecting real estate prices include location, market demand, property size, condition, and economic factors.
Location: Prices vary based on the desirability and proximity to amenities.
Market demand: Prices are influenced by the level of demand for properties in a particular area.
Property size: Larger properties generally command higher prices.
Condition: Well-maintained properties tend to have higher values.
Economic factors: Factors like interest rates, employment r...read more
Q10. What are the differences between JavaScript and Java?
JavaScript is a scripting language for web development, while Java is a robust, object-oriented programming language.
JavaScript is primarily used for client-side web development, while Java is used for server-side applications.
JavaScript is dynamically typed, meaning variable types are determined at runtime, whereas Java is statically typed, requiring explicit type declaration.
JavaScript runs in web browsers, while Java applications run on the Java Virtual Machine (JVM).
JavaS...read more
Q11. Interest rate risk for Zero coupon bond vs coupon bond
Zero coupon bonds have higher interest rate risk than coupon bonds.
Zero coupon bonds have no coupon payments, so their prices are more sensitive to changes in interest rates.
Coupon bonds have regular coupon payments, which can offset some of the price changes due to interest rate fluctuations.
As interest rates rise, the price of zero coupon bonds falls more than the price of coupon bonds.
As interest rates fall, the price of zero coupon bonds rises more than the price of coupo...read more
Q12. What is the purpose of the slice function in Redux Toolkit?
The slice function in Redux Toolkit is used to create a copy of a portion of an array state.
Allows for immutably updating arrays in Redux state by creating a new array with a subset of elements.
Can be used to remove elements from an array without mutating the original state.
Example: const newState = state.slice(0, 2) will create a new array with the first 2 elements of the original state.
Q13. How would you find object is Array without using Array.isArray() function?
Check if an object is an array without using Array.isArray() function
Check if the object has a length property
Check if the object has a slice method
Check if the object has an index of 0
Q14. What are interface and inheritance in programming?
Interfaces define contracts for classes, while inheritance allows classes to share properties and methods.
An interface is a reference type in programming that defines a contract of methods and properties without implementation.
Example of an interface in Java: 'interface Animal { void sound(); }'
Inheritance allows a class to inherit properties and methods from another class, promoting code reusability.
Example of inheritance in Python: 'class Dog(Animal): def sound(self): retur...read more
Q15. What is the definition of a class in programming?
A class in programming is a blueprint for creating objects, encapsulating data and methods to operate on that data.
A class defines properties (attributes) and behaviors (methods) of objects.
Example: In a 'Car' class, attributes could be 'color' and 'model', while methods could be 'drive()' and 'stop()'.
Classes support inheritance, allowing new classes to inherit properties and methods from existing ones.
Example: A 'ElectricCar' class can inherit from the 'Car' class, adding n...read more
Q16. You have a 2d array {{1,2},{1,3},{5,6}}. Calculate the sum of elements of 1st position in every array with Java 8.
Calculate sum of elements at 1st position in each array using Java 8.
Use Java 8 stream to map each array to its 1st element and then sum them up.
Example: {{1,2},{1,3},{5,6}} -> 1 + 1 + 5 = 7
Q17. Explain recent projects in Predictive Analytics, Anomaly Detection etc.
Q18. What is Cascading Style Sheets (CSS)?
Cascading Style Sheets (CSS) is a stylesheet language used to describe the presentation of a document written in HTML or XML.
CSS controls layout, colors, fonts, and overall visual appearance of web pages.
It allows for responsive design, adapting layouts for different screen sizes (e.g., mobile vs. desktop).
CSS can be applied inline, embedded in the head of an HTML document, or linked as an external stylesheet.
Example: Using CSS to change the background color: 'body { backgrou...read more
Q19. What factors affect real estate property valuation
Factors affecting real estate property valuation include location, market conditions, property size and condition, amenities, and economic factors.
Location: The location of a property plays a significant role in its valuation. Factors such as proximity to amenities, schools, transportation, and desirable neighborhoods can impact property value.
Market conditions: The state of the real estate market, including supply and demand, interest rates, and economic conditions, can infl...read more
Q20. Options payoff for Long call and short put
Long call and short put have similar payoff structures.
Both strategies have unlimited profit potential and limited loss potential.
Long call profits when the underlying asset price rises above the strike price.
Short put profits when the underlying asset price stays above the strike price.
Both strategies have a breakeven point at the strike price plus the premium paid/received.
Long call and short put can be used separately or together in various trading strategies.
Q21. What is polymorphism in programming?
Polymorphism allows methods to do different things based on the object it is acting upon, enhancing flexibility in programming.
Polymorphism is a core concept in object-oriented programming.
It allows methods to be defined in multiple forms.
Example: A function 'draw()' can be used for both 'Circle' and 'Square' classes.
There are two types: compile-time (method overloading) and runtime (method overriding).
Polymorphism promotes code reusability and scalability.
Q22. Linked list cycle detection, Uses of stack and heap
Linked list cycle detection involves using two pointers to traverse the list at different speeds. Stack and heap are memory management concepts in programming.
Use two pointers, one moving at double the speed of the other, to detect a cycle in a linked list.
Stack is used for static memory allocation, while heap is used for dynamic memory allocation.
Example: In C programming, stack memory is used for local variables, while heap memory is used for dynamically allocated memory us...read more
Q23. Expenses and Income of Real Estate investment
Real estate investment involves managing expenses and maximizing income to ensure profitability.
Expenses in real estate investment include property taxes, insurance, maintenance costs, and property management fees.
Income sources can include rental income, appreciation in property value, and potential tax benefits.
Analyzing expenses and income is crucial for determining the overall profitability of a real estate investment.
Strategies such as increasing rental rates, reducing v...read more
Q24. LRU cache memory implementation using linked list
LRU cache memory can be implemented using a linked list to store and manage recently used items efficiently.
Use a doubly linked list to keep track of the order of items based on their usage.
When an item is accessed, move it to the front of the list to indicate it is the most recently used.
If the cache is full, remove the least recently used item from the end of the list.
Maintain a hashmap for quick access to items in the linked list.
Q25. What you know abt real Estate
Real estate involves buying, selling, and managing properties for investment or personal use.
Real estate includes residential, commercial, and industrial properties.
Investing in real estate can provide rental income and potential appreciation in property value.
Real estate analysts analyze market trends, property values, and investment opportunities.
Real estate can be influenced by factors such as location, economic conditions, and government regulations.
Q26. How is data stored in power BI
Data in Power BI is stored in a compressed columnar format called VertiPaq.
Data in Power BI is stored in a compressed columnar format called VertiPaq.
VertiPaq stores data in memory, allowing for fast query performance.
Power BI also supports DirectQuery mode where data is queried directly from the data source.
Data can be imported into Power BI or connected live to the data source.
Q27. What is visitor pattern?
Visitor pattern is a design pattern where a visitor class is used to perform operations on elements of a data structure.
Visitor pattern allows adding new operations to existing classes without modifying them
It separates the algorithm from the object structure on which it operates
Commonly used in compilers, interpreters, and other complex systems
Q28. What is software?
Software is a collection of programs and data that instructs a computer on how to perform specific tasks.
Software can be categorized into system software (e.g., operating systems like Windows) and application software (e.g., Microsoft Word).
Programming languages (e.g., Python, Java) are used to create software applications.
Software can be proprietary (e.g., Adobe Photoshop) or open-source (e.g., Linux).
Software updates are essential for security and functionality improvements...read more
Q29. What is an operator?
An operator is a person or system that performs specific tasks or functions, often involving data manipulation or processing.
Operators can be human or automated systems, like software applications.
In data entry, an operator inputs, updates, or manages data in databases.
Examples include data entry clerks, machine operators, and software operators.
Operators may also perform quality checks to ensure data accuracy.
Q30. What is a data type?
A data type defines the kind of data a variable can hold, such as integers, strings, or booleans.
Integer: Represents whole numbers, e.g., 1, 42, -7.
String: Represents text, e.g., 'Hello', 'Data Entry'.
Boolean: Represents true/false values, e.g., true, false.
Float: Represents decimal numbers, e.g., 3.14, -0.001.
Q31. How do you prioritise tasks
I prioritise tasks based on deadlines, importance, and impact on overall goals.
I create a to-do list and categorise tasks based on urgency and importance.
I communicate with team members and stakeholders to understand priorities.
I regularly reassess and adjust priorities as needed to meet deadlines and goals.
Q32. Valuation of credit default swap
Valuation of credit default swap
Valuation of credit default swap involves estimating the probability of default and the expected loss in case of default
The valuation also takes into account the credit spread and the recovery rate
Various models such as structural models, reduced-form models, and Monte Carlo simulations are used for valuation
Market data such as credit spreads, interest rates, and volatility are also used in the valuation process
Q33. what do you know about gst
GST stands for Goods and Services Tax, a value-added tax levied on most goods and services sold for domestic consumption in a country.
GST is a consumption tax that is ultimately borne by the end consumer.
It replaced multiple indirect taxes in India and streamlined the tax system.
GST has different rates for different goods and services, such as 5%, 12%, 18%, and 28%.
Input tax credit can be claimed under GST, allowing businesses to reduce their tax liability by claiming credit ...read more
Q34. What is VAR? Methods of calculating VAR
VAR stands for Value at Risk, a measure used to assess the potential loss in value of a portfolio due to market risk.
VAR is a statistical measure used to quantify the level of financial risk within a firm or investment portfolio.
There are different methods to calculate VAR such as historical simulation, parametric method, and Monte Carlo simulation.
Historical simulation involves using historical data to estimate potential losses.
Parametric method uses statistical techniques t...read more
Q35. Value at risk methods and uses
Value at risk (VaR) is a statistical measure used to quantify the level of financial risk within a portfolio.
VaR estimates the maximum potential loss that an investment portfolio may suffer within a given time frame and confidence level.
It is used by financial institutions to manage risk and set capital requirements.
VaR can be calculated using various methods such as historical simulation, Monte Carlo simulation, and parametric methods.
For example, a bank may use VaR to deter...read more
Q36. What is Java?
Q37. What is a balance sheet
A balance sheet is a financial statement that provides a snapshot of a company's financial position at a specific point in time.
It shows a company's assets, liabilities, and shareholders' equity.
Assets are what the company owns, liabilities are what it owes, and shareholders' equity is the difference between the two.
The balance sheet follows the formula: Assets = Liabilities + Shareholders' Equity.
It helps investors and analysts assess the financial health and stability of a ...read more
Q38. Difference between topic and queue
Topics allow multiple subscribers to receive the same message, while queues only allow one subscriber to receive a message.
Topics are used in publish-subscribe messaging pattern
Queues are used in point-to-point messaging pattern
Messages sent to a topic are broadcasted to all subscribers
Messages sent to a queue are received by only one subscriber
Topics are stateless, while queues are stateful
Q39. What is normalisation
Normalization is the process of organizing data in a database to reduce redundancy and improve data integrity.
Normalization involves breaking down data into smaller, more manageable tables
It helps in reducing data redundancy by storing data in a structured manner
Normalization ensures data integrity by minimizing anomalies such as update, insert, and delete anomalies
Q40. How did you write BRDs
I wrote BRDs by gathering requirements from stakeholders, documenting them clearly, and ensuring alignment with project goals.
Conducting interviews with stakeholders to gather requirements
Documenting requirements in a clear and structured manner
Ensuring alignment of requirements with project goals
Reviewing and revising BRDs based on feedback
Q41. What is volatile?
Volatile refers to a type of memory storage that is temporary and can change frequently.
Volatile memory loses its data when power is turned off, unlike non-volatile memory.
Volatile memory is commonly used for temporary storage of data that needs to be quickly accessed and modified.
Examples of volatile memory include RAM (Random Access Memory) in computers and cache memory in processors.
Q42. Designing Football Application
Design a football application for fans to track scores, stats, and news.
Include live score updates for ongoing matches
Provide player and team statistics
Offer news articles and updates on transfers and injuries
Allow users to create fantasy teams and participate in leagues
Q43. What is DNS how it works
DNS stands for Domain Name System, it translates domain names to IP addresses.
DNS is like a phone book for the internet, translating domain names (like google.com) to IP addresses (like 172.217.3.206).
DNS works by sending queries to a series of servers until it finds the correct IP address for the requested domain.
DNS servers store records like A records (mapping domain names to IP addresses) and MX records (mapping domain names to mail servers).
Q44. Get all permutations of [1,2,3]
Generate all permutations of [1,2,3] as array of strings
Use recursion to generate all possible permutations
Swap elements to create different permutations
Base case: when only one element is left, add to result array
Q45. Internal working of hashmap
HashMap is a data structure that stores key-value pairs and uses hashing to retrieve values quickly.
HashMap uses an array of buckets to store key-value pairs
Each bucket contains a linked list of entries with the same hash code
When a key-value pair is added, its hash code is used to determine the bucket and added to the linked list
When a value is retrieved, its hash code is used to find the bucket and then the linked list is searched for the key
HashMap uses load factor to dete...read more
Q46. What is microservices ?
Microservices are a software development technique where applications are composed of small, independent services that communicate over well-defined APIs.
Microservices break down a large application into smaller, loosely coupled services.
Each service is responsible for a specific function and can be developed, deployed, and scaled independently.
Communication between services is typically done through APIs, often using lightweight protocols like HTTP or messaging queues.
Micros...read more
Q47. Design Thread collector class
Thread collector class to manage and organize threads in a system
Create a ThreadCollector class with methods to add, remove, and retrieve threads
Implement a data structure like a list or queue to store the threads
Ensure thread safety by using synchronization mechanisms like locks or semaphores
Q48. Sql query to remove duplicates
Use the DISTINCT keyword in a SELECT statement to remove duplicates from a table.
Use the SELECT DISTINCT statement to retrieve unique rows from a table.
For example: SELECT DISTINCT column_name FROM table_name;
Another way is to use the GROUP BY clause with the COUNT() function to remove duplicates.
For example: SELECT column_name, COUNT(*) FROM table_name GROUP BY column_name;
Q49. what is account receivables
Account receivables refer to the money owed to a company by its customers for goods or services provided on credit.
Account receivables are assets on a company's balance sheet.
They represent the amount of money owed to the company by customers.
Companies often have terms for when payments are due, such as net 30 or net 60.
Monitoring and managing account receivables is important for cash flow management.
Example: Company A sells goods to Company B on credit. The amount owed by Co...read more
Q50. What is Index ?
An index is a data structure that improves the speed of data retrieval operations on a database table.
Indexes are used to quickly locate data without having to search every row in a database table.
They are created on one or more columns of a table to speed up query processing.
Examples of indexes include primary keys, unique keys, and non-unique indexes.
Q51. What is RE Index ?
RE Index is a measure used in statistics to compare the relative importance of different variables in a regression model.
RE Index stands for Relative Importance Index.
It is used to determine the contribution of each independent variable to the overall variance explained by the regression model.
A higher RE Index value indicates a greater importance of the variable in predicting the dependent variable.
RE Index values range from 0 to 1, with 1 indicating the highest importance.
Q52. what is PE Ratio ?
PE Ratio is a financial metric used to evaluate a company's stock price relative to its earnings.
PE Ratio is calculated by dividing the current stock price by the earnings per share (EPS).
It is used by investors to determine if a stock is overvalued or undervalued.
A high PE Ratio may indicate that a stock is overvalued, while a low PE Ratio may suggest it is undervalued.
For example, if a company's stock is trading at $50 per share and its EPS is $5, the PE Ratio would be 10.
More about working at MSCI
Top HR Questions asked in Drogheria Sellers
Interview Process at Drogheria Sellers
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month