Which of the following is false?

a) Arrays can be maintained in sorted order.
b) Linked lists can be maintained in sorted order.
c) Insertion and deletion in a sorted array (while maintaining sorted order) is efficient.
d) Once the insertion point or the node to be deleted has been located, insertion or deletion in a sorted linked list (while maintaining sorted order) is efficient.

c) Insertion and deletion in a sorted array (while maintaining sorted order) is efficient.

Computer Science & Information Technology

You might also like to view...

What years are displayed in the list box by the following program segment?

``` Dim years() As Integer = {1492, 1776, 1840, 1929, 1945, 2005} Dim query = From year in years Where Is20thCentury(year) Select year For Each yr in query lstBox.Items.Add(yr) Next Function Is20thCentury(num As Integer) As Boolean If (num >= 1900) and (num < 2000) Then Return True Else Return False End IF End Function ``` (A) 1929 and 1945 (B) 1929 (C) 1492, 1776, 1840, 1929, 1945, 2005 (D) No years

Computer Science & Information Technology

Which correctly creates an array of five empty Strings?

a. String[] a = new String [5]; b. String[] a = {"", "", "", "", ""}; c. String[5] a; d. String[ ] a = new String [5]; for (int i = 0; i < 5; a[i++] = null);

Computer Science & Information Technology