Add office photos
Employer?
Claim Account for FREE

Saviynt

2.6
based on 65 Reviews
Filter interviews by

DHL Supply Chain Interview Questions and Answers

Updated 25 Oct 2024

Q1. What is the difference between normal function and arrow function?

Ans.

Arrow functions are more concise and have lexical scoping, while normal functions have their own 'this' value.

  • Arrow functions do not have their own 'this' value, they inherit it from the parent scope.

  • Arrow functions are more concise and have implicit return.

  • Normal functions are more flexible and can be used as constructors.

  • Arrow functions cannot be used as constructors.

  • Arrow functions do not have 'arguments' object.

Add your answer

Q2. Given a counter code in class component, convert it to functional component

Ans.

Convert a counter code from class component to functional component

  • Use useState hook to manage state in functional component

  • Remove 'this' keyword and constructor from the code

  • Update event handlers to use arrow functions or useCallback hook

Add your answer

Q3. Write a code in react to post some data to a public url

Ans.

Code snippet to post data to a public URL in React

  • Use the fetch API to make a POST request to the public URL

  • Convert the data to JSON before sending it in the request body

  • Handle the response from the server accordingly

Add your answer

Q4. Map two array of objects and display the results in lists using react

Ans.

Map two arrays of objects and display results in lists using React

  • Use the map function to iterate over each array of objects

  • Render the results in separate lists using JSX

  • Example: array1.map(item =>

  • {item.name}
  • )

Add your answer
Discover DHL Supply Chain interview dos and don'ts from real experiences

Q5. What is CORS in web development?

Ans.

CORS stands for Cross-Origin Resource Sharing and is a security feature implemented by browsers to prevent unauthorized access to resources on a different domain.

  • CORS allows servers to specify who can access their resources by adding specific HTTP headers to their responses.

  • It is used to protect against cross-site request forgery (CSRF) attacks.

  • For example, if a frontend application on domain A tries to make a request to a backend API on domain B, CORS will block the request ...read more

Add your answer

Q6. Call stack and heap difference?

Ans.

Call stack stores function calls and local variables, while heap stores dynamic memory allocation.

  • Call stack is used for function calls and local variables

  • Heap is used for dynamic memory allocation

  • Call stack is limited in size and has a fixed memory allocation, while heap is larger and can grow dynamically

  • Example: Call stack is used to keep track of function calls in a recursive function, while heap is used to allocate memory for objects

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

Interview Process at DHL Supply Chain

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

Top React Js Frontend Developer Interview Questions from Similar Companies

3.6
 • 22 Interview Questions
3.9
 • 21 Interview Questions
3.7
 • 15 Interview Questions
3.8
 • 15 Interview Questions
3.8
 • 14 Interview Questions
4.0
 • 12 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

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