When deleting the only node in a list we must be careful to _____.

A. set the head to null
B. display an error message
C. inform the application
D. return false


Answer: A

Computer Science & Information Technology

You might also like to view...

What function would you use to generate a random number to simulate the flip of a coin? 

A. nextBoolean() B. nextTF(True, False) C. nextIntegerInRange(2) D. nextInteger(True, False)

Computer Science & Information Technology

The loop condition is represented by a parallelogram in a flowchart.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Vine is a(n) ________ service for posting short videos

Fill in the blank(s) with correct word

Computer Science & Information Technology

Suppose you have the following declaration. double[] salesData = new double[500];Which of the following range is valid for the index of the array salesData.(i)  0 through 500(ii) 0 through 499

A. Only (i) B. Only (ii) C. Both are invalid D. None of these

Computer Science & Information Technology