answersLogoWhite

0


Want this question answered?

Be notified when an answer is posted

Add your answer:

Earn +20 pts
Q: What are the uses of dummy pointer in universal testing machine?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Is a blender a simple or complex machine?

Compund Dummy!


Write a c program to insert an element in the beginning at the end at the specified position in a linear linked list?

#include<stdio.h> #include<stdlib.h> typedef struct Node { int data; struct Node *next; }node; void insert(node *pointer, int data) { /* Iterate through the list till we encounter the last node.*/ while(pointer->next!=NULL) { pointer = pointer -> next; } /* Allocate memory for the new node and put data in it.*/ pointer->next = (node *)malloc(sizeof(node)); pointer = pointer->next; pointer->data = data; pointer->next = NULL; } int find(node *pointer, int key) { pointer = pointer -> next; //First node is dummy node. /* Iterate through the entire linked list and search for the key. */ while(pointer!=NULL) { if(pointer->data == key) //key is found. { return 1; } pointer = pointer -> next;//Search in the next node. } /*Key is not found */ return 0; } void delete(node *pointer, int data) { /* Go to the node for which the node next to it has to be deleted */ while(pointer->next!=NULL && (pointer->next)->data != data) { pointer = pointer -> next; } if(pointer->next==NULL) { printf("Element %d is not present in the list\n",data); return; } /* Now pointer points to a node and the node next to it has to be removed */ node *temp; temp = pointer -> next; /*temp points to the node which has to be removed*/ pointer->next = temp->next; /*We removed the node which is next to the pointer (which is also temp) */ free(temp); /* Beacuse we deleted the node, we no longer require the memory used for it . free() will deallocate the memory. */ return; } void print(node *pointer) { if(pointer==NULL) { return; } printf("%d ",pointer->data); print(pointer->next); } int main() { /* start always points to the first node of the linked list. temp is used to point to the last node of the linked list.*/ node *start,*temp; start = (node *)malloc(sizeof(node)); temp = start; temp -> next = NULL; /* Here in this code, we take the first node as a dummy node. The first node does not contain data, but it used because to avoid handling special cases in insert and delete functions. */ printf("1. Insert\n"); printf("2. Delete\n"); printf("3. Print\n"); printf("4. Find\n"); while(1) { int query; scanf("%d",&query); if(query==1) { int data; scanf("%d",&data); insert(start,data); } else if(query==2) { int data; scanf("%d",&data); delete(start,data); } else if(query==3) { printf("The list is "); print(start->next); printf("\n"); } else if(query==4) { int data; scanf("%d",&data); int status = find(start,data); if(status) { printf("Element Found\n"); } else { printf("Element Not Found\n"); } } } }


What is stubs and drivers in software testing?

While doing an Integration , If we dont have all the modules get ready and Need to test a particualr module which is ready then We Use Stubs and Drivers. Stubs and drivers used in Integration testing for a Top Down Integration testing and Botton Up Integration Testing. For EX : If we have Modules x,y,z . X module is ready and Need to Test it , But i calls functions from y and z.(Which is not ready)To test at a particular module we write a Small Dummy piece a code which Simulates Y and Z Whch will return values for X, These pice of Dummy code is Called Stubs in a Top Down Integration So Stubs are called Functions in Top Down Integration. Similar to the above ex: If we have Y and Z modules get ready and x module is not ready, and we need to test y and z modules Which return values from X,So to get the values from X We write a Small Pice of Dummy code for x which returns values for Y and Z,So these piece of code is called Drivers in Botton Up Integration So Drivers are calling Functions in Bottom Up Inegration. Thanks Sandhya


What is the opposite of irrigation?

your mom that's what it is dummy


Do loops for dummies?

do <some statement here, dummy> while (<a condition here, dummy>); It will repeat the statement, and after every repetition checks the condition: if false, leaves to loop.

Related questions

What is the best Universal remote for you?

the kind that changes the chanell hahahahahhahah dummy


Is a blender a simple or complex machine?

Compund Dummy!


Where is it possible to purchase a testing dummy?

The best place to purchase a testing dummy is eBay. Be careful about buying second hand testing dummies as many have significant damage already and may not be suitable for your purpose. For example, many second hand testing dummies used on the Mythbusters' TV show often come only in very small parts.


What is full form of EVM?

Dummy Electronic Voting Machine Dummy EVMs campaigns to educate the voters about how to vote and the voting procedure. We deal in wholesale dummy EVM’s and supplies all over India. Dummy Electronic Voting Machine is a low-cost answer for exhibition/demonstration of voting to candidates. Whether you can do voting and check the procedure of voting. For More Information Visit - www[dot]dummyevm[dot]com


Why are blood testing kits becoming more popular?

Because everyone eats a crapload of sugar, u dummy


Who would win in a fight iron ma or war machine?

They're best friends they would never fight who are you a dummy


Is a swimmer a fish?

no dummy no dummy no dummy


Why is a dummy called a dummy?

A dummy is called a dummy for two reasons one because he is dumand not smart and does not know things second is because he is a dummy.


Is dummy a verb?

No, it is a noun since the word refers to a person, place, or thing.Example sentence: Car manufacturers use crash dummieswhen testing the safety of their new cars.


What is a sentence with the word dummy?

The dummy in the window had a missing arm.She put the dummy in the baby's mouthHe is such a dummy.


How much does it averagly cost to buy a laundry machine and dryer from any store?

get a life!! who cares!! JUST FREAKIN BUY ONE U DUMMY!


In goosebumps night of the living dummy what were the magic words that brought the dummy to life?

a dummy