If a base class has a number of overloaded constructors, and an inheriting class has a number of overloaded constructors; can you enforce a call from an inherited constructor to a specific base constructor?
Yes, just place a colon, and then keyword base (parameter list to invoke the appropriate constructor) in the overloaded constructor definition inside...
Oops!
Check
Okay!
Check
15
What is the significance of the 'where' keyword?
public abstract class ObjectMapperBase<T> where T : new(){ internal abstract bool UpdateObject(T plainObjectOrginal, T plainObjectNew, WebMethod fwm,...
Oops!
Check
Okay!
Check
trap
No points!
Oops!
gift
Win 5 points!
Okay!
gift
Win 20 points!
Okay!
thief
Give points!
5
10
15
20
25
15
What is the C# syntax to catch any possible exception?
a catch block that catches the exception of type System.Exception. You can also omit the parameter data type in this case and just write catch{}.
Oops!
Check
Okay!
Check
seesaw
Swap points!
Oops!
magnet
Take 15 points!
Okay!
fairy
Take points!
5
10
15
20
25
lifesaver
Give 15 points!
Oops!
15
How is the DLL Hell problem solved in .NET?
Assembly versioning allows the application to specify not only the library it needs to run (which was available under Win32) but also the version of t...
Oops!
Check
Okay!
Check
15
Are private class-level variables inherited?
Yes, but they are not accessible. Although they are not visible or accessible via the class interface, they are inherited.
Oops!
Check
Okay!
Check
15
What does the term immutable mean?
The data value MAY NOT be changed. Note: The variable value may be changed, but the original immutable data value was discarded and a new data value w...
Oops!
Check
Okay!
Check
lifesaver
Give 20 points!
Oops!
shark
Other team loses 10 points!
Okay!
fairy
Take points!
5
10
15
20
25
thief
Give points!
5
10
15
20
25
15
Explain how a finally block works.
A try/catch block can be optionally followed by a finally block that will be executed whether or not the code in the try or catch blocks executes succ...
What are the 5 visibility levels (access modifiers)?
1) public: available to anyone anywhere2) protected: can be accessed by the class itself and by any class derived from that class, an not any other cl...
Oops!
Check
Okay!
Check
15
What are the different ways a method can be overloaded?
A method can be overloaded with different parameter types, a different number of parameters, and different order of parameters.
Oops!
Check
Okay!
Check
15
Can you allow a class to be inherited, but prevent a method from being overridden?
Yes. Just leave the class public and make the method sealed.
Oops!
Check
Okay!
Check
15
What is static compilation?
a compiled version of a program which has been statically linked against libraries; no dynamic linking occurs: all the bindings have been done at comp...
Oops!
Check
Okay!
Check
15
What namespaces are necessary to create a localized application?