Add office photos
Engaged Employer

Hewlett Packard Enterprise

4.2
based on 3.9k Reviews
Video summary
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by

20+ ITC Interview Questions and Answers

Updated 11 Jan 2025
Popular Designations

Q1. Find the Duplicate Number Problem Statement

Given an integer array 'ARR' of size 'N' containing numbers from 0 to (N - 2). Each number appears at least once, and there is one number that appears twice. Your tas...read more

Ans.

Find the duplicate number in an array of integers from 0 to N-2.

  • Iterate through the array and keep track of the frequency of each number using a hashmap.

  • Return the number with a frequency greater than 1 as the duplicate number.

  • Alternatively, use Floyd's Tortoise and Hare algorithm to find the duplicate number in O(N) time and O(1) space.

View 1 answer

Q2. Remove Occurrences of Character from String

Given a string str and a character X, write a function to remove all occurrences of X from the string.

If the character X does not exist in the input string, the stri...read more

Ans.

Create a function to remove all occurrences of a given character from a string.

  • Iterate through the string and build a new string excluding the specified character.

  • Use string manipulation functions to achieve the desired result.

  • Handle the case where the character does not exist in the string.

  • Return the modified string as the output.

Add your answer

Q3. Remove Character from String Problem Statement

Given a string str and a character 'X', develop a function to eliminate all instances of 'X' from str and return the resulting string.

Input:

The first line contai...read more
Ans.

Develop a function to remove all instances of a given character from a string.

  • Iterate through the string and only add characters that are not equal to the given character to a new string.

  • Return the new string as the result.

  • Handle edge cases like empty string or character not found in the string.

  • Example: Input 'hello world' and 'o', output 'hell wrld'.

Add your answer

Q4. Character Frequency Problem Statement

You are given a string 'S' of length 'N'. Your task is to find the frequency of each character from 'a' to 'z' in the string.

Example:

Input:
S : abcdg
Output:
1 1 1 1 0 0 ...read more
Ans.

The task is to find the frequency of each character from 'a' to 'z' in a given string.

  • Create an array of size 26 to store the frequency of each character from 'a' to 'z'.

  • Iterate through the given string and increment the count of each character in the array.

  • Print the array of frequencies as the output for each test case.

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

Q5. Subarray With Given Sum Problem Statement

Given an array ARR of N integers and an integer S, determine if there exists a contiguous subarray within the array with a sum equal to S. If such a subarray exists, re...read more

Ans.

Given an array of integers, find a contiguous subarray with a given sum.

  • Iterate through the array while keeping track of the current sum and start index.

  • Use a hashmap to store the sum and its corresponding index.

  • If the current sum - target sum exists in the hashmap, return the indices.

  • Handle edge cases like when the target sum is 0 or when no subarray is found.

Add your answer

Q6. Count Set Bits Problem Statement

Given a positive integer N, compute the total number of '1's in the binary representation of all numbers from 1 to N. Return this count modulo 1e9+7 because the result can be ve...read more

Ans.

Count the total number of set bits in the binary representation of numbers from 1 to N modulo 1e9+7.

  • Iterate through numbers from 1 to N and count the set bits in their binary representation

  • Use bitwise operations to count the set bits efficiently

  • Return the count modulo 1e9+7 for each test case

Add your answer
Are these interview questions helpful?

Q7. Find a Node in Linked List

Given a singly linked list of integers, your task is to implement a function that returns the index/position of an integer value 'N' if it exists in the linked list. Return -1 if the ...read more

Ans.

Implement a function to find the index of a given integer in a singly linked list.

  • Traverse the linked list while keeping track of the index of each element.

  • Compare each element with the target integer 'N'.

  • Return the index if the element is found, otherwise return -1.

  • Handle cases where the target integer is not found in the linked list.

Add your answer

Q8. SDLC/STLC lifecycle explain. What do you understand by Agile development.Some theory concept of Software Testing subject.

Ans.

SDLC/STLC are software development/testing lifecycles. Agile is a development methodology focused on iterative and incremental development.

  • SDLC (Software Development Life Cycle) is a process used to design, develop, and test software. It includes phases like planning, analysis, design, implementation, and maintenance.

  • STLC (Software Testing Life Cycle) is a process used to test software. It includes phases like test planning, test design, test execution, and test closure.

  • Agile...read more

Add your answer
Share interview questions and help millions of jobseekers 🌟

Q9. Merge Sort Problem Statement

You are given a sequence of numbers, ARR. Your task is to return a sorted sequence of ARR in non-descending order using the Merge Sort algorithm.

Explanation:

The Merge Sort algorit...read more

Add your answer

Q10. Mirror Image of Triangle Pattern

Ninja's younger sister has to print a specific pattern of integers for a given number of rows, N. She finds it challenging to handle different rows for each N. Ninja wants to as...read more

Add your answer

Q11. Smallest Number with Given Digit Product

Given a positive integer 'N', find and return the smallest number 'M', such that the product of all the digits in 'M' is equal to 'N'. If such an 'M' is not possible or ...read more

Ans.

Find the smallest number whose digits multiply to a given number N.

  • Iterate through possible digits to form the smallest number with product equal to N

  • Use a priority queue to keep track of the smallest possible number

  • Check constraints to ensure the number fits in a 32-bit signed integer

Add your answer

Q12. Write code to implement OOps concepts in Python.

Ans.

