No history yet

Final Exam

 

1.What is the primary role of the .NET Framework in C# development?

 

2.Which statement accurately describes the difference between value types and reference types in C#?

 

3.What will be the value of the variable myInt after this code executes?
double myDouble = 9.78;
int myInt = (int)myDouble;

 

4.Which statement best explains the fundamental difference between a while loop and a do-while loop in C#?

 

5.In C#, what is the term for defining multiple methods in the same class with the same name but with different parameters?

 

6.The OOP principle that involves bundling data (fields) and the methods that operate on that data into a single unit (a class) is known as ________.

 

7.What is a key difference between an abstract class and an interface in C#?

 

8.In a try-catch-finally block, the code within the finally block is executed:

 

9.Which C# collection is best suited for storing a collection of unique items where the order does not matter and retrieval speed is critical?

 

10.What is the primary purpose of Dictionary<TKey, TValue>?

 

11.When writing text to a file in C#, which class is commonly used to ensure that resources are properly managed and disposed of, often in conjunction with a using statement?

 

12.What is the primary benefit of using Language Integrated Query (LINQ) in C#?

 

13.Which of the following LINQ queries correctly selects all even numbers from a list of integers named numbers?

All done? Get your grade