Premium Employer

Infosys

3.6
based on 38.1k Reviews
Filter interviews by

Publicis Global Delivery Interview Questions and Answers

Updated 30 Sep 2024
Popular Designations

Q1. What is Stateless and Stateful component?

Ans.

Stateless components are functional components that don't have state, while stateful components are class components that have state.

  • Stateless components are simpler and easier to test.

  • Stateful components can hold and modify state, and can trigger re-renders.

  • Stateless components can receive data through props.

  • Stateful components can have lifecycle methods.

  • Example of stateless component: const Button = ({ onClick }) =>

  • Example of stateful component: class Counter exten...read more

Add your answer

Q2. What are the lifecycle methods in React?

Ans.

Lifecycle methods are methods that get called at various stages of a component's life.

  • componentDidMount() - called after component is mounted

  • shouldComponentUpdate() - determines if component should update

  • componentDidUpdate() - called after component is updated

  • componentWillUnmount() - called before component is unmounted

Add your answer

Q3. Difference between map and forEach method?

Ans.

map returns a new array with modified elements, forEach executes a function for each element in an array.

  • map returns a new array, forEach does not

  • map modifies the elements of the array, forEach does not

  • map returns the same number of elements as the original array, forEach does not necessarily

  • forEach is used for side effects, map is used for transformation

Add your answer

Q4. What is Hoisting?

Ans.

Hoisting is a JavaScript mechanism where variables and function declarations are moved to the top of their scope.

  • Variables declared with var are hoisted to the top of their scope

  • Function declarations are also hoisted to the top of their scope

  • Function expressions are not hoisted

  • Hoisting can lead to unexpected behavior if not understood properly

Add your answer
Discover Publicis Global Delivery interview dos and don'ts from real experiences

Q5. What is the sematic tag in HTML?

Ans.

Semantic tags in HTML are special tags that provide meaning to the content they enclose.

  • Semantic tags help search engines and screen readers understand the structure of a webpage.

  • Examples of semantic tags include <header>, <footer>, <nav>, <article>, <section>, <aside>, <main>, <figure>, <figcaption>.

  • Using semantic tags improves SEO and accessibility of a website.

Add your answer

Q6. What is sdlc lifecycle?

Ans.

SDLC lifecycle stands for Software Development Life Cycle, which is a process used by software development teams to design, develop, and test high-quality software.

  • SDLC lifecycle consists of several phases including planning, analysis, design, implementation, testing, and maintenance.

  • Each phase has its own set of activities and deliverables to ensure the successful completion of the software project.

  • Examples of SDLC models include Waterfall, Agile, and DevOps, each with its o...read more

Add your answer

Q7. How to do responsive design?

Ans.

Responsive design is creating web applications that adapt to different screen sizes and devices.

  • Use media queries in CSS to adjust styles based on screen size

  • Utilize flexible grids and layouts to ensure content adjusts accordingly

  • Test the design on various devices and screen sizes to ensure responsiveness

Add your answer

Q8. What is Useeffect?

Ans.

Useeffect is a hook in React that allows performing side effects in function components.

  • Useeffect is used to perform side effects in function components.

  • It runs after every render by default.

  • It can be used to fetch data, subscribe to events, or update the DOM.

  • It can also clean up effects by returning a function.

  • Dependencies can be specified to control when the effect runs.

Add your answer

Q9. What is useState?

Ans.

useState is a hook in React that allows functional components to have state.

  • useState is a built-in hook in React.

  • It allows functional components to have stateful logic.

  • useState returns an array with two elements - the current state value and a function to update that value.

  • Example: const [count, setCount] = useState(0);

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

Interview Process at Publicis Global Delivery

based on 3 interviews
1 Interview rounds
Technical Round
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top React Developer Interview Questions from Similar Companies

3.4
 • 17 Interview Questions
3.8
 • 15 Interview Questions
3.5
 • 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