Add office photos
Engaged Employer

Capgemini

3.8
based on 39.5k Reviews
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by

10+ Emcure Pharmaceuticals Interview Questions and Answers

Updated 28 Dec 2024
Popular Designations

Q1. What is call, apply and bind in JavaScript?

Ans.

Call, apply and bind are methods used to manipulate the 'this' keyword in JavaScript functions.

  • Call and apply are used to invoke a function with a specific 'this' context and arguments.

  • Call takes arguments as comma-separated values, while apply takes arguments as an array.

  • Bind returns a new function with a specific 'this' context, which can be called later with arguments.

  • Bind is useful for creating a new function with a fixed 'this' context, such as event handlers.

Add your answer

Q2. Code a React app to change name state on a click of a button on code sandbox.

Ans.

Code a React app to change name state on a click of a button on code sandbox.

  • Create a functional component with a state for name

  • Render a button with an onClick event to update the name state

  • Display the name state in the component

  • Use CodeSandbox to test the app

Add your answer

Q3. what happens when same key value is entered in HAshmap

Ans.

When the same key value is entered in a HashMap, the new value will overwrite the existing value associated with that key.

  • When a duplicate key is added, the new value will replace the old value for that key

  • HashMap does not allow duplicate keys, so each key must be unique

  • Retrieving the value for a key will return the most recently added value

Add your answer

Q4. Write Java 8 streams API code to test if string is a palindrome

Ans.

Using Java 8 streams API to check if a string is a palindrome

  • Use stream to convert the string to a character array

  • Reverse the character array using stream

  • Compare the reversed array with the original array to check for palindrome

Add your answer
Discover Emcure Pharmaceuticals interview dos and don'ts from real experiences

Q5. What is promise in JavaScript?

Ans.

Promise is an object representing the eventual completion or failure of an asynchronous operation.

  • Promises are used to handle asynchronous operations in JavaScript

  • A promise has three states: pending, fulfilled, or rejected

  • Promises can be chained using .then() and .catch() methods

  • Promises can be created using the Promise constructor or the shorthand syntax

Add your answer

Q6. sql performance optimication how to deal

Ans.

SQL performance optimization involves indexing, query optimization, and database design improvements.

  • Use indexes on frequently queried columns to speed up search operations.

  • Optimize queries by avoiding unnecessary joins, using appropriate data types, and limiting the number of rows returned.

  • Consider denormalizing the database schema for better performance in read-heavy applications.

  • Regularly monitor and analyze query performance using tools like EXPLAIN in MySQL or Query Stor...read more

Add your answer
Are these interview questions helpful?

Q7. al tools can be used in net how

Ans.

Various tools like Visual Studio, ReSharper, Git, and Jira can be used in .NET development.

  • Visual Studio is a popular IDE for .NET development

  • ReSharper is a code analysis tool that can be used with Visual Studio

  • Git is a version control system commonly used in .NET projects

  • Jira is a project management tool that can be integrated with .NET development workflows

Add your answer

Q8. What is @Controller and @RestController

Ans.

The @Controller and @RestController annotations are used in Spring MVC to define classes as controllers for handling web requests.

  • The @Controller annotation is used to define a class as a controller in Spring MVC, which can handle web requests and return a view.

  • The @RestController annotation is used to define a class as a RESTful controller in Spring MVC, which can handle web requests and return data in JSON or XML format.

  • The @RestController annotation is a combination of @Co...read more

Add your answer
Share interview questions and help millions of jobseekers 🌟

Q9. Difference between @pathvariable and @requestParam

Ans.

PathVariable is used to extract values from the URI while RequestParam is used to extract values from query parameters.

  • PathVariable is used to bind a method parameter to a URI template variable in a Spring MVC application.

  • RequestParam is used to extract query parameters from the URL in a Spring MVC application.

  • PathVariable is part of the URI while RequestParam is part of the query parameters.

  • PathVariable is used for mandatory parameters while RequestParam is used for optional...read more

Add your answer

Q10. Build a react todo app.

Ans.

A React todo app with CRUD functionality.

  • Use React hooks to manage state.

  • Create a form to add new todos.

  • Display todos in a list and allow for editing and deletion.

  • Use local storage to persist data.

  • Style with CSS or a UI library like Material UI.

Add your answer

Q11. 1. What is @ComponentScan

Ans.

Annotation used in Spring framework to enable component scanning for Spring-managed beans.

  • Used to automatically detect and register Spring-managed beans within the specified package(s)

  • Can be used at class level or configuration classes to specify base package(s) to scan

  • Can be customized with additional attributes like basePackageClasses, includeFilters, excludeFilters

  • Example: @ComponentScan(basePackages = {"com.example.package1", "com.example.package2"})

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at Emcure Pharmaceuticals

based on 6 interviews in the last 1 year
1 Interview rounds
Technical Round
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Senior Software Developer Interview Questions from Similar Companies

3.9
 • 27 Interview Questions
3.5
 • 21 Interview Questions
3.8
 • 17 Interview Questions
3.8
 • 16 Interview Questions
4.2
 • 12 Interview Questions
3.8
 • 11 Interview Questions
View all
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter