The following code searches a linked structure. What is the missing code?
probe = headwhile probe != None and targetItem != probe.data: 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
Answer: C
Computer Science & Information Technology
You might also like to view...
A loan amortization table is a schedule that shows the interest, principal repayment, and remaining balance
Indicate whether the statement is true or false
Computer Science & Information Technology
Which of the following is part of security process data? (Choose all that apply.)
A. account management B. management review C. key performance and risk indicators D. backup verification data
Computer Science & Information Technology