Get Off-Campus Placement Jobs Info !!!
Programs asked in Mettl Coding Round
Click To Practce List of Programs asked in Nagarro !!!

Wipro Interview Questions

237.99K

Total Set :5



Top 10 Wipro Interview Questions With Answer

Question: 1 / 10

Introduce yourself briefly.

Question: 2 / 10

How ping works.which protocol used in it.

Answer:

PING is standard for Pocket internet grouper.



PING command is used a simple way to verify to that computer can communicate over another network or computer.



PING is used ICMP (Internet control message protocol), This protocol is verified communication ECHO Request and ECHO response technology.



 

Question: 3 / 10

What is NAT.

Answer:

 Network Address Translate is Called NAT.



Firewall used to assign private networks to public networks, NAT used to assign limited of public networks based on economy or security.

Question: 4 / 10

Write a program to reverse a number, input 12345 output 54321.

Question: 5 / 10

Write a program to find the loop in a single linklist.

Answer:

/* pass the head reference to detectLoop */
int detectLoop(struct node *list)
{
struct node *slowp = list, *fastp = list;

while (slowp && fastp && fastp->next)
{
slowp = slowp->next;
fastp = fastp->next->next;
if (slow_p == fast_p)
{
printf("\r\nLoop detected in given linked list.\r\n");
return 1;
}
}
return 0;
}

Question: 6 / 10

Now Modify your program to remove the loop in same linklst.

Answer:

/* pass the head reference to detectLoop */
int detectLoop(struct node *list)
{
struct node *slowp = list, *fastp = list;

while (slowp && fastp && fastp->next)
{
slowp = slowp->next;
fastp = fastp->next->next;
if (slow_p == fast_p)
{
printf("\r\n Loop detected in given linked list.\r\n");
removeloop(slowp, list);
return 1;
}
}
return 0;
}

void removeLoop(struct node *slow_node, struct node *head)
{
struct node *ptr1;
struct node *ptr2;

ptr1 = head;
while (1)
{
ptr2 = loop_node;
while (ptr2->next != loop_node && ptr2->next != ptr1)
ptr2 = ptr2->next;
if (ptr2->next == ptr1)
break;

ptr1 = ptr1->next;
}
ptr2->next = NULL;
}

Question: 7 / 10

What is dangling pointer. So As per him in question 6 it will occurred

Question: 8 / 10

What is deadlock.

Question: 9 / 10

Write a program in which deadlock created. there were two question ...

Question: 10 / 10

Write a program to delete a node in double linklist if info match.