Q15.webp
F

Q15.webp

  • Media owner Fu84
  • Ngày thêm
Question: 15
(Choose 1 answer)
Suppose a singly linked list of integers is given below:
head ->1->2->3->4->5->None
What will be the output of the following code?
def listprint(self):
printval = self.head
while printval.next is not None:
print (printval.data)
printval = printval.next
A. 12345
B. 2345
C. 1234
D. 54321

Thông tin

Category
CSD203
Thêm bởi
Fu84
Ngày thêm
Lượt xem
561
Lượt bình luận
4
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom