c# 插入树形数据#
This section contains aptitude questions and answers on C# data types (set 1).
本节包含有关C#数据类型(集合1)的能力问题和答案。
- System.Int16 
- System.Int32 
- System.Int64 
- System.Byte 
Correct answer: 2
System.Int32
int is an alias of System.Int32 type, it takes 32 bits in the memory.
- System.Int16 
- System.Int32 
- System.Int64 
- 系统字节 
 正确答案:2 
 System.Int32 
int是System.Int32类型的别名,它在内存中占用32位。
- System.Char 
- System.String 
- System.Text 
- Character 
Correct answer: 1
System.Char
char is an alias of System.Char type, it takes 2 bytes space in the memory. Read more: char keyword in C#.
- 系统字符 
- System.String 
- 系统文字 
- 字符 
 正确答案:1 
 系统字符 
char是System.Char类型的别名,它在内存中占用2个字节的空间。 : C#中的char关键字 。
- -128 to +127 
- 0 to 127 
- 0 to 255 
- 0 to 256 
Correct answer: 3
0 to 255
byte is an alias of System.Byte type, it takes 1 byte space in the memory. Read more: byte keyword in C#.
- -128至+127 
- 0至127 
- 0至255 
- 0至256 
 正确答案:3 
 0至255 
byte是System.Byte类型的别名,它在内存中占用1个字节的空间。 : C#中的byte关键字 。
- -128 to +127 
- 0 to 127 
- 0 to 255 
- 0 to 256 
Correct answer: 1
-128 to +127
sbyte stands for signed byte, it's an alias of System.SByte, it takes 1-byte space in the memory. Read more: sbyte keyword in C#.
- -128至+127 
- 0至127 
- 0至255 
- 0至256 
 正确答案:1 
 -128至+127 
sbyte代表有符号字节,它是System.SByte的别名,它在内存中占用1个字节的空间。 : C#中的sbyte关键字 。
static void Main(string[] args)
{
byte a = 10;
byte b = 20;
byte sum = a + b;
Console.WriteLine(sum);
}
- 30 
- Compilation error 
- Run time error 
- None 
Correct answer: 2
Compilation error: Cannot implicitly convert type 'int' to 'byte'
By default, Arithmetic operation evaluates to 'int'.
To fix this problem, cast the expression as byte sum = (byte) (a+b);
- 30 
- 编译错误 
- 运行时错误 
- 没有 
 正确答案:2 
 编译错误:无法将类型'int'隐式转换为'byte' 
默认情况下,算术运算的结果为'int'。
要解决此问题,请将表达式强制转换为byte sum =(byte)(a + b);
static void Main(string[] args)
{
sbyte a = -10;
sbyte b = 20;
sbyte sum = a + b;
Console.WriteLine(sum);
}
- 10 
- Compilation error 
- Run time error 
- None 
Correct answer: 2
Compilation error: Cannot implicitly convert type 'int' to 'sbyte'
By default, Arithmetic operation evaluates to 'int'.
To fix this problem, cast the expression as sbyte sum = (sbyte) (a+b);
- 10 
- 编译错误 
- 运行时错误 
- 没有 
 正确答案:2 
 编译错误:无法将类型'int'隐式转换为'sbyte' 
默认情况下,算术运算的结果为'int'。
要解决此问题,请将表达式强制转换为sbyte sum =(sbyte)(a + b);
- 0 to 255 
- -32,768 to 32,767 
- -2,147,483,648 to 2,147,483,647 
- 0 to 4,294,967,295 
Correct answer: 3
-2,147,483,648 to 2,147,483,647
The correct range of int is from -2,147,483,648 to 2,147,483,647
- 0至255 
- -32,768至32,767 
- -2,147,483,648至2,147,483,647 
- 0至4,294,967,295 
 正确答案:3 
 -2,147,483,648至2,147,483,647 
int的正确范围是-2,147,483,648到2,147,483,647
- 0 to 255 
- -32,768 to 32,767 
- -2,147,483,648 to 2,147,483,647 
- 0 to 4,294,967,295 
Correct answer: 4
0 to 4,294,967,295
The correct range of uint is from 0 to 4,294,967,295
- 0至255 
- -32,768至32,767 
- -2,147,483,648至2,147,483,647 
- 0至4,294,967,295 
 正确答案:4 
 0至4,294,967,295 
uint的正确范围是0到4,294,967,295
- -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807 
- 0 to 18,446,744,073,709,551,615 
- -2,147,483,648 to 2,147,483,647 
- 0 to 4,294,967,295 
Correct answer: 1
-9,223,372,036,854,775,808 to 9,223,372,036,854,775,807
The correct range of long is from -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807
- -9,223,372,036,854,775,808至9,223,372,036,854,775,807 
- 0至18,446,744,073,709,551,615 
- -2,147,483,648至2,147,483,647 
- 0至4,294,967,295 
 正确答案:1 
 -9,223,372,036,854,775,808至9,223,372,036,854,775,807 
正确的long范围是-9,223,372,036,854,775,808至9,223,372,036,854,775,807
- -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807 
- 0 to 18,446,744,073,709,551,615 
- -2,147,483,648 to 2,147,483,647 
- 0 to 4,294,967,295 
Correct answer: 2
0 to 18,446,744,073,709,551,615
The correct range of long is from 0 to 18,446,744,073,709,551,615
- -9,223,372,036,854,775,808至9,223,372,036,854,775,807 
- 0至18,446,744,073,709,551,615 
- -2,147,483,648至2,147,483,647 
- 0至4,294,967,295 
 正确答案:2 
 0至18,446,744,073,709,551,615 
正确的long范围是从0到18,446,744,073,709,551,615
- Anders Hejlsberg 
- Dennis richie 
- Ken Thompson 
- Bjarne Stroustrup 
Correct answer: 1
Anders Hejlsberg
C# is developed by Anders Hejlsberg.
- 安德斯·海斯伯格 
- 丹尼斯·里奇 
- 肯·汤普森 
- 比尼亚·斯特鲁斯特鲁普(Bjarne Stroustrup) 
 正确答案:1 
 安德斯·海斯伯格 
C#由Anders Hejlsberg开发。
- 1 byte 
- 2 bytes 
- 4 bytes 
- 8 bytes 
Correct answer: 2
2 bytes
If we declare a variable of char type, it occupies 2 bytes space in memory.
- 1个字节 
- 2字节 
- 4字节 
- 8字节 
 正确答案:2 
 2字节 
如果我们声明一个char类型的变量,则它将在内存中占用2个字节的空间。
- System.Single 
- System.Double 
- System.Decimal 
- System.float 
Correct answer: 1
System.Single
In C#.NET System.Single is the equivalent .NET type of float type.
- 单系统 
- 系统双 
- 系统十进制 
- 系统浮动 
 正确答案:1 
 单系统 
在C#.NET中,Single是等效的.NET类型的float类型。
- System.Single 
- System.Double 
- System.Decimal 
- System.float 
Correct answer: 4
System.float
System.float is not available of .NET framework.
- 单系统 
- 系统双 
- 系统十进制 
- 系统浮动 
 正确答案:4 
 系统浮动 
.NET框架不提供System.float。
- System.Single 
- System.Double 
- System.Decimal 
- System.float 
Correct answer: 2
System.Double
In C#.NET System.Double is the equivalent .NET type of double type.
- 单系统 
- 系统双 
- 系统十进制 
- 系统浮动 
 正确答案:2 
 系统双 
在C#.NET中,System.Double是double类型的等效.NET类型。
- System.Single 
- System.Double 
- System.Decimal 
- System.float 
Correct answer: 3
System.Decimal
In C#.NET System.Decimal is the equivalent .NET type of decimal type.
- 单系统 
- 系统双 
- 系统十进制 
- 系统浮动 
 正确答案:3 
 系统十进制 
在C#.NET中,System.Decimal是等效的十进制类型的.NET类型。
- 32 bytes 
- 16 bytes 
- 4 bytes 
- 8 bytes 
Correct answer: 3
4 bytes
In C# the size of a float variable is 4 bytes.
- 32字节 
- 16字节 
- 4字节 
- 8字节 
 正确答案:3 
 4字节 
在C#中,浮点变量的大小为4个字节。
- 32 bytes 
- 16 bytes 
- 4 bytes 
- 8 bytes 
Correct answer: 4
8 bytes
In C# the size of a double variable is 8 bytes.
- 32字节 
- 16字节 
- 4字节 
- 8字节 
 正确答案:4 
 8字节 
在C#中,双精度变量的大小为8个字节。
- 32 bytes 
- 16 bytes 
- 4 bytes 
- 8 bytes 
Correct answer: 2
16 bytes
In C# the size of a decimal variable is 16 bytes.
- 32字节 
- 16字节 
- 4字节 
- 8字节 
 正确答案:2 
 16字节 
在C#中,十进制变量的大小为16个字节。
- Float 
- Double 
- Decimal 
- Single 
Correct answer: 2
Double
By default, a real number is Double.
- 浮动 
- 双 
- 小数 
- 单 
 正确答案:2 
 双 
默认情况下,实数为Double。
- 'f' or 'F' 
- 'M' or 'm' 
- 'D' or 'd' 
- 'K' or 'k' 
Correct answer: 1
'f' or 'F'
By default, a real number is Double. To use real number for float type, we need to use 'F'/'f' in suffix of real number.
- 'f'或'F' 
- 'M'或'm' 
- 'D'或'd' 
- 'K'或'k' 
 正确答案:1 
 'f'或'F' 
默认情况下,实数为Double。 要对浮点类型使用实数,我们需要在实数后缀中使用'F'/'f'。
- 'f' or 'F' 
- 'M' or 'm' 
- 'D' or 'd' 
- 'K' or 'k' 
Correct answer: 2
'M' or 'm'
By default, a real number is Double. To use real number for decimal type, we need to use 'M'/'m' in suffix of real number.
- 'f'或'F' 
- 'M'或'm' 
- 'D'或'd' 
- 'K'或'k' 
 正确答案:2 
 'M'或'm' 
默认情况下,实数为Double。 要将实数用于十进制类型,我们需要在实数后缀中使用'M'/'m'。
- Up to 15 digits 
- Up to 7 digits 
- Up to 28 digits 
- Up to 20 digits 
Correct answer: 2
Up to 7 digits
The precision of float numbers in C# is up to 7 digits.
- 最多15位数字 
- 最多7位数字 
- 最多28位 
- 最多20位 
 正确答案:2 
 最多7位数字 
C#中浮点数的精度最高为7位数字。
- Up to 15 digits 
- Up to 7 digits 
- Up to 28 digits 
- Up to 20 digits 
Correct answer: 1
Up to 15 digits
The precision of double numbers in C# is up to 15 digits.
- 最多15位数字 
- 最多7位数字 
- 最多28位 
- 最多20位 
 正确答案:1 
 最多15位数字 
C#中双精度数字的精度最高为15位。
- Up to 15 digits 
- Up to 7 digits 
- Up to 28 digits 
- Up to 20 digits 
Correct answer: 3
Up to 28 digits
The precision of decimal numbers in C# is up to 28 digits.
- 最多15位数字 
- 最多7位数字 
- 最多28位 
- 最多20位 
 正确答案:3 
 最多28位 
C#中十进制数字的精度最高为28位。
翻译自: https://www.includehelp.com/dot-net/c-sharp-data-types-aptitude-questions-and-answers.aspx
c# 插入树形数据#