Deck 6: Lists

ملء الشاشة (f)
exit full mode
سؤال
List collections can be categorized as ______, ________, or __________.

A) Ordered, unordered, indexed
B) Linked, array, interface
C) Double, single, array
D) None of the above
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
The elements of an _____________ have an inherent relationship defining their order.

A) Ordered list
B) Unordered list
C) Indexed list
D) None of the above
سؤال
The elements of an _____________ are kept in whatever order the client chooses.

A) Ordered list
B) Unordered list
C) Indexed list
D) None of the above
سؤال
An _______________ maintains a contiguous numeric index range for its elements.

A) Ordered list
B) Unordered list
C) Indexed list
D) None of the above
سؤال
Many common operations can be defined for all list types. The differences between them stem from how elements are __________.

A) Added
B) Removed
C) Found
D) None of the above
سؤال
An ___________ is an object that provides a means to iterate over a collection.

A) Search
B) Comparable
C) Iterator
D) toString
سؤال
Interfaces can be used to derive other interfaces. The child interface contains all ____________ of the parent.

A) Non-abstract methods
B) Abstract methods
C) Parameters
D) None of the above
سؤال
An interface name can be used to declare an object reference variable. An interface reference can refer to any object of any class that __________ the interface.

A) Calls
B) Implements
C) Associates
D) None of the above
سؤال
Interfaces allow us to make ____________ references, in which the method that is invoked is based on the particular object being referenced at the time.

A) Polymorphic
B) Multiple
C) Interface
D) None of the above
سؤال
Only __________objects can be stored in an ordered list.

A) Ordered
B) Polymorphic
C) Comparable
D) None of the above
سؤال
The Java Collections API contains _________ implementations of an indexed list.

A) Two
B) Three
C) Four
D) Five
سؤال
______ collections can be categorized as ordered, unordered, and indexed.
سؤال
The ______ of an ordered list have an inherent relationship defining their order.
سؤال
The elements of an unordered list are kept in whatever order the ______ chooses.
سؤال
An ______ list maintains a contiguous numeric index range for its elements.
سؤال
The differences between the various types of lists, ordered, unordered, and indexed, stem from how elements are ______.
سؤال
The iterator method returns an object of type ______.
سؤال
An ______ allows one to traverse the elements of a collection.
سؤال
Interfaces can be used to derive other interfaces. The ______ contains all abstract methods of the parent.
سؤال
An interface name can be used to declare an object reference variable. An interface reference can refer to any object of any class that ______ the interface.
سؤال
Interfaces allow us to make polymorphic references, in which the method that is invoked is based on the particular ________ being referenced at the time.
سؤال
Only Comparable objects can be stored in an ______ list.
سؤال
The Java Collections API contains ______ implementations of an indexed list.
سؤال
List collections can be categorized as ordered, unordered, and indexed.
سؤال
The elements of an ordered list do not have an inherent relationship defining their order.
سؤال
The elements of an unordered list are kept in whatever order the client chooses.
سؤال
An indexed list maintains a contiguous numeric index range for its elements.
سؤال
An iterator is an object that provides a means to iterate over a collection.
سؤال
Interfaces cannot be derived from other interfaces.
سؤال
Interfaces allow us to make polymorphic references, in which the method that is invoked is based on the type of the reference variable rather than the particular object being referenced at the time.
سؤال
Only Comparable objects can be stored in an ordered list.
سؤال
What is the difference between an indexed list, an ordered list, and an unordered list?
سؤال
What are the basic methods of accessing an indexed list?
سؤال
What are the additional operations required of implementations that are part of the Java Collections API framework?
سؤال
What are the trade-offs in space complexity between an ArrayList and a LinkedList?
سؤال
What are the trade-offs in time complexity between an ArrayList and a LinkedList?
سؤال
What is the time complexity of the contains operation and the find operation for both implementations?
سؤال
What effect would it have if the LinkedList implementation were to use a singly linked list instead of a doubly linked list?
سؤال
Why is the time to increase the capacity of the array on an add operation considered negligible for the ArrayList implementation?
سؤال
What is an iterator and why is it useful for ADTs?
سؤال
Why was an iterator not appropriate for stacks and queues but it is appropriate for lists?
سؤال
Why is a circular array implementation not as attractive as an implementation of a list as it was for a queue?
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/42
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 6: Lists
1
List collections can be categorized as ______, ________, or __________.

A) Ordered, unordered, indexed
B) Linked, array, interface
C) Double, single, array
D) None of the above
Ordered, unordered, indexed
2
The elements of an _____________ have an inherent relationship defining their order.

A) Ordered list
B) Unordered list
C) Indexed list
D) None of the above
Ordered list
3
The elements of an _____________ are kept in whatever order the client chooses.

A) Ordered list
B) Unordered list
C) Indexed list
D) None of the above
Unordered list
4
An _______________ maintains a contiguous numeric index range for its elements.

A) Ordered list
B) Unordered list
C) Indexed list
D) None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
5
Many common operations can be defined for all list types. The differences between them stem from how elements are __________.

A) Added
B) Removed
C) Found
D) None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
6
An ___________ is an object that provides a means to iterate over a collection.

A) Search
B) Comparable
C) Iterator
D) toString
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
7
Interfaces can be used to derive other interfaces. The child interface contains all ____________ of the parent.

A) Non-abstract methods
B) Abstract methods
C) Parameters
D) None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
8
An interface name can be used to declare an object reference variable. An interface reference can refer to any object of any class that __________ the interface.

A) Calls
B) Implements
C) Associates
D) None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
9
Interfaces allow us to make ____________ references, in which the method that is invoked is based on the particular object being referenced at the time.

A) Polymorphic
B) Multiple
C) Interface
D) None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
10
Only __________objects can be stored in an ordered list.

A) Ordered
B) Polymorphic
C) Comparable
D) None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
11
The Java Collections API contains _________ implementations of an indexed list.

A) Two
B) Three
C) Four
D) Five
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
12
______ collections can be categorized as ordered, unordered, and indexed.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
13
The ______ of an ordered list have an inherent relationship defining their order.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
14
The elements of an unordered list are kept in whatever order the ______ chooses.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
15
An ______ list maintains a contiguous numeric index range for its elements.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
16
The differences between the various types of lists, ordered, unordered, and indexed, stem from how elements are ______.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
17
The iterator method returns an object of type ______.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
18
An ______ allows one to traverse the elements of a collection.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
19
Interfaces can be used to derive other interfaces. The ______ contains all abstract methods of the parent.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
20
An interface name can be used to declare an object reference variable. An interface reference can refer to any object of any class that ______ the interface.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
21
Interfaces allow us to make polymorphic references, in which the method that is invoked is based on the particular ________ being referenced at the time.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
22
Only Comparable objects can be stored in an ______ list.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
23
The Java Collections API contains ______ implementations of an indexed list.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
24
List collections can be categorized as ordered, unordered, and indexed.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
25
The elements of an ordered list do not have an inherent relationship defining their order.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
26
The elements of an unordered list are kept in whatever order the client chooses.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
27
An indexed list maintains a contiguous numeric index range for its elements.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
28
An iterator is an object that provides a means to iterate over a collection.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
29
Interfaces cannot be derived from other interfaces.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
30
Interfaces allow us to make polymorphic references, in which the method that is invoked is based on the type of the reference variable rather than the particular object being referenced at the time.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
31
Only Comparable objects can be stored in an ordered list.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
32
What is the difference between an indexed list, an ordered list, and an unordered list?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
33
What are the basic methods of accessing an indexed list?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
34
What are the additional operations required of implementations that are part of the Java Collections API framework?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
35
What are the trade-offs in space complexity between an ArrayList and a LinkedList?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
36
What are the trade-offs in time complexity between an ArrayList and a LinkedList?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
37
What is the time complexity of the contains operation and the find operation for both implementations?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
38
What effect would it have if the LinkedList implementation were to use a singly linked list instead of a doubly linked list?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
39
Why is the time to increase the capacity of the array on an add operation considered negligible for the ArrayList implementation?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
40
What is an iterator and why is it useful for ADTs?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
41
Why was an iterator not appropriate for stacks and queues but it is appropriate for lists?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
42
Why is a circular array implementation not as attractive as an implementation of a list as it was for a queue?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.