Add office photos
Engaged Employer

Xcelore

4.6
based on 59 Reviews
Filter interviews by

Acrux Interview Questions and Answers

Updated 18 Nov 2024

Q1. Difference Between RestApi and Graphql ?

Ans.

REST API is a standard protocol for web services using HTTP, while GraphQL is a query language for APIs.

  • REST API follows a client-server architecture with stateless communication, while GraphQL allows clients to request only the data they need.

  • REST API typically uses multiple endpoints for different resources, while GraphQL uses a single endpoint for flexible data retrieval.

  • REST API has predefined data structures, while GraphQL allows clients to define the structure of the re...read more

Add your answer

Q2. What is Callback Hell?

Ans.

Callback Hell is a situation in asynchronous programming where multiple nested callbacks make the code hard to read and maintain.

  • Occurs when multiple asynchronous operations are nested within each other

  • Leads to deeply nested code which is hard to read and maintain

  • Can be avoided by using Promises or async/await syntax

Add your answer

Q3. What is Async/Await ?

Ans.

Async/Await is a feature in JavaScript that allows for asynchronous programming using promises.

  • Async/Await is syntactic sugar built on top of promises in JavaScript.

  • It allows for writing asynchronous code that looks synchronous, making it easier to read and maintain.

  • Async functions return a promise, which allows for chaining multiple asynchronous operations.

  • Await keyword is used inside async functions to wait for a promise to resolve before continuing.

  • Example: async function ...read more

Add your answer

Q4. Code A Todo List in React ?

Ans.

A simple Todo List app built using React

  • Create a new React project using create-react-app

  • Create a Todo component to display the list of todos

  • Use state to manage the list of todos and input field for adding new todos

  • Implement functionality to add, delete, and mark todos as completed

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

Q5. What is Hoisting?

Ans.

Hoisting is a JavaScript mechanism where variable and function declarations are moved to the top of their containing scope during compilation.

  • Variable and function declarations are hoisted to the top of their scope.

  • Only declarations are hoisted, not initializations.

  • Function declarations take precedence over variable declarations.

  • Hoisting can lead to unexpected behavior if not understood properly.

Add your answer

Q6. What is Closures?

Ans.

Closures are functions that have access to variables from their containing scope even after the parent function has finished executing.

  • Closures allow functions to maintain access to variables from their outer scope

  • They are created when a function is defined within another function

  • Closures are commonly used in event handlers and callbacks

Add your answer

Q7. What is Promises?

Ans.

Promises are a way to handle asynchronous operations in JavaScript, providing a cleaner alternative to callbacks.

  • Promises represent the eventual completion (or failure) of an asynchronous operation.

  • They allow you to chain multiple asynchronous operations together.

  • Promises have states: pending, fulfilled, or rejected.

  • You can handle the result of a promise using .then() and .catch() methods.

  • Example: const myPromise = new Promise((resolve, reject) => { ... });

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

Interview Process at Acrux

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

Top Senior Software Engineer Interview Questions from Similar Companies

3.7
 • 25 Interview Questions
3.7
 • 16 Interview Questions
3.9
 • 13 Interview Questions
3.7
 • 12 Interview Questions
4.8
 • 10 Interview Questions
3.9
 • 10 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
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