Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

5. Select one: a. head=3; b. head.item=3; c. *head.item=3; d. head->item=3; 6. T

ID: 3693219 • Letter: 5

Question

5.

Select one:

a. head=3;

b. head.item=3;

c. *head.item=3;

d. head->item=3;

6.

To add an item to a stack, we call the ________ function.

Select one:

a. pop

b. top

c. push

d. empty

7.

Select one:

a. head->next is pointing to NULL.

b. If there were any nodes following head they are now lost.

c. Nothing is wrong.

d. tmp should be declared to be a Node not a NodePtr

8.

Select one:

a. top=NULL;

d. None of these

9.

Select one:

a. if(head->next == NULL)

b. if(head == null)

c. if( head == NULL)

d. if( head->next==null);

e. if(head->next == NULL) and if( head->next==null);

f. if(head == null) and if( head == NULL)

Explanation / Answer

5- d
6- c
7-image missing

8- image missing in the provide question
    but your luck, i have found and option would be the one which consists of below answer
char next;
while (! empty( ))
next = pop( );

9- f

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote