☑Kizspy.me
Answer (Choose 1 answer)
☐ A
Back
Next
FUQ.sh
sh the exam.
Suppose a singly linked list of integers is given below:
1-2-3-4 ... None where head is 1
What will be the output of the following code?
def listprint(self):
printval = self.head
while (printval):
print (printval.data)
printval = printval.next
A. 12345
B. 2345
C. 1234
D. 54321