Add office photos
MasterCard logo
Employer?
Claim Account for FREE

MasterCard

3.9
based on 726 Reviews
Video summary
Filter interviews by
Technical Lead
Experienced
Clear (1)

MasterCard Technical Lead Interview Questions and Answers

Updated 17 Jun 2024

Q1. What is difference between Interface and abstract class?

Ans.

Interface is a contract that defines the methods a class must implement, while abstract class can have both abstract and concrete methods.

  • Interface cannot have any implementation, while abstract class can have both abstract and concrete methods.

  • A class can implement multiple interfaces but can only inherit from one abstract class.

  • Interfaces are used to achieve multiple inheritance in Java, while abstract classes are used to provide a common base for subclasses.

  • Interfaces are ...read more

Add your answer
right arrow

Q2. Parent child component communication in react?

Ans.

Parent child component communication in React involves passing data from parent to child components and triggering events from child to parent components.

  • Use props to pass data from parent to child components

  • Use callback functions to trigger events from child to parent components

  • Context API can be used for passing data to deeply nested components

Add your answer
right arrow

Q3. Can abstract class instantiated?

Ans.

No, abstract classes cannot be instantiated.

  • Abstract classes are meant to be inherited and extended by other classes.

  • Attempting to instantiate an abstract class will result in a compilation error.

  • Abstract classes can have abstract methods that must be implemented by the subclass.

Add your answer
right arrow

Q4. How to optimize react application?

Ans.

Optimizing a React application involves code splitting, lazy loading, minimizing bundle size, using memoization, and optimizing render performance.

  • Implement code splitting to load only necessary code for each route or component.

  • Utilize lazy loading to defer loading of non-essential components until they are needed.

  • Minimize bundle size by removing unused code, optimizing images, and using tree shaking.

  • Use memoization techniques like useMemo and useCallback to avoid unnecessary...read more

Add your answer
right arrow
Discover MasterCard interview dos and don'ts from real experiences

Q5. What is useRef, useMemo, useCallback?

Ans.

useRef is used to persist a value across renders, useMemo is used to memoize expensive calculations, useCallback is used to memoize functions.

  • useRef is commonly used to access DOM elements or persist values between renders.

  • useMemo is used to memoize expensive calculations to avoid re-computation.

  • useCallback is used to memoize functions to prevent unnecessary re-renders.

  • Example: useRef can be used to store a reference to an input element in a form.

  • Example: useMemo can be used ...read more

Add your answer
right arrow

Q6. What is app.use in .net core?

Ans.

app.use in .NET Core is used to add middleware to the request pipeline.

  • app.use is a method used in ASP.NET Core to add middleware components to the request pipeline.

  • Middleware components are software components that are executed in the request pipeline to handle requests and responses.

  • Middleware components can perform tasks such as authentication, logging, error handling, and more.

  • Example: app.use(new MiddlewareComponent());

Add your answer
right arrow

Q7. What is dependency injection?

Ans.

Dependency injection is a design pattern in which components are given their dependencies rather than creating them internally.

  • Dependency injection helps in achieving loose coupling between classes.

  • It allows for easier testing by mocking dependencies.

  • There are three types of dependency injection: constructor injection, setter injection, and interface injection.

  • Example: Instead of a class creating an instance of another class it needs, the instance is provided to it through co...read more

Add your answer
right arrow

Q8. Micro service design patterns

Ans.

Micro service design patterns are architectural patterns used to design and implement microservices.

  • Service discovery

  • Circuit breaker

  • API gateway

  • Event sourcing

  • Saga pattern

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

Interview Process at MasterCard Technical Lead

based on 2 interviews
Interview experience
4.0
Good
View more
interview tips and stories logo
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Technical Lead Interview Questions from Similar Companies

Infosys Logo
3.6
 • 76 Interview Questions
TCS Logo
3.7
 • 20 Interview Questions
Accenture Logo
3.8
 • 17 Interview Questions
Synechron Logo
3.6
 • 11 Interview Questions
HCL Group Logo
3.6
 • 11 Interview Questions
View all
Recently Viewed
LIST OF COMPANIES
Arcelor Mittal Green Energy Private Limited
Locations
LIST OF COMPANIES
Godawari Green Energy
Locations
LIST OF COMPANIES
Indian Energy Exchange
Locations
INTERVIEWS
M E Energy
No Interviews
INTERVIEWS
JBM Group
No Interviews
SALARIES
Brio Energy
LIST OF COMPANIES
Rai Industrial Power
Locations
SALARIES
Goldi Solar
LIST OF COMPANIES
Ravin Infraproject
Locations
LIST OF COMPANIES
Gensol Engineering
Locations
Share an Interview
Stay ahead in your career. Get AmbitionBox app
play-icon
play-icon
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
75 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions

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