Shiprocket Private Limited
10+ Biocon Limited Interview Questions and Answers
Q1. Shortest path sum with negative integers allowed in matrix. Path starts from top left to bottom right.
Use dynamic programming to find the shortest path sum with negative integers allowed in a matrix.
Implement dynamic programming to store the minimum sum at each cell
Consider negative integers when calculating the sum of the path
Start from the top left cell and iterate through the matrix to find the shortest path sum
Q2. Change detection strategy in Angular
Change detection strategy in Angular is a mechanism used to detect changes in the application state and update the view accordingly.
Angular uses Zone.js for change detection by default
Change detection can be triggered manually using ChangeDetectorRef
Optimizing change detection using OnPush strategy
Q3. what is Closure
Closure is a function that captures the variables from its surrounding scope, even after the surrounding function has finished executing.
Closure allows a function to access and manipulate variables from its outer scope.
It maintains a reference to its outer scope, even after the outer function has returned.
Closure is commonly used in event handlers and callbacks.
Q4. Dif between var, let, const
var is function scoped, let is block scoped, const is block scoped and cannot be reassigned.
var is function scoped, let is block scoped, const is block scoped and cannot be reassigned
var can be redeclared and updated, let can be updated but not redeclared, const cannot be redeclared or updated
Example: var x = 10; let y = 20; const z = 30;
Q5. Rxjs operators used
Rxjs operators are used for handling asynchronous operations in reactive programming.
Map operator: transforms the items emitted by an Observable
Filter operator: emits only those items from an Observable that pass a specified condition
Merge operator: combines multiple Observables into one by merging their emissions
SwitchMap operator: switches to a new Observable each time it is emitted
DebounceTime operator: emits a value from the source Observable only after a specified time h...read more
Q6. Design the generic tool or package using pyspark which allows to create connections to multiple databases like mysql, s3 or api. Fetch the result and do transformations like handling null values and then store ...
read moreDesign a generic tool in pyspark to connect to multiple databases, fetch results, handle null values, and store output in another database
Use pyspark to create a tool that can connect to databases like mysql, s3, or api
Implement functions to fetch data from the databases and perform transformations like handling null values
Utilize pyspark to store the transformed data in another database
Consider using pyspark SQL functions for data transformations
Q7. Next highest number
To find the next highest number, sort the numbers in ascending order and find the number immediately greater than the given number.
Sort the numbers in ascending order
Find the number immediately greater than the given number
Return the next highest number
Q8. How to optimize build in Angular?
Optimizing build in Angular involves reducing bundle size, enabling lazy loading, using AOT compilation, and leveraging tree shaking.
Reduce bundle size by removing unused code and optimizing imports
Enable lazy loading to load modules on demand instead of all at once
Use Ahead-of-Time (AOT) compilation to pre-compile templates and reduce runtime overhead
Leverage tree shaking to eliminate dead code and reduce bundle size
Q9. Number of Island
Count the number of islands in a given grid of '1's and '0's.
Iterate through the grid and for each '1' encountered, perform a depth-first search to mark all connected '1's as visited.
Increment the island count for each new island encountered.
Consider edge cases like grid boundaries and handling visited cells.
Q10. Testcases for lift atm
Testcases for lift ATM
Test if the lift buttons are responsive
Test if the lift stops at the correct floor
Test if the lift door opens and closes properly
Test if the emergency button works
Test if the lift displays the correct floor number
Q11. How to detect and prevent Memory leak
Memory leaks can be detected and prevented by monitoring memory usage, using memory profiling tools, avoiding circular references, and properly managing event listeners.
Monitor memory usage regularly to identify any abnormal increases.
Use memory profiling tools like Chrome DevTools or Valgrind to analyze memory usage.
Avoid creating circular references in your code, as they can prevent objects from being garbage collected.
Properly manage event listeners by removing them when t...read more
Q12. DSA question - Leetcode 3- Longest substring without repeating characters
Find the length of the longest substring without repeating characters.
Use a sliding window approach to keep track of the longest substring without repeating characters.
Use a hashmap to store the index of each character as you iterate through the string.
Update the start index of the window when a repeating character is encountered.
Q13. Give the family bagrounf detail
I come from a close-knit family with strong values and traditions.
My family consists of my parents, siblings, and extended relatives who all support and care for each other.
We have regular family gatherings and celebrations to strengthen our bond.
Our family values include honesty, respect, and hard work which have been instilled in me from a young age.
Q14. Write sql queries
SQL queries for Quality Analyst position
Use SELECT statement to retrieve data from database
Use WHERE clause to filter data based on specific conditions
Use JOIN clause to combine data from multiple tables
Use GROUP BY clause to group data based on specific columns
Use ORDER BY clause to sort data in ascending or descending order
Q15. Write spring code
Spring code is used for building Java applications with ease and efficiency.
Use @ComponentScan annotation to automatically detect and register Spring beans
Use @Autowired annotation for dependency injection
Use @RequestMapping annotation to map HTTP requests to specific handler methods
Q16. What is throttling in js ?
Throttling in JavaScript is a technique used to control the rate at which a function is executed.
Throttling limits the number of times a function can be called over a specified period.
It is commonly used in scenarios like scroll events, resize events, and API requests to prevent performance issues.
Example: Debouncing a search input to limit the number of API calls made while typing.
Q17. minimum planes to cover earth
The minimum number of planes needed to cover the earth is determined by the size of the planes and the coverage area.
The minimum number of planes needed to cover the earth depends on the size of the planes and the coverage area.
Factors such as speed, fuel capacity, and range of the planes also play a role in determining the minimum number needed.
For example, if each plane can cover 1000 square miles and the earth's total surface area is approximately 196.9 million square mile...read more
Q18. Find max sum of sub array
Find the maximum sum of a subarray within an array of integers.
Iterate through the array and keep track of the current sum and maximum sum seen so far.
If the current sum becomes negative, reset it to 0 as it won't contribute to the maximum sum.
Return the maximum sum found after iterating through the entire array.
Q19. Improve the strategy
To improve the strategy, we need to analyze the current process, identify weaknesses, and implement changes accordingly.
Conduct a SWOT analysis to identify strengths, weaknesses, opportunities, and threats
Gather feedback from stakeholders and customers to understand their needs and expectations
Implement process improvements such as automation, standardization, and training programs
Monitor and measure the effectiveness of the new strategy to ensure continuous improvement
Top HR Questions asked in Biocon Limited
Interview Process at Biocon Limited
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month