Collections C#

Quiz
•
Computers
•
University
•
Easy
Long Trần
Used 11+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main motivation for using collection classes in C#?
To reduce the size of arrays
To provide flexible, dynamically resizing data structures
To avoid using objects
To enhance memory usage
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which namespace contains nongeneric collections in C#?
System.Generic
System.Collections.Generic
System.Collections
System.Data
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the key disadvantage of nongeneric collections?
They are type-safe
They perform better than generic collections
They operate on `System.Object` types, leading to type safety issues
They require complex syntax
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an example of a generic collection?
ArrayList
Queue
List
Stack
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why are generic collections preferred over nongeneric collections?
They provide better type safety and performance by avoiding boxing and unboxing
They allow any data type to be used without casting
They only work with primitive data types
They can store only objects
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the `ArrayList` collection in C# represent?
A generic collection for fixed-size arrays
A nongeneric collection that can hold different data types
A stack-based collection
A queue-based collection
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a generic collection class in C#?
List
Dictionary
ArrayList
Stack
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
final C# exam

Quiz
•
University
15 questions
Quick Revision H466 #1

Quiz
•
12th Grade - University
15 questions
Queues

Quiz
•
11th Grade - Professi...
15 questions
Data Structures Activity - 1

Quiz
•
University
20 questions
Data Structures and Algorithms Quiz

Quiz
•
University
15 questions
CC 105 - Quiz No 2 (BSIT2A-G2)

Quiz
•
University
20 questions
UTS Algoritma dan Struktur Data

Quiz
•
University
20 questions
TECHNICAL QUIZ

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University