What is the difference between System.String and System.Text.StringBuilder classes?
System.String is immutable. System.StringBuilder was designed with the purpose of having a mutable string where a variety of operations can be perform...
Oops!
Check
Okay!
Check
15
What namespaces are necessary to create a localized application?
System.Globalization and System.Resources.
Oops!
Check
Okay!
Check
baam
Lose 25 points!
Oops!
shark
Other team loses 25 points!
Okay!
gift
Win 25 points!
Okay!
baam
Lose 20 points!
Oops!
15
What are class properties?
class members that expose functionality of methods using the syntax of fields. They simplify the syntax of calling traditional get and set methods (a....
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
lifesaver
Give 25 points!
Oops!
shark
Other team loses 25 points!
Okay!
rocket
Go to first place!
Okay!
baam
Lose 15 points!
Oops!
eraser
Reset score!
Oops!
magnet
Take 25 points!
Okay!
rocket
Go to first place!
Okay!
lifesaver
Give 15 points!
Oops!
15
What is a constraint?
When you define a generic class, you can apply restrictions to the kinds of types that client code can use for type arguments when it instantiates you...
Oops!
Check
Okay!
Check
15
What does the keyword virtual mean?
The method or property can be overridden and most importantly, the run-time type of the object determines which method is to be invoked.
Oops!
Check
Okay!
Check
boom
Lose 50 points!
Oops!
fairy
Take points!
5
10
15
20
25
rocket
Go to first place!
Okay!
banana
Go to last place!
Oops!
15
What does the checked keyword mean?
used to properly check to see if an overflow exception has occurred
Oops!
Check
Okay!
Check
15
When do you absolutely have to declare a class as abstract?
1) When the class itself is inherited from an abstract class2) When at least one of the methods in the class is abstract.
Oops!
Check
Okay!
Check
15
What is the significance of Application.Idle?
it's how message processing is done on the application's UI thread; has become a convenient place to take care of application housekeeping chores asyn...
Oops!
Check
Okay!
Check
15
What are generics?
they are classes, structures, interfaces, and methods that have placeholders (type parameters) for one or more of the types that they store or use. th...
Oops!
Check
Okay!
Check
15
What is the difference between an interface and an abstract class?
In an interface, all methods are abstract; there is no implementation at all. In an abstract class, some methods can be concrete. In an interface, no...
Oops!
Check
Okay!
Check
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...