Font size
WorksheetsCollectionklassen in C#
Total questions: 7
Worksheet time: 4mins
Welche der folgenden Collections kann keine doppelten Werte speichern?
IComparer<T>
LinkedList<T>
SortedSet<T>
List<T>
Welche Collections unterstützen Zugriffe mit dem [ ]-Operator?
List<T>
SortedSet<T>
Dictionary<TKey, TValue>
HashSet<T>
Queue<T>
In welcher Collection werden Wertepaare abgespeichert?
HashSet
Dictionary
LinkedList
SortedSet
Was ist der Returntype der Methode Add in einem HashSet<T>?
void
int
Der Typeparameter der Collectionklasse
bool
Welche Collectionklasse funktioniert mit einem LIFO-Prinzip? (LIFO=Last-in-first-out)
List<T>
Queue<T>
Dictionary<TKey, TValue>
Stack<T>
Welche Collectionklasse funktioniert mit einem FIFO-Prinzip? (FIFO=First-in-first-out)
Stack<T>
Queue<T>
Dictionary<TKey, TValue>
LinkedList<T>
Wie groß ist die Komplexität eines Lesezugriffs auf den Schlüssel eines Dictionaries?
linear O(n)
konstant O(1)
logarithmisch O(ln(n))
faktoriell O(n!)
