[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

Hewlett Packard Enterprise Interview Questions

Home > Experience Archives > List of Companies > Hewlett Packard Enterprise
25.93K

Total Set :1



Top 10 Hewlett Packard Enterprise Interview Questions With Answer

Question: 1 / 10

Introduce you self breifly.

Answer:

I am from so and so places. I have finished my schoolings in so and so place.

Question: 2 / 10

Question were from resume and then about project (what type of data structure you have used.)

Question: 3 / 10

Did you face any looping issue.If so how you fixed those issues.

Question: 4 / 10

What is volatile, and have you used it in your project.

Question: 5 / 10

Do you have question for me?

Question: 6 / 10

Tell me about yourself.

Question: 7 / 10

How to find mask is valid or not.

Answer:


Basically a valid sub-net mask, when written in binary, has to consist
of only consecutive 1's and then 0's, but no intermittent mixing. I.e.:



255.255.255.128 -> 11111111.11111111.11111111.10000000 is valid

255.255.255.0 -> 11111111.11111111.11111111.00000000 is valid
255.255.255.144 -> 11111111.11111111.11111111.10010000 is not valid <<<<<<<<

#include <stdio.h>

int main()
{
char ip[4] = {255,255,255,128};
int count = 0, valid = 0,i,check,j;
for (j=3;j>=0;j--) {
count = 0;
if (valid)
check++;
for (i = 0;i < 8;i++)
{
if ((ip[j] & 1<<i) && count !=1)
{
count = 1;
}
if ((count ==1) && !(ip[j] & 1<<i))
valid = 1;
}
}
if (valid)
printf("Invalid subnet");
else

printf("Valid subnet");

}



Question: 8 / 10

Write a program to find the loop in sigle linked list.

Answer:

bool loopInLinkedList(Node *list)
{
Node *slow_p, *fast_p;
slow_p = list;
fast_p = list;
while (slow_p && fast_p && fast_p->next)
{
slow_p = slow_p->next;
fast_p = fast_p->next->next;
if (slow_p == fast_p)
return TRUE;
}
return FALSE;
}

Question: 9 / 10

Write a program to delete a node in single and double linked list.

Question: 10 / 10

Write a program to reverse a single linked list using pointer or recursive.