博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
c# 插入树形数据#_C#数据类型能力问题 套装1
阅读量:2530 次
发布时间:2019-05-11

本文共 7179 字,大约阅读时间需要 23 分钟。

c# 插入树形数据#

This section contains aptitude questions and answers on C# data types (set 1).

本节包含有关C#数据类型(集合1)的能力问题和答案。

1) "int" is an alias of _________.
Answer & Explanation

Correct answer: 2

System.Int32

int is an alias of System.Int32 type, it takes 32 bits in the memory.

1)
“ int”是_________的别名。
答案与解释

正确答案:2

System.Int32

int是System.Int32类型的别名,它在内存中占用32位。

2) "char" is an alias of _________.
Answer & Explanation

Correct answer: 1

System.Char

char is an alias of System.Char type, it takes 2 bytes space in the memory. Read more: .

2)
“ char”是_________的别名。
答案与解释

正确答案:1

系统字符

char是System.Char类型的别名,它在内存中占用2个字节的空间。 阅读更多: 。

3) A "byte" type variable stores the value between the range of ________.
Answer & Explanation

Correct answer: 3

0 to 255

byte is an alias of System.Byte type, it takes 1 byte space in the memory. Read more: .

3)
“字节”类型变量存储________范围之间的值。
答案与解释

正确答案:3

0至255

byte是System.Byte类型的别名,它在内存中占用1个字节的空间。 阅读更多: 。

4) A "sbyte" type variable stores the value between the range of ________.
Answer & Explanation

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: .

4)
“ sbyte”类型变量存储________范围之间的值。
答案与解释

正确答案:1

-128至+127

sbyte代表有符号字节,它是System.SByte的别名,它在内存中占用1个字节的空间。 阅读更多: 。

5) What will be the output of the following program?
static void Main(string[] args){
byte a = 10; byte b = 20; byte sum = a + b; Console.WriteLine(sum);}
Answer & Explanation

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);

5)以下程序的输出是什么?
答案与解释

正确答案:2

编译错误:无法将类型'int'隐式转换为'byte'

默认情况下,算术运算的结果为'int'。

要解决此问题,请将表达式强制转换为byte sum =(byte)(a + b);

6) What will be the output of the following program?
static void Main(string[] args){
sbyte a = -10; sbyte b = 20; sbyte sum = a + b; Console.WriteLine(sum);}
Answer & Explanation

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);

6)以下程序的输出是什么?
答案与解释

正确答案:2

编译错误:无法将类型'int'隐式转换为'sbyte'

默认情况下,算术运算的结果为'int'。

要解决此问题,请将表达式强制转换为sbyte sum =(sbyte)(a + b);

7) Which is the correct range int in C#?
Answer & Explanation

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

7)C#中正确的范围int是什么?
答案与解释

正确答案:3

-2,147,483,648至2,147,483,647

int的正确范围是-2,147,483,648到2,147,483,647

8) Which is the correct range uint in C#?
Answer & Explanation

Correct answer: 4

0 to 4,294,967,295

The correct range of uint is from 0 to 4,294,967,295

8)C#中正确的范围uint是什么?
答案与解释

正确答案:4

0至4,294,967,295

uint的正确范围是0到4,294,967,295

9) Which is the correct range long in C#?
Answer & Explanation

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)C#中正确的范围是多少?
答案与解释

正确答案: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

10) Which is the correct range ulong in C#?
Answer & Explanation

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

10)在C#中,哪个是正确的范围?
答案与解释

正确答案:2

0至18,446,744,073,709,551,615

正确的long范围是从0到18,446,744,073,709,551,615

11) C# is developed by?
Answer & Explanation

Correct answer: 1

Anders Hejlsberg

C# is developed by Anders Hejlsberg.

11)C#是由谁开发的?
答案与解释

正确答案:1

安德斯·海斯伯格

C#由Anders Hejlsberg开发。

12) How many bytes of data can be store in a char variable?
Answer & Explanation

Correct answer: 2

2 bytes

If we declare a variable of char type, it occupies 2 bytes space in memory.

12)char变量中可以存储多少字节的数据?
答案与解释

正确答案:2

2字节

如果我们声明一个char类型的变量,则它将在内存中占用2个字节的空间。

13) What is the equivalent .NET type of float type in C#?
Answer & Explanation

Correct answer: 1

System.Single

In C#.NET System.Single is the equivalent .NET type of float type.

13)C#中浮点类型的等效.NET类型是什么?
答案与解释

正确答案:1

单系统

在C#.NET中,Single是等效的.NET类型的float类型。

14) There are following options are given below, which of them is not a valid .NET Type?
Answer & Explanation

Correct answer: 4

System.float

System.float is not available of .NET framework.

14)下面给出了以下选项,其中哪个不是有效的.NET类型?
答案与解释

