1/42
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai | Chat |
|---|
No analytics yet
Send a link to your students to track their progress
Collections
What is a group of objects that provides a standard set of types for storing and managing collections of objects?
Collections
Which contains lists, linked lists, dictionaries, and arrays to manage collections of objects?
Standard Collections
Generic Collections
What are the two types of collections?
Standard Collections
Which are found in the System.Collections namespace?
Generic Collections
Which are found in the System.Collections.Generic namespace?
ArrayList
Hashtable
SortedList
Stack
Queue
What are Classes of the System.Collections Namespace?
ArrayList
Which collection class is known for an ordered collection of objects?
ArrayList
Which is not the same as an array that is static in size?
ArrayList
Which is known as dynamic since items can be added and removed from the specified index location?
Hashtable
Which class stores key or value pairs where the key represents the value in the collection?
Hashtable
When accessing the values in […], the key must be specified.
SortedList
Which class is a combination of ArrayList and Hashtable?
SortedList
Which class stores key or value pairs where the key values sort values?
SortedList
To access the values in […], the key or index value must be specified.
Capacity
Count
Item
Key
Values
What are some properties that can be used in SortedList?
Capacity
Which property gets or sets the capacity of SortedList?
Count
Which property gets the count of the number of elements in SortedList?
Item
Which property gets and sets the value associated with a specific key in the SortedList?
Keys
Which property carry the keys in the SortedList?
Values
Which property carry the values in the SortedList?
void Clear()
void Add(object key, object value)
void Remove(object key)
void RemoveAt(int index)
bool ContainsKey(object key)
bool ContainsValue(object value)
object GetByIndex(int index)
object GetKey(int index)
What are some methods that are used in SortedList?
void Clear()
Which method is used to remove all the items in the SortedList?
void Add(object key, object value)
Which method adds an item with the specified key and value into the SortedList?
void Remove(object key)
In the SortedList, a key that is specified will remove its element.
void RemoveAt(int index)
It is an index that is specified will remove its element in the SortedList.
bool ContainsKey(object key)
If the SortedList contains specified key, then it will return the Boolean value true.
bool ContainsValue(object value)
If the SortedList contains specified value, then it will return the Boolean value true.
object GetByIndex(int index)
Which method returns the value of the specified index in SortedList?
object GetKey(int index)
Which method returns the key of the specified index in the SortedList?
Stack
Which class represents a Last In, First Out (LIFO) collection of objects?
push and pop
When inserting and removing objects from the stack, it uses […] and […] operations.
Queue
Which class represents a First In, First Out (FIFO) collection of objects?
enqueue and dequeue
Adding and removing objects from the queue class uses an […] and […] operations.
IEnumerable
ICollection
IDictionary
What are the Interfaces in the System.Collections Namespace?
IEnumerable
Which interface allows you to loop through elements in a collection?
ICollection
Which interface allows you to determine the number of elements in a collections and copy them in a simple array type?
IDictionary
Which interface provides a list of elements that are accessible via a key or value rather than an index?
Generics
What makes the code reusable across different types by creating a template that contains placeholder types?
Generics
What allows specifying the data types of the programming elements when they are actually used in the program?
System.Collection.Generics namespace
Which contains several generic collection classes?
Generics
When using […], it allows creating collections like linked lists, hashtables, stacks and queues that operate on an item of any data type?
List<T>
Queue<T>
Stack<T>
What are the generic collections found in System.Collections.Generic namespace?
List<T>
Which is a generic collection that provides an efficient and dynamically allocated array—also commonly used to store a list of duplicate objects?