Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
24 Cards in this Set
- Front
- Back
What are the value types?
|
Value types are types that derive from System.Type. There are three types of value types. Built-in, user-defined and enumerations
|
|
Where do value types reside?
|
On the stack. Therefore, the data contained in them can be retrieved directly.
|
|
What is the range of System.SByte (sbyte)?
|
-128 to 127.
|
|
How many bytes does a System.SByte take?
|
1 byte or 8 bits.
|
|
What is System.SByte commonly used for?
|
Signed byte values
|
|
What is the range of System.Byte (byte)?
|
0 to 255. (128 + 127 = 255)
|
|
How many bytes does a System.Byte (byte) take?
|
1 byte or 8 bits
|
|
What is System.Byte commonly used for?
|
Unsigned byte values
|
|
What is the range of System.Int16 (short)?
|
-32,768 to 32,767 or 215.
|
|
How many bytes does a System.Int16 (short) take?
|
2 byte of 16 bits
|
|
What is System.Int16 commonly used for?
|
Interoperability and special uses like small range integers like (0 to 100).
|
|
What is the range of System.Int32 (int)?
|
-2,147,483,648 to 2,147,483,647 or 231.
|
|
How many bytes does a System.Int32 (int) take?
|
4 byte or 32 bits
|
|
What is System.Int32 (int) commonly used for?
|
Whole number (integral) counting
|
|
What is the range of System.UInt32 (uint)?
|
0 to 4,294,967,295 or 232.
|
|
How many bytes does a System.Int32 (int) take?
|
4 byte or 32 bits
|
|
What is System.Int32 (uint) commonly used for?
|
Whole number (integral) counting < zero.
|
|
What is the range of System.Int64 (long)?
|
-9,223,372,036,854,775,808 to 9,223,372,036,854,775,807.
|
|
How many bytes does a System.Int64 (long) take?
|
8 byte or 64 bits
|
|
What is System.Int64 (long) commonly used for?
|
Large whole number (integral) counting.
|
|
What is the range of System.UInt64 (ulong)?
|
0 to 18,446,744,073,709,551,615.
|
|
How many bytes does a System.UInt64 (ulong) take?
|
8 byte or 64 bits.
|
|
What is System.UInt64 (ulong) commonly used for?
|
Large whole number (integral) counting < zero.
|
|
Are unsigned types CLS-compliant?
|
No. No unsiged types, ie byte (System.Byte), ushort (System.UInt16), uint (System.UInt32), ulong (System.UInt64), are NOT CLS-compliant. Reasoning is that some languages, like VB6, do not support unsigned types.
Sidebar: Remember Intel processors used little-endian architecture and most Alpha. |