1. C# Program Structure a. Find the errors in the following program using System; using System.Collections.Generic; using System.Text; class Program { private decimal number; public void function() { number = 1.23; } static void main(string[] args) { Program p; p.function(); } } 2. Arrays, strings, expressions a. Arrays T/F int[ , , ] array declares a 3 dimensional array b. Strings What is the output? string str = "hello"; str.Replace ("l", "L"); Console.WriteLine(str); c. Expressions When would you use a Regex object instead of a string? a. Regex is derived from string so it is easier to use. b. Regex performs complex operations on strings. c. Regex is a more comprehensive string comparer. d. Regex uses the IEnumerator class to implement parsing. 3. File i/o, console i/o a. File i/o How can you tell if a file exists or not? b. Console i/o T/F You must use the 'using System;' library to access a console object. 4. Collections and arraylists a. Collections List 4 common collection classes b. ArrayList Show how to get an item out of an ArrayList 5. Properties, Indexers and Indexed Properties a. convert the following function to a property public string getName() { return Name; } b. Show how to write an indexer to access a class array element 6. Operator overloading, Converstions, reflection a. Operator overloading Show how to overload the '%' operator. b. Conversion operator Show how to write a user conversion operator. c. Reflection Show how to use reflection. 7. Inheritance, Polymorphism, interfaces a. Inheritance Show the syntax to derive a class from a base class b. Polymorphism What does the keyword 'virtual' do? a). Allows user to override a function b). Forces the user to override a function c). Make the class where it is used abstract d). It is a nessary declaration in an interface c. Interfaces T/F C# permits inheritance from multiple interfaces 8. Generics a. Convert the following function to a generic function: void Swap(ref int a, ref int b) { int t = a; a = b; b = t; }