Search Header Logo

SLR4 | Data Structures with C# Examples

Authored by H Malaney

Computers

11th Grade

Used 5+ times

SLR4 | Data Structures with C# Examples
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a linear data structure?

Tree

Graph

Array

Hash Table

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary difference between records and tuples in data structures?

Records are immutable, while tuples are mutable.

Records have named fields, while tuples do not.

Tuples are always larger than records.

Records can only store integers.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is true about arrays and lists?

Arrays can store elements of different data types, while lists cannot.

Lists are fixed in size, while arrays are dynamic.

Arrays have a fixed size, while lists can grow and shrink.

Lists are always faster than arrays.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the first step in reading a text file in C#?

Close the file.

Write to the file.

Include using System.IO; namespace

Delete the file.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a common binary file format?

.txt

.csv

.jpg

.html

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operation is used to add an element to a list in C#?

.Insert()

.Add()

.Remove()

.Pop()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a characteristic of a tuple in C#?

Tuples are mutable.

Tuples can be used as keys in dictionaries.

Tuples can only contain strings.

Tuples are always sorted.

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?