Solved

The Following Code Searches a Linked Structure

Question 27

Multiple Choice

The following code searches a linked structure. What is the missing code?
Probe = head
While probe != None and targetItem != probe.data:
< missing code >
If probe != None:
Print("Target item found!")
Else:
Print("Target item not found!")


A) probe.data = next.data
B) probe.next = targetItem.data
C) probe = probe.next
D) probe.head = probe.next

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions