Question: ( a ) Define a function named task 1 . The function should able to insert a new student node into an empty list. Figure

(a) Define a function named task1. The function should able to insert a new student node into
an empty list. Figure 2 shows the result of this task after the execution of the statement in
Line 25.
[5 marks]
Figure 2: Current node in the list after insertion node in the empty list
(b) Define a function named task2. The function should able to insert a new student node
at the end of the list. Figure 3 shows the result of this task after the execution of the
statement in Line 26 and Figure 4 shows the result of this task after the execution of the
statement in Line 27.
[5 marks]
Page 2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!