Wednesday, November 5, 2008

Data Types - MCTS 70-536 Microsoft .NET Certification #2

Data Types - MCTS 70-536
Microsoft .NET Certification
Post #2

Hey Now Everybody,

Please feel free to check out my MCTS 70-536 reference page on Chris It’s a page with a summary of all of my posts.
This post is on section 1. Developing Application that use system types & collections. Data Types are very important. There are many types in .NET and here are some along with some details & examples.

• Delegates – Define the signature (arguments & return type) for the entry point
i. To Enable an assembly to respond to an event that occurs within a class
• Generic Types – include Nullable & EventHandler
• Reference Types – Include: Strings, Exceptions, delegate, interface.
• Value Types – include Integer, System.Drawing.Point, & Decimal, bool, char, double & long.
• Enumerator - is a type-safe to return a KeyValuePair
• Types Decimal, Double & float can each store fractional numbers
• Types int & Long can store integers
• Types uint & ulong are unsigned , & can only store zero & positive integers
• ushort type can only store values between 0 & 65,535

Question: The following types could store 1.29?

Answer: Float, double & decimal

Question: The following types could store -6?

Answer: int, double, decimal, float & long

As always all comments welcome.

That’s all there is there is no more, Bye for now!


No comments: