There are two lines with errors in the following algorithm. One of them is _____.Algorithm addBST (root, newNode)1 if (empty tree)1.1   set root to newNode1.2   return newNode2 end if3 if (newNode < root)3.1   addBST (left subtree, newNode)4 else4.1   addBST (right subtree, newNode)5 end ifend addBST

A. 1.1
B. 1.2
C. 3
D. 3.1


Answer: D

Computer Science & Information Technology

You might also like to view...

Which Photoshop feature tracks recent changes made to an image?

A. Layers panel B. Actions panel C. History panel D. Info panel

Computer Science & Information Technology

The act of exerting power over another by threatening to reveal damaging information about the aforementioned person is known as ___________.

A. tort B. exposure C. blackmail D. distortion

Computer Science & Information Technology

In Windows 7, Windows XP Mode installs a virtual copy of Windows XP, which enables the user to run older Windows XP software that might not run properly on Windows 7

Indicate whether the statement is true or false

Computer Science & Information Technology

If you want to find the closest possible match, what do you enter in the Range_lookup text box in the Function Arguments dialog box?

A. TRUE B. CLOSEST C. NEAR D. FALSE

Computer Science & Information Technology