• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/32

Click to flip

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;

32 Cards in this Set

  • Front
  • Back
What are the implicit convertion of an sbyte?
short, int, long, float, double, or decimal
What are the implicit convertion of a byte?
short, ushort, int, uint, long, ulong, float, double, or decimal
What are the implicit convertion of a short?
int, long, float, double or decimal
What are the implicit convertion of a ushort?
int, uint, long, ulong, float, double or decimal
What are the implicit convertion of an int?
long, float, double, decimal
What are the implicit convertion of a uint?
long, ulong, float, double or decimal
What are the implicit convertion of a long?
float, double or decimal
What are the implicit convertion of a char?
ushort, int, uint, long, ulong, float, double or decimal
What are the implicit convertion of a float?
double
What are the implicit convertion of a ulong?
float, double or decimal
What are the explicit convertion of an sbyte?
byte, ushort, short, uint, ulong, or char
What are the explicit convertion of a byte?
sbyte or char
What are the explicit convertion of a short?
sbyte, byte, ushort, uint, ulong, or char
What are the explicit convertion of a ushort?
sbyte, byte, short, or char
What are the explicit convertion of an int?
sbyte, byte, short, ushort, uint, ulong, or char
What are the explicit convertion of a uint?
sbyte, byte, short, ushort, int, or char
What are the explicit convertion of a long?
sbyte, byte, short, ushort, int, uint, ulong or char
What are the explicit convertion of a ulong?
sbyte, byte, short, ushort, int, uint, long, or char
What are the explicit convertion of a char?
sbyte, byte, or short
What are the explicit convertion of a float?
sbyte, byte, short, ushort, int, uint, long, ulong, char or decimal
What are the explicit convertion of a double?
sbyte, byte, short, ushort, int, uint, long, ulong, char, float or decimal
What are the explicit convertion of a decimal?
sbyte, byte, short, ushort, int, uint, long, ulong, char, float, or double
What is boxing?
Converting a value type to a reference type. Like converting an int to a string.
What is unboxing?
Converting a reference type to a value type.
What is meant by implicit conversion?
Converting a type to another type without loosing data. Like taking an int to a long or a float to a double.
What is meant by explicit conversion?
Converting a type to another where there might be a loss of data. Like converting a double into an int.
Why should you override the ToString method in a type?
To prevent boxing.
Why should you avoid boxing?
It adds overhead.
If a structure inherits ToString from System.Object, why would someone override that method within the structure?
To avoid boxing, since value type members are boxed when an abstract method inherited from System.Object is called. By default, the ToString method returns the type name, which typically is not useful.
With strict conversions enabled, which of the following would allow an implicit conversion?
It throws an InvalidCastException, which is recommended.
What is mean by casting?
Converting one type to another.
What is a signature?
The return type, parameter count and parameter types of a member.