Ixigo.com
10+ Apollo Pharmacy Interview Questions and Answers
Q1. Life cycle methods in react js, explain context API, advantages and disadvantages of context API, how is redux different from context API, different optimization techniques in react js, what are core web vitals...
read moreQuestions related to React JS, optimization techniques, core web vitals, and webpack.
React JS life cycle methods include componentDidMount, componentDidUpdate, and componentWillUnmount.
Context API is used for sharing data between components without passing props down the component tree.
Advantages of Context API include avoiding prop drilling and making it easier to manage global state.
Disadvantages of Context API include potential performance issues and difficulty with testin...read more
You are given an array/list 'ARR' consisting of N integers, which contains elements only in the range 0 to N - 1. Some of the elements may be repeated in 'ARR'. Your task is to find all ...read more
Q3. puzzles: find the fastest 3 horses in 25 horse race with a race and 5 horses can be run at a time
Divide the 25 horses into 5 groups of 5 horses each, race them, then race the winners to determine the fastest 3 horses.
Divide the 25 horses into 5 groups of 5 horses each and race them.
Identify the top horse from each group.
Race the top horses to determine the fastest 3 horses.
Q4. in a BST two numbers are swapped find swapped nos.
To find swapped numbers in a BST, perform inorder traversal and keep track of previous node.
Perform inorder traversal of the BST
Keep track of the previous node while traversing
If at any point, the current node's value is less than the previous node's value, those are the swapped numbers
Q5. Techniques to optimise list rendering? List virtualisation
List virtualisation optimises rendering by only rendering items that are currently visible on the screen.
Use virtual scrolling to render only the visible items in a list
Implement windowing techniques to dynamically load and unload items as the user scrolls
Utilize libraries like React Virtualized or Angular CDK Virtual Scroll for efficient list rendering
Q6. difference between pseudo elements and pseudo classes
Pseudo elements are used to style specific parts of an element, while pseudo classes are used to style an element based on its state or position.
Pseudo elements are denoted by :: before the element name, like ::before or ::after
Pseudo classes are denoted by a single colon before the class name, like :hover or :active
Pseudo elements are used to style parts of an element that do not exist in the DOM, like adding content before or after an element
Pseudo classes are used to style...read more
Q7. to find the kth minimum element from BST
To find the kth minimum element from a Binary Search Tree (BST)
Perform an in-order traversal of the BST to get elements in sorted order
Return the kth element from the sorted list
Time complexity: O(n) where n is the number of nodes in the BST
Q8. Difference between inline and block elements
Inline elements do not start on a new line and only take up as much width as necessary, while block elements start on a new line and take up the full width available.
Inline elements do not force a new line to start and only take up as much width as necessary (e.g. <span>, <a>, <strong>).
Block elements always start on a new line and take up the full width available (e.g. <div>, <p>, <h1>).
Inline elements can have margin and padding applied horizontally but not vertically.
Block...read more
Q9. Tell us about the Technical Knowledge you have about Linux and Networking.
I have extensive technical knowledge in Linux and Networking, including experience with system administration, network configuration, and troubleshooting.
Proficient in Linux operating systems such as Ubuntu, CentOS, and Red Hat
Experience with network protocols such as TCP/IP, DNS, DHCP, and VPN
Skilled in configuring routers, switches, firewalls, and other network devices
Knowledge of security practices and tools for securing networks and systems
Familiar with virtualization tec...read more
Design Caching library
Number of edges in 10 * 10 cube
Q12. Data structure used to create a dictionary
Hash table is commonly used data structure to create a dictionary.
Hash table is efficient for fast lookups and insertions.
Keys are hashed to generate an index where the value is stored.
Examples: Python dictionaries, Java HashMap, C++ unordered_map.
Q13. Create a counter component with button to start and stop timer every second and reset button.
Create a counter component with start, stop, and reset buttons for a timer.
Create a state variable to store the current count
Use setInterval to increment the count every second when the timer is started
Add buttons to start, stop, and reset the timer
Implement functions for starting, stopping, and resetting the timer
Q14. Types of primitives in JS
Primitives in JS are data types that are not objects and are immutable.
Types of primitives in JS include string, number, boolean, null, undefined, and symbol.
Primitives are passed by value, not by reference.
Examples: 'hello' (string), 42 (number), true (boolean), null, undefined, Symbol('foo')
Q15. Assumptions of Linear regression? Randonforesrt? information gain?
Assumptions and characteristics of linear regression, random forest, and information gain.
Assumptions of linear regression include linearity, independence, homoscedasticity, and normality of residuals.
Random forest is an ensemble learning method that builds multiple decision trees and merges them together to improve performance.
Information gain is a measure used in decision trees to determine the relevance of a feature by calculating the reduction in entropy or impurity.
Q16. How to design uber
Designing Uber involves creating a platform for on-demand transportation services.
Develop a user-friendly mobile app for customers to request rides
Implement a driver app for drivers to accept ride requests and navigate to pick-up locations
Build a backend system to match drivers with riders based on location and availability
Incorporate a payment system for seamless transactions
Include features like real-time tracking, ratings, and reviews for both drivers and riders
Q17. Last 2nd Highest salary in sql
To find the last 2nd highest salary in SQL, use a subquery with the MAX function.
Use a subquery to find the maximum salary excluding the highest salary
Select the maximum salary from the result of the subquery
Interview Process at Apollo Pharmacy
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month