Filter interviews by
I applied via Naukri.com and was interviewed in Mar 2021. There was 1 interview round.
Let, Const, and Var are used to declare variables in JavaScript with different scoping and reassignment abilities.
Var has function scope and can be redeclared and reassigned.
Let has block scope and can be reassigned but not redeclared.
Const has block scope and cannot be reassigned or redeclared.
State and props are two important concepts in React. State represents the internal data of a component, while props are used to pass data from a parent component to a child component.
State is mutable and can be changed within a component.
Props are read-only and cannot be modified within a component.
State is used to manage component-specific data, while props are used for inter-component communication.
State is initializ...
Promise is a callback function that returns a value in the future. Async-Await is a syntax that simplifies working with Promises.
Promises are used to handle asynchronous operations and avoid callback hell.
Async-Await is a syntax that allows writing asynchronous code that looks like synchronous code.
Async-Await is built on top of Promises and uses the same underlying mechanism.
Async-Await can only be used within an asyn...
Closures are functions that have access to variables in their outer scope, even after the outer function has returned.
Closures are created when a function is defined inside another function.
The inner function has access to the outer function's variables and parameters.
Closures can be used to create private variables and methods.
Closures can also be used to create functions with pre-set arguments.
Hoisting is a JavaScript behavior where variable and function declarations are moved to the top of their scope.
Hoisting applies to both variable and function declarations.
Variable declarations are hoisted but not their initializations.
Function declarations are fully hoisted, including their definitions.
Hoisting can lead to unexpected behavior if not understood properly.
Event Loop is a mechanism that allows JavaScript to handle asynchronous operations.
Event Loop is a continuous process that checks the Event Queue and moves events to the Event Stack.
Event Queue holds all the events that are waiting to be processed.
Event Stack holds the events that are currently being processed.
When the Event Stack is empty, the Event Loop checks the Event Queue for new events.
JavaScript uses Event Loop...
Local Storage is persistent storage that remains even after the browser is closed, while Session Storage is temporary and is cleared when the browser is closed.
Local Storage has no expiration date, while Session Storage is cleared when the session ends
Local Storage can store larger amounts of data compared to Session Storage
Local Storage is accessible across different browser tabs and windows, while Session Storage is ...
Redux is a state management library for JavaScript applications, providing a predictable and centralized workflow.
Redux follows a unidirectional data flow pattern.
The application state is stored in a single JavaScript object called the store.
Actions are dispatched to describe state changes.
Reducers are pure functions that specify how the state should change based on the dispatched actions.
Selectors are used to extract ...
Optimizing a React app involves reducing bundle size, using lazy loading, and optimizing rendering performance.
Reduce bundle size by code splitting and using dynamic imports
Use lazy loading to load components only when needed
Optimize rendering performance by using shouldComponentUpdate and PureComponent
Use React.memo to memoize functional components
Avoid unnecessary re-renders by using useMemo and useCallback
Use perfor...
Hooks are a feature introduced in React 16.8 that allow developers to use state and other React features in functional components.
useState() - for managing state in functional components
useEffect() - for performing side effects in functional components
useContext() - for accessing context in functional components
useReducer() - for managing complex state and actions in functional components
useCallback() - for memoizing f...
Higher Order Functions are functions that take other functions as arguments or return functions as their results.
Higher Order Functions can be used to create reusable code by abstracting common functionality into a separate function.
They can also be used to implement functional programming concepts like currying and composition.
Example: Array.prototype.map() is a higher order function that takes a callback function as ...
Context API is a feature in React that allows data to be passed down the component tree without manually passing props at each level.
Context API provides a way to share data between components without the need for prop drilling.
It consists of two main components: Provider and Consumer.
The Provider component allows data to be provided and accessed by any component within its subtree.
The Consumer component allows compone...
Top trending discussions
I applied via Naukri.com and was interviewed in Jan 2024. There were 3 interview rounds.
I applied via Naukri.com and was interviewed in Jan 2024. There was 1 interview round.
An aptitutde test 20 questions, 2 coding and 2 output based
I applied via Recruitment Consulltant and was interviewed before Aug 2022. There were 4 interview rounds.
Javascript questions about closure,prototype, strings array problem solving
Html css react coding with tricky and real scenarios in project
I applied via Approached by Company and was interviewed in Sep 2024. There was 1 interview round.
Promises 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: const myPromise = new Promise((resolve, reject) => { ... });
Box model in CSS refers to the way elements are rendered in a web page. CSS preprocessors like SASS or LESS help streamline CSS development.
Box model in CSS includes content, padding, border, and margin.
CSS preprocessors like SASS or LESS allow for variables, nesting, and mixins to be used in CSS.
Example: box-sizing: border-box; in CSS changes the box model to include padding and border in the element's total width and
I applied via Recruitment Consulltant and was interviewed in Oct 2024. There were 2 interview rounds.
Using Java 8, reverse an array of strings
Use Arrays.stream() to convert the array to a stream
Use Collections.reverse() to reverse the stream
Use Collectors.toList() to convert the stream back to a list
Code a controller, service, entity, and repository classes for a software application.
Create a controller class to handle incoming requests and interact with the service layer.
Develop a service class to implement business logic and interact with the repository.
Define an entity class to represent data in the application.
Implement a repository class to handle database operations for the entity.
posted on 26 Sep 2024
Coding test was around 2 hrs
Kubernetes is an open-source container orchestration platform for automating deployment, scaling, and management of containerized applications.
Kubernetes helps in automating the deployment, scaling, and management of containerized applications.
It allows for easy scaling of applications by adding or removing containers based on demand.
Kubernetes provides features like load balancing, self-healing, and rolling updates fo...
Docker container runtime is the engine that executes containers, managing their lifecycle and resources.
Docker container runtime is responsible for running and managing Docker containers.
It provides an isolated environment for applications to run without affecting the host system.
Popular container runtimes include Docker Engine, containerd, and CRI-O.
posted on 2 Jan 2025
I applied via Job Portal and was interviewed in Dec 2024. There were 2 interview rounds.
Worst set of questions
Advanced DSA for entry level role
posted on 8 Mar 2024
I applied via Referral and was interviewed in Feb 2024. There was 1 interview round.
Promises in JavaScript are objects representing the eventual completion or failure of an asynchronous operation.
Promises 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.
Promises can be created using the Promise constructor or by using async/await syntax.
useState is used to manage state in functional components, while useEffect is used to perform side effects in functional components.
useState is used to declare state variables in functional components.
useEffect is used to perform side effects in functional components, such as data fetching, subscriptions, or manually changing the DOM.
useState does not trigger re-renders, while useEffect can be used to trigger re-render...
Callback hell is a situation where multiple nested callbacks make the code difficult to read and maintain.
Occurs when multiple asynchronous operations are nested within each other
Leads to deeply nested code structure which is hard to understand
Can be avoided by using Promises, async/await, or modularizing code
Traditional functions are defined using the function keyword, while arrow functions are defined using a concise syntax with =>.
Traditional functions are hoisted, while arrow functions are not.
Arrow functions do not have their own 'this' keyword, they inherit it from the parent scope.
Arrow functions are more concise and easier to read compared to traditional functions.
Traditional functions are better for methods in obje...
Creating a counter in React to increment and decrement a value.
Create a state variable to store the count value
Use setState to update the count value
Render the count value in the component
Add buttons to increment and decrement the count value
Program to find frequency of letters in a string
Create an object to store the frequency of each letter
Loop through the string and increment the count of each letter in the object
Convert the object into an array of strings with letter and frequency pairs
Iterate through the given string to check if the substring is present.
Iterate through the given string and check if each character matches the first character of the substring.
If a match is found, check the subsequent characters to see if they form the substring.
Return true if the entire substring is found within the given string, otherwise return false.
Some of the top questions asked at the Capgemini Engineering React Developer interview -
Senior Software Engineer
2.1k
salaries
| ₹5.7 L/yr - ₹22.3 L/yr |
Technical Lead
1.5k
salaries
| ₹9.3 L/yr - ₹26 L/yr |
Software Engineer
1.4k
salaries
| ₹3 L/yr - ₹11.3 L/yr |
Network Engineer
450
salaries
| ₹3 L/yr - ₹10.5 L/yr |
Senior Technical Lead
371
salaries
| ₹14.1 L/yr - ₹34.5 L/yr |
TCS
Infosys
Wipro
HCLTech