本文共 7179 字,大约阅读时间需要 23 分钟。
c# 插入树形数据#
This section contains aptitude questions and answers on C# data types (set 1).
本节包含有关C#数据类型(集合1)的能力问题和答案。
Correct answer: 2System.Int32
int is an alias of System.Int32 type, it takes 32 bits in the memory.
正确答案:2 System.Int32
int是System.Int32类型的别名,它在内存中占用32位。
Correct answer: 1System.Char
char is an alias of System.Char type, it takes 2 bytes space in the memory. Read more: .
正确答案:1 系统字符
char是System.Char类型的别名,它在内存中占用2个字节的空间。 阅读更多: 。
Correct answer: 30 to 255
byte is an alias of System.Byte type, it takes 1 byte space in the memory. Read more: .
正确答案:3 0至255
byte是System.Byte类型的别名,它在内存中占用1个字节的空间。 阅读更多: 。
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: .
正确答案:1 -128至+127
sbyte代表有符号字节,它是System.SByte的别名,它在内存中占用1个字节的空间。 阅读更多: 。
static void Main(string[] args){ byte a = 10; byte b = 20; byte sum = a + b; Console.WriteLine(sum);}
Correct answer: 2Compilation 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);
正确答案: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);}
Correct answer: 2Compilation 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);
正确答案:2 编译错误:无法将类型'int'隐式转换为'sbyte'
默认情况下,算术运算的结果为'int'。
要解决此问题,请将表达式强制转换为sbyte sum =(sbyte)(a + b);
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
正确答案:3 -2,147,483,648至2,147,483,647
int的正确范围是-2,147,483,648到2,147,483,647
Correct answer: 40 to 4,294,967,295
The correct range of uint is from 0 to 4,294,967,295
正确答案:4 0至4,294,967,295
uint的正确范围是0到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
正确答案: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
Correct answer: 20 to 18,446,744,073,709,551,615
The correct range of long is from 0 to 18,446,744,073,709,551,615
正确答案:2 0至18,446,744,073,709,551,615
正确的long范围是从0到18,446,744,073,709,551,615
Correct answer: 1Anders Hejlsberg
C# is developed by Anders Hejlsberg.
正确答案:1 安德斯·海斯伯格
C#由Anders Hejlsberg开发。
Correct answer: 22 bytes
If we declare a variable of char type, it occupies 2 bytes space in memory.
正确答案:2 2字节
如果我们声明一个char类型的变量,则它将在内存中占用2个字节的空间。
Correct answer: 1System.Single
In C#.NET System.Single is the equivalent .NET type of float type.
正确答案:1 单系统
在C#.NET中,Single是等效的.NET类型的float类型。
Correct answer: 4System.float
System.float is not available of .NET framework.
正确答案:4 系统浮动
.NET框架不提供System.float。
Correct answer: 2System.Double
In C#.NET System.Double is the equivalent .NET type of double type.
正确答案:2 系统双
在C#.NET中,System.Double是double类型的等效.NET类型。
Correct answer: 3System.Decimal
In C#.NET System.Decimal is the equivalent .NET type of decimal type.
正确答案:3 系统十进制
在C#.NET中,System.Decimal是等效的十进制类型的.NET类型。
Correct answer: 34 bytes
In C# the size of a float variable is 4 bytes.
正确答案:3 4字节
在C#中,浮点变量的大小为4个字节。
Correct answer: 48 bytes
In C# the size of a double variable is 8 bytes.
正确答案:4 8字节
在C#中,双精度变量的大小为8个字节。
Correct answer: 216 bytes
In C# the size of a decimal variable is 16 bytes.
正确答案:2 16字节
在C#中,十进制变量的大小为16个字节。
Correct answer: 2Double
By default, a real number is Double.
正确答案:2 双
默认情况下,实数为Double。
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.
正确答案:1 'f'或'F'
默认情况下,实数为Double。 要对浮点类型使用实数,我们需要在实数后缀中使用'F'/'f'。
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.
正确答案:2 'M'或'm'
默认情况下,实数为Double。 要将实数用于十进制类型,我们需要在实数后缀中使用'M'/'m'。
Correct answer: 2Up to 7 digits
The precision of float numbers in C# is up to 7 digits.
正确答案:2 最多7位数字
C#中浮点数的精度最高为7位数字。
Correct answer: 1Up to 15 digits
The precision of double numbers in C# is up to 15 digits.
正确答案:1 最多15位数字
C#中双精度数字的精度最高为15位。
Correct answer: 3Up to 28 digits
The precision of decimal numbers in C# is up to 28 digits.
正确答案:3 最多28位
C#中十进制数字的精度最高为28位。
翻译自:
c# 插入树形数据#
转载地址:http://vdtzd.baihongyu.com/