FinalExam
Name: Kwee Tan
Start time: December 12, 2005 9:57am
Time allowed: 120 minutes
Number of questions: 40

Finish  Help

Question 1  (1 point)
What is the equality operator?



Save answer
Question 2  (1 point)
Which method is used to find the occurence of a string in a regular expression?


Save answer
Question 3  (1 point)
mscorlib is:


Save answer
Question 4  (1 point)
Which statement correctly sets up a foreach loop to be used with a SortedList?


Save answer
Question 5  (1 point)
A switch statement can be used to test which of these variable types?


Save answer
Question 6  (1 point)
Which class would you use to find out the path name or directory name of a file?


Save answer
Question 7  (1 point)
int x; 
switch (x)
{
    
}

If x were 3, which statement would you place in the switch to find a match for 3?



Save answer
Question 8  (1 point)
Which statement about enums is true?


Save answer
Question 9  (1 point)
.NET is supported on non-Windows platforms. (True/ False)


Save answer
Question 10  (1 point)
class Customer
{
      public int acctNumber;
      public string firstName;
      public string lastName;

}

lastName is ________________.



Save answer
Question 11  (1 point)
A groupBox control named groupBox1 does not appear on the Windows form. Which statement should be added to the code so that it does appear?


Save answer
Question 12  (1 point)
In which class would you find methods to round, calculate the square root, and find the absolute value of a number?


Save answer
Question 13  (1 point)
To get the name of a file from the user, you can use which class?


Save answer
Question 14  (1 point)
Which statement tests if a radioButton has been selected?


Save answer
Question 15  (1 point)
Customer c = new Customer(); The statement is an example of _________________.


Save answer
Question 16  (1 point)
C# does not allow overloaded constructors.


Save answer
Question 17  (1 point)
Which method can be used to delete a record from a database?


Save answer
Question 18  (1 point)
The params keyword _______________________.


Save answer
Question 19  (1 point)
Suppose you had a class named Dog. How could you compare two Dog objects to see if they were equal?


Save answer
Question 20  (1 point)
Serializing an object using the BinaryFormatter saves private, as well as public fields. (True/False)


Save answer
Question 21  (1 point)
What is a good way to allow a program to dynamically read in values at startup, for instance, the name of a database.



Save answer
Question 22  (1 point)
You can define your own exception class, as long as it is derived from the ____________ class.


Save answer
Question 23  (1 point)
An interface _____________


Save answer
Question 24  (1 point)
Which class can be used to create a dyamic array?


Save answer
Question 25  (1 point)
Which code correctly declares an array that can hold floating point (decimal) numbers?


Save answer
Question 26  (1 point)
Which is the AND operator? 



Save answer
Question 27  (1 point)
Which statement is needed to use regular expressions in your program?


Save answer
Question 28  (1 point)
Which method is used to place a node on a stack?


Save answer
Question 29  (1 point)
Structures (structs) support inheritance.


Save answer
Question 30  (1 point)
Which statement is true concerning serialization?


Save answer
Question 31  (1 point)
ADO.NET supports which databases?


Save answer
Question 32  (1 point)
Which statement correctly declares a structure? (choose one answer)


Save answer
Question 33  (1 point)
Which foreach statement is correct to loop through an array of Cartoon objects named arrayOfCartoons?


Save answer
Question 34  (1 point)
The DataAdapter object is read only. (True/ False)


Save answer
Question 35  (1 point)
_________ accepts a method name as its input parameter and invokes the method.


Save answer
Question 36  (1 point)
Which statement correctly adds the string "Joe" to a listbox named listBox1?


Save answer
Question 37  (1 point)
C# supports which looping structures.


Save answer
Question 38  (1 point)
Which statement shows the correct signature for a button click event method?


Save answer
Question 39  (1 point)
System.Drawing is:


Save answer
Question 40  (1 point)
Which class provides methods to create and manipulate strings?


Save answer

Finish