Beruflich Dokumente
Kultur Dokumente
PART A
Shades the best answer.
Circular linked list Doubly linked list Singly linked list Hybrid linked list
2. Each node in a linked list contains a minimum of two fields, one field is
called data field; to store data and another field is a _____.
pointer to an pointer to a
pointer to a node pointer to a class
integer character
12 55 2 11
Reversed linked
Circular linked list Doubly linked list Singly linked list
list
PART B
Listed in the given table are the nodes in a linked list name ‘Beautiful’:
d) Insert the given node below between node named ‘Makeup_2’ and
‘Makeup_3’:
P0087L K5467P
Makeup_1 Makeup_2
W3426M
FOUNDATIO X
N
Makeup_6
P0087L K5467P
G7804H L3217M
EYELINE W3426 MASCARA G7804
R M H
Makeup_5 Makeup_3
W3426M
FOUNDATIO X
N
Makeup_6
c) Make the node given in table below as the last node of ‘Beautiful’:
P0087L K5467P
G7804H L3217M
EYELINE W3426 MASCARA G7804
R M H
Makeup_5 Makeup_3
W3426M P1007L
FOUNDATIO P1007 PRIMER X
N L
Makeup_6 Makeup_7
d) Insert the given node below between node named ‘Makeup_2’ and
‘Makeup_3’:
P0087L K5467P
P0087L
PREPARED BY: NYCJ @ FSKM, UiTM CAWANGAN PERLIS KAMPUS ARAU
CSC248 – FUNDAMENTALS OF DATA STRUCTURES
LINKED LIST: TUTORIAL 1
G7804H L3217M
EYELINE W3426 MASCARA G7804
R M H
Makeup_5 Makeup_3
W3426M P1007L
FOUNDATIO P1007 PRIMER X
N L
Makeup_6 Makeup_7
P0087L K5467P
Makeup_5 Makeup_3
W3426M P1007L
FOUNDATIO P1007 PRIMER X
N L
Makeup_6 Makeup_7
P0087L K5467P
P0087L
PREPARED BY: NYCJ @ FSKM, UiTM CAWANGAN PERLIS KAMPUS ARAU
CSC248 – FUNDAMENTALS OF DATA STRUCTURES
LINKED LIST: TUTORIAL 1
Makeup_5 Makeup_3
W3426M P1007L
FOUNDATIO P1007 PRIMER X
N L
Makeup_6 Makeup_7