01.Blogs :
Didith  
A blog about the stuff that keeps life interesting, meaningful, and fun.

Errors in the PTR--or is it just me?

After several tries, I got past star 4 of C#. I noticed, though, that there were some questions that were dubious. I don't know if the question writers were trying to be deliberately tricky or there's a C# standard out there that's different from Visual Studio's, or it could be that I am missing something.

For instance, one of the questions asked me to identify which of the choices was NOT among the common methods inherited by all classes from the object class. The thing is, all of them were among the common methods (according to the notes!). The exception was a method that was misspelled--Equal instead of Equals, with an "s".

Another similar problem cropped up when the question asked which of the choices was not a method of the string class. All the choices were methods, with the exception of Copy. There was a CopyTo method, but not a Copy without the To (again, as far as I could tell...).

Finally, there was a question asking what exception is thrown when you attempt to use an uninitialized object. As far as I could tell, this won't even compile. Again, unless I didn't understand the question.

These were the three questions that mystified me, especially the third one. As I said, I'm not sure if these were trick questions or what.

posted on Saturday, March 18, 2006 9:47 PM by Didith

# re: Errors in the PTR--or is it just me? @ Saturday, March 18, 2006 9:05 AM

There are some inconsistencies in the exam portion as I've said before. So I no longer take the number of times I failed...

Aids

# re: Errors in the PTR--or is it just me? @ Saturday, March 18, 2006 10:47 AM

A program will compile with an unititialized object though the compiler is pretty good about catching those errors. Generally you see this with an array of objects. Each object has to be initialized individually and you can forget. because the objects in the array may be accessed directly it is not always possible for the compiler to know if a specific element will be used or if the code will or will not initialize (instanciate) it first. The error you will likely get is NullReferenceException. The long version of the message is "Object reference not set to an instance of an object."

AlfredTwo


 
03.UPDATE CALENDAR :
<March 2006>
SunMonTueWedThuFriSat
2627281234
567891011
12131415161718
19202122232425
2627282930311
2345678

05.MY LINKS :

07.Subscriptions :

Subscriptions


© Copyright 2005 Microsoft Corporation. All Rights Reserved.
Terms of Use | Privacy Statement | Code of Conduct | Hosted by MaximumASP for Microsoft
WHO-BAR