Quiz

It's quiz time! Test yourself by solving these questions about singly linked lists.

1

Which of the following is the correct implementation of the Node class?

A)
class Node:
   def __init__(self, data):
    self.head = data
    self.next = None
B)
class Node:
   def __init__(self):
    self.head = None
C)
class Node:
   def __init__(self, data):
    self.data = data
    self.head = None
D)
class Node:
   def __init__(self, data):
    self.data = data
    self.next = None
Question 1 of 50 attempted

Get hands-on with 1200+ tech skills courses.