i
Hewlett Packard Enterprise
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by
I applied via Campus Placement and was interviewed in Oct 2024. There was 1 interview round.
Implement a stack using two queues
Use two queues to simulate stack operations
Push operation: Enqueue the element to queue1
Pop operation: Dequeue all elements from queue1 to queue2, dequeue the last element from queue1, then swap the queues
Top operation: Dequeue all elements from queue1 to queue2, dequeue the last element from queue1, store it, swap the queues, enqueue the stored element back to queue1, and return it
Exa...
Top trending discussions
You will need to create a working web app in vanilla JS.
need to implement the following things.
1. Fetch data from given REST api
2. Display data in List. add some css to show different type of items.
3. Implement text filter and other types of filter.
All needs to be implemented in vanilla JS
Designing HLD/LLD for a game like chess or Snakes and Ladders
Identify the game rules and mechanics
Determine the game board and pieces
Create a data model for the game state
Implement game logic and rules using algorithms
Design user interface and user experience
Consider scalability and performance
Test and debug the game thoroughly
I applied via Approached by Company and was interviewed in Feb 2022. There was 1 interview round.
I applied via LinkedIn
Redux is a predictable state container for JavaScript apps.
Redux is a library for managing application state
It provides a centralized store for all the state of an application
It uses a single source of truth principle
It allows for predictable state changes through actions and reducers
It is commonly used with React for building complex UIs
jQuery is a fast, small, and feature-rich JavaScript library.
jQuery simplifies HTML document traversing, event handling, and animating.
It provides a set of methods for AJAX interactions and DOM manipulation.
jQuery is cross-platform and supports a wide range of browsers.
It has a large community and a vast number of plugins available.
Project architecture depends on the specific project and its requirements.
Form validation in React ensures user input is correct before submission.
Use controlled components to manage form state
Create validation functions to check input
Display error messages for invalid input
Disable submit button until form is valid
Consider using a library like Formik or Yup for easier validation
React hooks are functions that allow functional components to use state and lifecycle methods.
Hooks were introduced in React 16.8
useState() is a hook that allows state to be used in functional components
useEffect() is a hook that allows lifecycle methods to be used in functional components
Custom hooks can be created to reuse stateful logic across components
Reverse a given string
Use built-in methods like split(), reverse(), and join() to reverse the string
Alternatively, loop through the string from end to start and build a new reversed string
State in functional components can be managed using the useState hook in React.
Use the useState hook to declare state variables in functional components.
useState returns an array with the current state value and a function to update that value.
Example: const [count, setCount] = useState(0);
State variables should be immutable, so always use the setter function to update them.
Event loop in JavaScript is responsible for handling asynchronous operations by executing callback functions in a non-blocking way.
Event loop is a mechanism that allows JavaScript to perform non-blocking operations.
It continuously checks the call stack and the callback queue to see if there are any functions that need to be executed.
If the call stack is empty, it takes the first function from the callback queue and pus...
Hosting in JavaScript refers to the process of declaring a variable or function before it is used in the code.
Hosting allows you to use variables and functions before they are declared in the code.
Variables are hoisted to the top of their scope, while functions are fully hoisted.
Example: console.log(myVar); var myVar = 10; This will not throw an error because 'myVar' is hoisted to the top of the scope.
I applied via Naukri.com and was interviewed in Nov 2020. There were 3 interview rounds.
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
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
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.
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
I applied via Campus Placement and was interviewed in Oct 2023. There were 3 interview rounds.
90 minutes 3 coding questions
Object-oriented programming (OOP) is a programming paradigm based on the concept of objects, which can contain data and code.
Create classes to represent real-world entities
Encapsulate data and behavior within classes
Use inheritance to create relationships between classes
Implement polymorphism to allow objects to be treated as instances of their parent class
Polymorphism allows objects of different classes to be treated as objects of a common superclass.
Polymorphism is achieved through method overriding in subclasses.
It allows for more flexibility and reusability in code.
Example: Animal superclass with subclasses Dog and Cat, both overriding the makeSound() method.
Inheritance is a mechanism in object-oriented programming where a class inherits properties and behaviors from another class.
Types of inheritance include single inheritance, where a class inherits from only one parent class
Multiple inheritance, where a class inherits from multiple parent classes (not supported in some languages)
Multilevel inheritance, where a class inherits from a class that itself inherits from anothe...
I applied via Naukri.com and was interviewed in Feb 2024. There was 1 interview round.
DOM stands for Document Object Model, which is a programming interface for web documents.
DOM is a representation of the structure of a web page, allowing scripts to dynamically access and update the content, structure, and style of the document.
It provides a way for scripts to interact with the web page by accessing and manipulating elements like text, images, forms, etc.
DOM is platform and language-independent, allowi...
Promises in TypeScript are objects representing the eventual completion or failure of an asynchronous operation.
Promises are used to handle 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 using .then() to handle success and .catch() to handle errors.
Example: const myPromise = new Promise((resolve, reject) => { ...
Hooks in JavaScript are functions that let you use state and other React features without writing a class.
Hooks were introduced in React 16.8 to allow functional components to have state and lifecycle methods.
useState() is a hook that allows you to add state to functional components.
useEffect() is a hook that allows you to perform side effects in functional components.
Custom hooks are functions that allow you to reuse
Generate an array of prime numbers from 1 to 100.
Iterate from 1 to 100 and check if each number is prime
A prime number is only divisible by 1 and itself
Start with a list of prime numbers and check divisibility
based on 1 interview
Interview experience
based on 1 review
Rating in categories
Technical Support Engineer
881
salaries
| ₹0 L/yr - ₹0 L/yr |
Process Associate
637
salaries
| ₹0 L/yr - ₹0 L/yr |
Technical Solutions Consultant
587
salaries
| ₹0 L/yr - ₹0 L/yr |
Software Engineer
559
salaries
| ₹0 L/yr - ₹0 L/yr |
Financial Analyst
431
salaries
| ₹0 L/yr - ₹0 L/yr |
Dell
IBM
Cisco
Oracle