HP interview questions

245 questions from 24 candidate reports · 2015 to 2024

Online test → Technical → Managerial → HR·50% entry level

CS fundamentals

Showing 35 of 211 reported in this area

Explain the ACID properties of DBMS.
asked 2×easyPractice this →
Explain the OSI Model and its layers
asked 2×easyPractice this →
What are the different types of software testing?
asked 2×easyPractice this →
Explain Object Oriented Programming (OOP) concepts.
asked 2×easyPractice this →
Explain storage classes in C/C++
asked oncemediumPractice this →
Explain OS scheduling algorithms.
asked oncemediumPractice this →
Predict the output of C programs.
asked oncemediumPractice this →
Explain scheduling concepts in RTOS
asked oncemediumPractice this →
Explain UML diagrams and their usage
asked oncemediumPractice this →
Explain SHA algorithms and their usage.
asked oncemediumPractice this →
Compare HashTable and ConcurrentHashMap.
asked oncemediumPractice this →
Explain pointers and their usage in C/C++
asked oncemediumPractice this →
Explain string and pointer concepts in C.
asked oncemediumPractice this →
Explain virtualization and virtual memory
asked oncemediumPractice this →
Explain the working process of DHCP and DNS
asked oncemediumPractice this →
Explain processes vs threads and system calls.
asked oncemediumPractice this →
What are system calls and why are they needed?
asked oncemediumPractice this →
Explain threading concepts in operating systems
asked oncemediumPractice this →
Predict the output of Java and C++ code snippets.
asked oncemediumPractice this →
Explain the OSI model and functions of each layer.
asked oncemediumPractice this →
Explain the internal working of ConcurrentHashMap.
asked oncemediumPractice this →
How are vectors internally implemented in C++ STL?
asked oncemediumPractice this →
Explain mutexes and semaphores and their use cases.
asked oncemediumPractice this →
Explain semaphores and mutexes and their differences
asked oncemediumPractice this →
When a program is run, what will be its page offset?
asked oncemediumPractice this →
Write a program to demonstrate operator overloading.
asked oncemediumPractice this →
Explain normalization and table decomposition in DBMS
asked oncemediumPractice this →
Explain the difference between a process and a thread
asked oncemediumPractice this →
What are race conditions and how can they be avoided?
asked oncemediumPractice this →
Explain the OSI model and protocols used at each layer
asked oncemediumPractice this →
What is the difference between a lock and a semaphore?
asked oncemediumPractice this →
Basic networking questions about routers and protocols.
asked oncemediumPractice this →
Explain OOP concepts and their real-world applications.
asked oncemediumPractice this →
Explain virtual memory and paging in operating systems.
asked oncemediumPractice this →
How does a router find the best route to transfer data?
asked oncemediumPractice this →

DSA

Showing 16 of 56 reported in this area

Reverse a linked list.
asked 2×easyPractice this →
Count the number of set bits in a given number
asked 2×easyPractice this →
Implement a tree data structure.
asked oncemediumPractice this →
Write a variation of Merge Sort.
asked oncemediumPractice this →
Implement Merge Sort on a linked list.
asked oncemediumPractice this →
Implement a stack using a linked list.
asked oncemediumPractice this →
Detect whether a linked list contains a loop
asked oncemediumPractice this →
Write code related to linked list operations
asked oncemediumPractice this →
Explain Kruskal’s algorithm and how it works.
asked oncemediumPractice this →
Implement and explain basic linked list operations
asked oncemediumPractice this →
Write a program to detect a cycle in a linked list
asked oncemediumPractice this →
Write code to insert a node in a doubly linked list.
asked oncemediumPractice this →
Check if there exists a subarray with sum equal to 0.
asked oncemediumPractice this →
Find the repeating and the missing number in an array.
asked oncemediumPractice this →
Swap two nodes of a linked list without swapping data.
asked oncemediumPractice this →
Add two numbers without using the '+' operator in Java.
asked oncemediumPractice this →

Aptitude

Showing 3 of 15 reported in this area

Solve aptitude questions based on blood relations.
asked oncemediumPractice this →
Time and work related quantitative aptitude problems.
asked oncemediumPractice this →
Solve aptitude problems based on profit and loss calculations
asked oncemediumPractice this →

Behavioural

Showing 3 of 14 reported in this area

If you are assigned a task by your manager to complete within a week but you have no idea about the task, what will you do?
asked oncemediumPractice this →
How confident are you, and what is the reason for your confidence?
asked onceeasyPractice this →
What is the difference between a product-based company and a service-based company?
asked onceeasyPractice this →

Puzzles

Showing 2 of 7 reported in this area

Solve the 9 balls weighing puzzle to find the odd ball using minimum weighings.
asked oncemediumPractice this →
Puzzle: You have 3 bulbs in a room and 3 switches outside. How do you determine which switch controls which bulb?
asked oncemediumPractice this →

System design

1 questions reported in this area

Design a system to store articles and retrieve the most popular article.
asked oncemediumPractice this →

Showing 60 of 245 questions. Ranked by how often the same question came back across reports.

Practise a HP-style interview

A spoken interview built from these questions, scored when you finish; the report is yours.

Start practising

Common questions

What questions does HP ask?

Candidate interview reports most often cover CS fundamentals (69%) and DSA (18%).

How many rounds does HP interview have?

Candidate interview reports show an average of 4.0 rounds per experience, with a typical sequence of Online test → Technical → Managerial → HR. Individual interview paths can vary.

Is the HP interview hard?

Among questions with a reported difficulty, the mix is easy 43%, medium 53%, hard 4%.

Keep reading