SLR4 | Data Structures with C# Examples

SLR4 | Data Structures with C# Examples

11th Grade

16 Qs

quiz-placeholder

Similar activities

Year 10 - Prevision Quiz

Year 10 - Prevision Quiz

11th Grade

17 Qs

javascript BASIC

javascript BASIC

11th Grade

13 Qs

Java 2 Quiz 9

Java 2 Quiz 9

10th - 12th Grade

20 Qs

2D Arrays

2D Arrays

9th - 12th Grade

12 Qs

Java Fundamentals

Java Fundamentals

11th Grade

17 Qs

CSP Arrays

CSP Arrays

10th - 12th Grade

20 Qs

Python Tuple

Python Tuple

11th Grade

15 Qs

J277 Programming - Data Types

J277 Programming - Data Types

9th - 11th Grade

11 Qs

SLR4 | Data Structures with C# Examples

SLR4 | Data Structures with C# Examples

Assessment

Quiz

Computers

11th Grade

Medium

Created by

H Malaney

Used 5+ times

FREE Resource

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.

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?