Add office photos
Accenture logo
Employer?
Claim Account for FREE

Accenture

3.8
based on 56.6k Reviews
Video summary
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by
Front end Developer
Skills
Clear (1)

10+ Accenture Front end Developer Interview Questions and Answers

Updated 11 Nov 2024

Q1. How to redirect to login page through React Router if the user has not logged in and trying to go to another page through URL.

Ans.

Use React Router's Redirect component to redirect to login page if user is not logged in.

  • Create a PrivateRoute component that checks if user is logged in

  • If user is not logged in, redirect to login page using Redirect component

  • Wrap the routes that require authentication with PrivateRoute component

View 3 more answers
right arrow

Q2. How can you only accept jpg and png files using HTML5.

Ans.

Use the accept attribute in the input tag to only allow jpg and png files.

  • Add accept attribute to input tag with 'image/jpeg, image/png' value

  • This will restrict file selection to only jpg and png files

View 3 more answers
right arrow

Q3. How to center align a div in just one line in css.

Ans.

Use flexbox to center align a div in just one line in CSS.

  • Set the parent container's display property to flex.

  • Use the justify-content property with the value 'center' to horizontally center the div.

  • Use the align-items property with the value 'center' to vertically center the div.

View 3 more answers
right arrow

Q4. Remove duplicate elements from an Array

Ans.

Remove duplicate elements from an Array

  • Use the Set object to remove duplicate elements

  • Convert the Set back to an array using the spread operator

  • If the array contains objects, use a custom comparison function

View 3 more answers
right arrow
Discover Accenture interview dos and don'ts from real experiences

Q5. What is event bubling

Ans.

Event bubbling is the process of propagating an event from the innermost element to its parent elements in the DOM hierarchy.

  • Events in JavaScript are triggered on elements and then propagate up the DOM tree.

  • During event bubbling, an event triggered on a child element will also trigger on its parent elements.

  • This allows for event delegation, where a single event handler can be used for multiple elements.

  • Event.stopPropagation() can be used to stop the event from further propaga...read more

View 1 answer
right arrow

Q6. How you can improve performance in Angular App

Ans.

Improving performance in Angular app involves optimizing code, reducing HTTP requests, lazy loading modules, and using AOT compilation.

  • Optimize code by avoiding unnecessary watchers and using track by in ngFor loops

  • Reduce HTTP requests by combining multiple requests into one using HTTP interceptors

  • Lazy load modules to only load components when needed, improving initial load time

  • Use Ahead-of-Time (AOT) compilation to pre-compile templates and improve load time

Add your answer
right arrow
Are these interview questions helpful?

Q7. How to adjust a box on left?

Ans.

To adjust a box on the left, use CSS properties like margin-left or left.

  • Use margin-left property to adjust the box's position to the right.

  • Use left property with position: absolute or position: relative to adjust the box's position relative to its containing element.

  • Consider using flexbox or grid layout for more control over the box's positioning.

Add your answer
right arrow

Q8. How to handle form validation?

Ans.

Form validation can be handled using client-side and server-side validation techniques.

  • Use HTML5 form validation attributes like required, pattern, min, max, etc.

  • Implement client-side validation using JavaScript to provide instant feedback to users.

  • Perform server-side validation to ensure data integrity and security.

  • Display error messages next to the input fields for better user experience.

  • Use a combination of front-end and back-end validation to prevent malicious attacks.

Add your answer
right arrow
Share interview questions and help millions of jobseekers 🌟
man with laptop

Q9. What are CSS accessibilities?

Ans.

CSS accessibilities refer to making web content accessible to users with disabilities.

  • Using proper color contrast for text and background

  • Providing alternative text for images using the 'alt' attribute

  • Using semantic HTML elements for better screen reader compatibility

Add your answer
right arrow

Q10. what is promises in js?

Ans.

Promises in JavaScript are objects representing the eventual completion or failure of an asynchronous operation.

  • Promises help in handling asynchronous operations in a more readable and manageable way.

  • They can be in one of three states: pending, fulfilled, or rejected.

  • Promises can be chained together using .then() method to handle success and failure cases.

  • They help in avoiding callback hell and writing cleaner asynchronous code.

  • Example: const myPromise = new Promise((resolve,...read more

Add your answer
right arrow

Q11. Explain the concept of redux-toolkit

Ans.

Redux Toolkit is an official, opinionated, batteries-included toolset for efficient Redux development.

  • Redux Toolkit simplifies Redux code by providing a set of tools and best practices

  • It includes utilities like createSlice, createReducer, configureStore, and createAsyncThunk

  • Helps in writing concise and readable Redux code with less boilerplate

  • Encourages the use of Immer for writing immutable updates in a more intuitive way

Add your answer
right arrow

Q12. How to use Redux

Ans.

Redux is a predictable state container for JavaScript apps.

  • Create a store to hold the state of your application

  • Use actions to describe what happened

  • Write reducers to specify how the state changes in response to actions

  • Connect your components to the Redux store using mapStateToProps and mapDispatchToProps

Add your answer
right arrow

Q13. Explain promise in javascript

Ans.

Promises in JavaScript are objects representing the eventual completion or failure of an asynchronous operation.

  • Promises are used to handle asynchronous operations in JavaScript.

  • They can be in one of three states: pending, fulfilled, or rejected.

  • Promises can be chained using .then() to handle success and .catch() to handle errors.

  • Example: new Promise((resolve, reject) => { ... }).then(result => { ... }).catch(error => { ... });

Add your answer
right arrow

Q14. Let and var difference

Ans.

let is block scoped, var is function scoped

  • let is block scoped, var is function scoped

  • let can't be re-declared in the same scope, var can be

  • let variables are not hoisted, var variables are hoisted

Add your answer
right arrow

Q15. create a Custom hooks

Ans.

Custom hooks are reusable functions that allow you to extract component logic into separate functions for reusability.

  • Custom hooks start with 'use' keyword (e.g. useState, useEffect)

  • Custom hooks can be used to share logic between components

  • Custom hooks can accept arguments and return values

Add your answer
right arrow

More about working at Accenture

Back
Awards Leaf
AmbitionBox Logo
Top Rated Mega Company - 2024
Awards Leaf
Awards Leaf
AmbitionBox Logo
Top Rated Company for Women - 2024
Awards Leaf
Awards Leaf
AmbitionBox Logo
Top Rated IT/ITES Company - 2024
Awards Leaf
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 Accenture Front end Developer

based on 19 interviews
2 Interview rounds
Technical Round - 1
Technical Round - 2
View more
interview tips and stories logo
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Front end Developer Interview Questions from Similar Companies

Infosys Logo
3.6
 • 12 Interview Questions
Amdocs Logo
3.7
 • 10 Interview Questions
Zepto Logo
3.5
 • 10 Interview Questions
View all
Recently Viewed
CAMPUS PLACEMENT
SRM university (SRMU)
INTERVIEWS
HCLTech
No Interviews
INTERVIEWS
Publicis Sapient
No Interviews
DESIGNATION
INTERVIEWS
Deloitte
10 top interview questions
REVIEWS
Tata Motors
No Reviews
JOBS
Newton School: Pay after Placement
No Jobs
INTERVIEWS
Societe Generale Global Solution Centre
No Interviews
INTERVIEWS
Tech Mahindra
No Interviews
INTERVIEWS
Coforge
10 top interview questions
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