SLR4 | Data Structures with C# Examples

SLR4 | Data Structures with C# Examples

11th Grade

16 Qs

quiz-placeholder

Similar activities

AP CSP Unit 1

AP CSP Unit 1

9th - 12th Grade

16 Qs

Java Arrays

Java Arrays

9th - 12th Grade

20 Qs

U01 - Command Line & Binary/Decimal Test

U01 - Command Line & Binary/Decimal Test

9th - 12th Grade

20 Qs

Computer files

Computer files

9th - 12th Grade

20 Qs

Big Idea 2: Data Questions

Big Idea 2: Data Questions

9th - 12th Grade

20 Qs

Lossy Vs Lossless

Lossy Vs Lossless

9th - 12th Grade

18 Qs

Data representation - Sound

Data representation - Sound

9th - 11th Grade

12 Qs

Python-Basic

Python-Basic

3rd Grade - University

15 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?