What are the differences between an ordered list, an unordered list, and an indexed list?

What will be an ideal response?


An ordered list has elements that are arranged according to some characteristic of each element. When
elements are added to the list, they are added to maintain the relationship of this characteristic among adjacent elements. An
unordered list is a list in which the elements have no such inherent characteristic that can be used to order them. The elements
are still in the list in some order, but the order is determined by the user of the list. An indexed list is also unordered, in that the
elements are added to the list in an order determined by the user of the list and not by a relation between characteristics of the
elements. However, an indexed list also has an index associated with each element. As an element is added to the list, it is given
an index appropriate for its position in the list. All of the indexes of the elements after the added element are adjusted so that
they remain contiguous and in order.

Computer Science & Information Technology

You might also like to view...

What is the difference between strcmp and strncmp?

a. No difference b. they both compare, one expects an integer for the number of characters to compare. c. one copies, the other compares d. They are in different libraries

Computer Science & Information Technology

The current surround sound standard is from ________

Fill in the blank(s) with correct word

Computer Science & Information Technology

You can apply a template to Photo Album

Indicate whether the statement is true or false

Computer Science & Information Technology

A parent ____ is a reserved word in JavaScript that refers to the parent frameset.

A. parameter B. code C. object D. behavior

Computer Science & Information Technology