Add office photos
Engaged Employer

Metafic

4.2
based on 67 Reviews
Filter interviews by

Strobes Interview Questions and Answers

Updated 27 May 2024

Q1. Write code for functional component to call an API and show a list from the response (given by the interviewer)

Ans.

Code for functional component to call API and show list from response

  • Use useEffect hook to call API on component mount

  • Use useState hook to store API response

  • Map through response data to display list

  • Handle loading and error states

Add your answer

Q2. How would be dealing with an issue which was caused due to others?

Ans.

I would approach the issue by identifying the root cause and collaborating with the team to find a solution.

  • Identify the root cause of the issue

  • Collaborate with the team to find a solution

  • Communicate effectively with all parties involved

  • Take ownership of the issue and work towards a resolution

  • Document the issue and the steps taken to resolve it

Add your answer

Q3. Explain UseMemo, UseCallback, UseEffect uses, and lifecycle method in the class component.

Ans.

Explanation of React hooks and lifecycle methods

  • useMemo is used to memoize expensive computations and avoid unnecessary re-renders

  • useCallback is used to memoize functions and avoid unnecessary re-renders of child components

  • useEffect is used to perform side effects such as fetching data or updating the DOM

  • Lifecycle methods in class components are used to manage component state and perform side effects

  • ComponentDidMount is called after the component is mounted and is used to fet...read more

Add your answer

Q4. What is virtual DOM in react?

Ans.

Virtual DOM is a lightweight copy of the actual DOM used for efficient rendering in React.

  • Virtual DOM is a JavaScript object that represents the actual DOM.

  • It allows React to update only the necessary parts of the UI, improving performance.

  • Changes made to the virtual DOM are compared with the previous version to determine what needs to be updated.

  • React then updates the actual DOM with the minimum required changes.

  • Virtual DOM is created using React.createElement() or JSX.

  • React...read more

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

Q5. Write down the code from that API to integrate pagination on scrolling

Ans.

Code for integrating pagination on scrolling in Reactjs API

  • Use Intersection Observer API to detect when the user has scrolled to the bottom of the page

  • Fetch the next set of data from the server using an API call

  • Update the state with the new data and render it on the page

Add your answer

Q6. What are Heuristics

Ans.

Heuristics are general rules or guidelines used to solve problems or make decisions more efficiently.

  • Heuristics are mental shortcuts that help simplify complex problems.

  • They are often based on past experiences and knowledge.

  • Heuristics can lead to biases and errors in decision-making.

  • Examples include 'availability heuristic' and 'representativeness heuristic'.

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

Interview Process at Strobes

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

Top Interview Questions from Similar Companies

3.9
 • 537 Interview Questions
4.2
 • 370 Interview Questions
3.8
 • 302 Interview Questions
3.9
 • 215 Interview Questions
4.1
 • 212 Interview Questions
4.4
 • 202 Interview Questions
View all
Top Metafic Interview Questions And Answers
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
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