1. If the items stored in a collection are of different types, then the collecti
ID: 3761852 • Letter: 1
Question
1.
If the items stored in a collection are of different types, then the collection is referred to as ______.
Select one:
homogeneous
vector
dynamic
abstract
heterogeneous
2.
It is possible to restrict the type of object which is stored within a Java collection by using a generic type when the collection is declared.
Select one:
True
False
3.
Which statements are true? Select all that apply.
Select one or more:
A List cannot contain duplicate elements.
A List is a Collection.
A List is sometimes called a sequence.
Lists use zero-based indices.
4.
Which of the following implements the interface List? Select all that apply.
Select one or more:
Collections
Vector
ListIterator
ArrayList
LinkedList
Collection
5.
In order to input a list of values and output them in order, you could use a Queue. In order to input a list of values and output them in opposite order, you could use a Stack.
Select one:
True
False
Explanation / Answer
1. Dynamic
2. true
3. List is a collection
List is sometimes called as sequence
4. ArrayList
LinkedList
5. True
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.