Collections C#

Collections C#

University

20 Qs

quiz-placeholder

Similar activities

special mid exams in ITE6

special mid exams in ITE6

University

20 Qs

Generics

Generics

University

20 Qs

Fundamentals of Data Structures-Test 1-Unit-1

Fundamentals of Data Structures-Test 1-Unit-1

University

20 Qs

Stack & Quiz

Stack & Quiz

University

20 Qs

Data Structures and Algorithms Quiz - BATCH 1

Data Structures and Algorithms Quiz - BATCH 1

University

23 Qs

AS Computing: Data Structures

AS Computing: Data Structures

10th Grade - University

15 Qs

Stacks and Queues Quiz

Stacks and Queues Quiz

University

15 Qs

Fundamentals of DAta structure IS 2-2B

Fundamentals of DAta structure IS 2-2B

University

20 Qs

Collections C#

Collections C#

Assessment

Quiz

Computers

University

Easy

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?