正确答案:4

系统浮动

.NET框架不提供System.float。

15) What is the equivalent .NET type of double type in C#?
Answer & Explanation

Correct answer: 2

System.Double

In C#.NET System.Double is the equivalent .NET type of double type.

15)C#中double类型的等效.NET类型是什么?
答案与解释

正确答案:2

系统双

在C#.NET中,System.Double是double类型的等效.NET类型。

16) What is the equivalent .NET type of decimal type in C#?
Answer & Explanation

Correct answer: 3

System.Decimal

In C#.NET System.Decimal is the equivalent .NET type of decimal type.

16)什么是C#中十进制类型的等效.NET类型?
答案与解释

正确答案:3

系统十进制

在C#.NET中,System.Decimal是等效的十进制类型的.NET类型。

17) What is the correct size of float type variable in C#?
Answer & Explanation

Correct answer: 3

4 bytes

In C# the size of a float variable is 4 bytes.

17)C#中的float类型变量的正确大小是多少?
答案与解释

正确答案:3

4字节

在C#中,浮点变量的大小为4个字节。

18) What is the correct size of double type variable in C#?
Answer & Explanation

Correct answer: 4

8 bytes

In C# the size of a double variable is 8 bytes.

18)C#中double类型变量的正确大小是多少?
答案与解释

正确答案:4

8字节

在C#中,双精度变量的大小为8个字节。

19) What is the correct size of decimal type variable in C#?
Answer & Explanation

Correct answer: 2

16 bytes

In C# the size of a decimal variable is 16 bytes.

19)C#中十进制类型变量的正确大小是多少?
答案与解释

正确答案:2

16字节

在C#中,十进制变量的大小为16个字节。

20) By default a real number is?
Answer & Explanation

Correct answer: 2

Double

By default, a real number is Double.

20)默认情况下,实数是?
答案与解释

正确答案:2

默认情况下,实数为Double。

21) To use real number for float type, what character we need to use as a suffix in C#?
Answer & Explanation

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.

21)要将实数用于浮点型,我们需要在C#中使用哪个字符作为后缀?
答案与解释

正确答案:1

'f'或'F'

默认情况下,实数为Double。 要对浮点类型使用实数,我们需要在实数后缀中使用'F'/'f'。

22) To use real number for decimal type, what character we need to use as a suffix in C#?
Answer & Explanation

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.

22)要将实数用于十进制类型,我们需要在C#中使用哪个字符作为后缀?
答案与解释

正确答案:2

'M'或'm'

默认情况下,实数为Double。 要将实数用于十进制类型,我们需要在实数后缀中使用'M'/'m'。

23) What is the precision of a float type number in C#?
Answer & Explanation

Correct answer: 2

Up to 7 digits

The precision of float numbers in C# is up to 7 digits.

23)C#中浮点类型数字的精度是多少?
答案与解释

正确答案:2

最多7位数字

C#中浮点数的精度最高为7位数字。

24) What is the precision of a double type number in C#?
Answer & Explanation

Correct answer: 1

Up to 15 digits

The precision of double numbers in C# is up to 15 digits.

24)C#中双精度数字的精度是多少?
答案与解释

正确答案:1

最多15位数字

C#中双精度数字的精度最高为15位。

25) What is the precision of a decimal type number in C#?
Answer & Explanation

Correct answer: 3

Up to 28 digits

The precision of decimal numbers in C# is up to 28 digits.

25)C#中十进制类型数字的精度是多少?
答案与解释

正确答案:3

最多28位

C#中十进制数字的精度最高为28位。

翻译自:

c# 插入树形数据#

转载地址:http://vdtzd.baihongyu.com/

你可能感兴趣的文章
mysql 命令之工作小结
查看>>
linux 系统下 tar 的压缩与解压缩命令
查看>>
阿里负载均衡,配置中间证书问题(在starcom申请免费DV ssl)
查看>>
转:How to force a wordbreaker to be used in Sharepoint Search
查看>>
MySQL存储过程定时任务
查看>>
UVa 1658,Admiral (拆点+限制最小费用流)
查看>>
Python中and(逻辑与)计算法则
查看>>
POJ 3267 The Cow Lexicon(动态规划)
查看>>
设计原理+设计模式
查看>>
音视频处理
查看>>
Careercup - Facebook面试题 - 5890898499993600
查看>>
浮点数在内存中的存储方式
查看>>
tomcat 7服务器跨域问题解决
查看>>
前台实现ajax 需注意的地方
查看>>
Jenkins安装配置
查看>>
个人工作总结05(第二阶段)
查看>>
Java clone() 浅拷贝 深拷贝
查看>>
深入理解Java虚拟机&运行时数据区
查看>>
STUCTS LABLE ‘S BENEFIT
查看>>
Vue 计算属性
查看>>