Something 1
Something 2
Something 3
Something 4
Something 5
100

What does File I/O stand for?

File Input and Output

100

What is a constructor in C#?

A special method used to create instances of a class

100

 Which of the following is true about constructors?

They must have the same name as the class

100

What keyword is used to define a property in C#?

get and set

100

What is the naming convention for properties in C#?

Start with an uppercase letter

200

What is the first index of an array in C#?

0

200

Which method checks if a file exists in C#?

File.Exists()

200

Which property is used to find the total number of elements in an array?

Length

200

Which method from the Array class would you use to sort an array?

Array.Sort()

200

Which of the following is true about arrays in C#?

Arrays are reference types

300

What is a primary advantage of using a collection in C#?

Collections help manage and manipulate groups of objects efficiently

300

Which method is automatically called when an object is printed using WriteLine()?

ToString()

300

Which class is used to check if a folder exists?

Directory

300

What is the purpose of using new when creating an object?

 It allocates memory and calls the constructor

300

Which collection type can dynamically resize and store any data type as an object?

List

400

What is a jagged array in C#?

An array where each element is another array of potentially different length

400

What are the core operations in a Queue<T>?

Enqueue and Dequeue

400

Which operation in Stack<T> returns the top value without removing it?

Peek

400

What is the correct method to create a new folder?

Directory.CreateDirectory()

400

What principle does the Queue<T> collection follow?

First-In-First-Out

500

Which class allows reading characters from a text file line by line?

StreamReader

500

 Which of the following correctly declares and initializes a string array with 25 elements?
A. string[] lastName = {25};
B. string lastName = new string[25];
C. string[] lastName = new string[25];
D. string lastName[] = new string[25];

C. string[] lastName = new string[25];

500

What is the purpose of : in C#

Inheritance

500

Which class allows writing to a binary file?

BinaryWriter

500

Which method is used to write a complete string to a text file in one step?

File.WriteAllText()

M
e
n
u