Implementing OOPs concepts in Python using code examples.

  • Create classes and objects to represent real-world entities

  • Use inheritance to create a hierarchy of classes

  • Encapsulate data and behavior within classes

  • Implement polymorphism by overriding methods

  • Use abstraction to hide implementation details

Add your answer

Q13. How a mobile device connects to a network and the process invoved in it.

Ans.

A mobile device connects to a network through wireless communication protocols like Wi-Fi, Bluetooth, or cellular data.

  • Mobile device scans for available networks

  • User selects a network and enters password if required

  • Device sends a connection request to the network

  • Network authenticates the device and assigns an IP address

  • Device is now connected to the network and can access the internet

Add your answer

Q14. Why I want to HPE?

Ans.

I want to work at HPE because of their innovative technology solutions and commitment to research and development.

  • HPE is a leader in the tech industry, known for cutting-edge solutions

  • I am passionate about research and development and want to contribute to HPE's projects

  • I admire HPE's focus on innovation and continuous improvement

  • I believe working at HPE will provide me with valuable experience and opportunities for growth

Add your answer

Q15. Merge two sorted linked list.

Ans.

Merge two sorted linked lists into a single sorted linked list.

  • Create a new linked list to store the merged result.

  • Compare the values of the nodes from both input lists and add the smaller value to the result list.

  • Move the pointer of the list with the smaller value to the next node and continue the process until both input lists are empty.

Add your answer

Q16. What do you know about ABC analysis

Ans.

ABC analysis is a technique used in inventory management to categorize items based on their importance.

  • ABC analysis classifies items into categories A, B, and C based on their value and contribution to overall inventory costs.

  • Category A items are high value items that make up a small percentage of total items but contribute a large percentage of total inventory costs.

  • Category B items are moderate value items that make up a moderate percentage of total items and contribute a m...read more

Add your answer

Q17. Reverse linked list in k groups

Ans.

Reverse a linked list in groups of k nodes

  • Break the linked list into groups of k nodes

  • Reverse each group individually

  • Connect the reversed groups back together

Add your answer

Q18. What is deferred revenue?

Ans.

Deferred revenue is revenue that has been received by a company, but has not yet been earned.

  • Deferred revenue is a liability on the company's balance sheet.

  • It represents revenue that has been paid by customers in advance for goods or services that have not yet been delivered.

  • As the goods or services are provided, the deferred revenue is gradually recognized as revenue on the income statement.

  • Examples include magazine subscriptions, software licenses, and annual maintenance co...read more

Add your answer

Q19. Types of topologies in CN?

Ans.

Common types of network topologies include bus, star, ring, mesh, and hybrid.

  • Bus: all devices are connected to a central cable

  • Star: all devices are connected to a central hub

  • Ring: each device is connected to two other devices, forming a ring

  • Mesh: each device is connected to every other device

  • Hybrid: combination of two or more different topologies

Add your answer

Q20. What is accounting

Ans.

Accounting is the process of recording, summarizing, analyzing, and reporting financial transactions of a business.

  • Involves recording financial transactions

  • Summarizing financial data in financial statements

  • Analyzing financial information to make business decisions

  • Reporting financial results to stakeholders

  • Examples: preparing balance sheets, income statements, cash flow statements

Add your answer

Q21. Is deferred rev

Ans.

Deferred revenue is revenue that has been received but not yet earned, so it is recorded as a liability until the goods or services are delivered.

  • Deferred revenue is a liability on the balance sheet until the revenue is recognized.

  • It is common in subscription-based businesses where customers pay upfront for services to be provided over time.

  • Once the revenue is earned, it is recognized on the income statement.

  • Examples include magazine subscriptions, software licenses, and prep...read more

Add your answer

Q22. SQL Queries of JOINS

Ans.

SQL queries involving JOINS are used to combine rows from two or more tables based on a related column between them.

  • Use INNER JOIN to return rows when there is at least one match in both tables

  • Use LEFT JOIN to return all rows from the left table, and the matched rows from the right table

  • Use RIGHT JOIN to return all rows from the right table, and the matched rows from the left table

  • Use FULL JOIN to return rows when there is a match in one of the tables

Add your answer

Q23. factorial of number

Ans.

Factorial of a number is the product of all positive integers less than or equal to that number.

  • Factorial of 5 is 5! = 5 x 4 x 3 x 2 x 1 = 120

  • Factorial of 0 is defined as 1, 0! = 1

  • Factorial of negative numbers is not defined

Add your answer

Q24. subsequence of array

Ans.

Finding a subsequence of strings in an array

  • Iterate through the array and check if each string is part of the subsequence

  • Maintain a pointer for the subsequence and array to compare elements

  • Return true if all strings in the subsequence are found in the array

Add your answer

Q25. Golden rule of accounting

Ans.

The golden rule of accounting states that debit what comes in and credit what goes out.

  • Debit what comes in and credit what goes out

  • Assets = Liabilities + Equity

  • Helps maintain the balance in financial transactions

Add your answer

More about working at Hewlett Packard Enterprise

Top Rated Large Company - 2024
Top Rated Company for Women - 2024
Top Rated IT/ITES Company - 2024
HQ - Houston,Texas, United States
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at ITC

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

Top Interview Questions from Similar Companies

3.8
 • 488 Interview Questions
3.3
 • 458 Interview Questions
3.5
 • 413 Interview Questions
3.8
 • 351 Interview Questions
4.0
 • 199 Interview Questions
3.6
 • 192 Interview Questions
View all
Top Hewlett Packard Enterprise Interview Questions And Answers
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