Search Header Logo

Collections C#

Authored by Long Trần

Computers

University

Used 11+ times

Collections C#
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers