Collections C#

Collections C#

University

20 Qs

quiz-placeholder

Similar activities

data structures1

data structures1

University

20 Qs

DATA STRUCTURES QUIZ

DATA STRUCTURES QUIZ

University

15 Qs

data structure

data structure

University

15 Qs

Data Structures: Placement Preparations

Data Structures: Placement Preparations

University

25 Qs

Data Structure

Data Structure

University

20 Qs

Stack & Queue

Stack & Queue

University

16 Qs

Data Structure

Data Structure

12th Grade - University

15 Qs

Data Structure With C++

Data Structure With C++

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?