CSD203_-_SP_2025_-_FE_3576.webp
N

CSD203_-_SP_2025_-_FE_3576.webp

Kizspy Question: 8
(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):
print (printval.data)
printval printval.next
A. 12345
B. 2345
C. 1234
D. 54321

Thông tin

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

Share this media

Back
Bên trên Bottom