



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




CGS 3460 Quiz 6 Name:______________________ April 24, 2006 UF ID: _____________________ Gatorlink ID: ________________ Sign your name in the honor code below if you agree and wish to receive a grade for this quiz. “ On my honor, I have neither given nor received unauthorized aid in completing this quiz. ” Signature (attest honor code): ______________________________ Before turn in your answer sheets, make sure you sign your initials on top of each page.
struct athlete *p; for(p=list; p!=NULL; p=p->next) printf(“%f \n”, p->completion_time); e) Given struct athlete * node, which operator allows you to refer to the completion time? (6%) Answer: 3 node.time nodetime nodetime node(time) none of the above f) Given struct athlete node, which operator allows you to refer to the completion time? (6%) Answer: 1 node.time nodetime nodetime node(time) none of the above g) Which is of the below is not a benefit of using a linked list instead of an array? (6%) Answer: 3 Linked list is more flexible Linked list allow you sort the elements more easily Linked list allow you to randomly access one of its elements Linked list can grow and shrink as needed All of the above are its benefits
How many times fibonacci function would be called before this program terminates? __ 3 _