c# 插入树形数据#

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

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

1) "int" is an alias of _________.

  1. System.Int16

  2. System.Int32

  3. System.Int64

  4. System.Byte

Answer & Explanation

Correct answer: 2
System.Int32

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

1) “ int”是_________的别名。

  1. System.Int16

  2. System.Int32

  3. System.Int64

  4. 系统字节

答案与解释

正确答案:2
System.Int32

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

2) "char" is an alias of _________.

  1. System.Char

  2. System.String

  3. System.Text

  4. Character

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: char keyword in C#.

2) “ char”是_________的别名。

  1. 系统字符

  2. System.String

  3. 系统文字

  4. 字符

答案与解释

正确答案:1
系统字符

char是System.Char类型的别名,它在内存中占用2个字节的空间。 : C#中的char关键字 。

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

  1. -128 to +127

  2. 0 to 127

  3. 0 to 255

  4. 0 to 256

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: byte keyword in C#.

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

  1. -128至+127

  2. 0至127

  3. 0至255

  4. 0至256

答案与解释

正确答案:3
0至255

byte是System.Byte类型的别名,它在内存中占用1个字节的空间。 : C#中的byte关键字 。

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

  1. -128 to +127

  2. 0 to 127

  3. 0 to 255

  4. 0 to 256

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: sbyte keyword in C#.

4) “ sbyte”类型变量存储________范围之间的值。

  1. -128至+127

  2. 0至127

  3. 0至255

  4. 0至256

答案与解释

正确答案:1
-128至+127

sbyte代表有符号字节,它是System.SByte的别名,它在内存中占用1个字节的空间。 : C#中的sbyte关键字 。

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

  1. 30

  2. Compilation error

  3. Run time error

  4. None

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)以下程序的输出是什么?

  1. 30

  2. 编译错误

  3. 运行时错误

  4. 没有

答案与解释

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

  1. 10

  2. Compilation error

  3. Run time error

  4. None

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)以下程序的输出是什么?

  1. 10

  2. 编译错误

  3. 运行时错误

  4. 没有

答案与解释

正确答案:2
编译错误:无法将类型'int'隐式转换为'sbyte'

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

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

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

  1. 0 to 255

  2. -32,768 to 32,767

  3. -2,147,483,648 to 2,147,483,647

  4. 0 to 4,294,967,295

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是什么?

  1. 0至255

  2. -32,768至32,767

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

  4. 0至4,294,967,295

答案与解释

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

  1. 0 to 255

  2. -32,768 to 32,767

  3. -2,147,483,648 to 2,147,483,647

  4. 0 to 4,294,967,295

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是什么?

  1. 0至255

  2. -32,768至32,767

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

  4. 0至4,294,967,295

答案与解释

正确答案:4
0至4,294,967,295

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

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

  1. -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807

  2. 0 to 18,446,744,073,709,551,615

  3. -2,147,483,648 to 2,147,483,647

  4. 0 to 4,294,967,295

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

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

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

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

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

  1. -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807

  2. 0 to 18,446,744,073,709,551,615

  3. -2,147,483,648 to 2,147,483,647

  4. 0 to 4,294,967,295

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#中,哪个是正确的范围?

  1. -9,223,372,036,854,775,808至9,223,372,036,854,775,807

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

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

  4. 0至4,294,967,295

答案与解释

正确答案:2
0至18,446,744,073,709,551,615

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

11) C# is developed by?

  1. Anders Hejlsberg

  2. Dennis richie

  3. Ken Thompson

  4. Bjarne Stroustrup

Answer & Explanation

Correct answer: 1
Anders Hejlsberg

C# is developed by Anders Hejlsberg.

11)C#是由谁开发的?

  1. 安德斯·海斯伯格

  2. 丹尼斯·里奇

  3. 肯·汤普森

  4. 比尼亚·斯特鲁斯特鲁普(Bjarne Stroustrup)

答案与解释

正确答案:1
安德斯·海斯伯格

C#由Anders Hejlsberg开发。

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

  1. 1 byte

  2. 2 bytes

  3. 4 bytes

  4. 8 bytes

Answer & Explanation

Correct answer: 2
2 bytes

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

12)char变量中可以存储多少字节的数据?

  1. 1个字节

  2. 2字节

  3. 4字节

  4. 8字节

答案与解释

正确答案:2
2字节

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

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

  1. System.Single

  2. System.Double

  3. System.Decimal

  4. System.float

Answer & Explanation

Correct answer: 1
System.Single

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

13)C#中浮点类型的等效.NET类型是什么?

  1. 单系统

  2. 系统双

  3. 系统十进制

  4. 系统浮动

答案与解释

正确答案:1
单系统

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

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

  1. System.Single

  2. System.Double

  3. System.Decimal

  4. System.float

Answer & Explanation

Correct answer: 4
System.float

System.float is not available of .NET framework.

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

  1. 单系统

  2. 系统双

  3. 系统十进制

  4. 系统浮动

答案与解释

正确答案:4
系统浮动

.NET框架不提供System.float。

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

  1. System.Single

  2. System.Double

  3. System.Decimal

  4. System.float

Answer & Explanation

Correct answer: 2
System.Double

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

15)C#中double类型的等效.NET类型是什么?

  1. 单系统

  2. 系统双

  3. 系统十进制

  4. 系统浮动

答案与解释

正确答案:2
系统双

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

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

  1. System.Single

  2. System.Double

  3. System.Decimal

  4. System.float

Answer & Explanation

Correct answer: 3
System.Decimal

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

16)什么是C#中十进制类型的等效.NET类型?

  1. 单系统

  2. 系统双

  3. 系统十进制

  4. 系统浮动

答案与解释

正确答案:3
系统十进制

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

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

  1. 32 bytes

  2. 16 bytes

  3. 4 bytes

  4. 8 bytes

Answer & Explanation

Correct answer: 3
4 bytes

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

17)C#中的float类型变量的正确大小是多少?

  1. 32字节

  2. 16字节

  3. 4字节

  4. 8字节

答案与解释

正确答案:3
4字节

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

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

  1. 32 bytes

  2. 16 bytes

  3. 4 bytes

  4. 8 bytes

Answer & Explanation

Correct answer: 4
8 bytes

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

18)C#中double类型变量的正确大小是多少?

  1. 32字节

  2. 16字节

  3. 4字节

  4. 8字节

答案与解释

正确答案:4
8字节

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

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

  1. 32 bytes

  2. 16 bytes

  3. 4 bytes

  4. 8 bytes

Answer & Explanation

Correct answer: 2
16 bytes

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

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

  1. 32字节

  2. 16字节

  3. 4字节

  4. 8字节

答案与解释

正确答案:2
16字节

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

20) By default a real number is?

  1. Float

  2. Double

  3. Decimal

  4. Single

Answer & Explanation

Correct answer: 2
Double

By default, a real number is Double.

20)默认情况下,实数是?

  1. 浮动

  2. 小数

答案与解释

正确答案:2

默认情况下,实数为Double。

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

  1. 'f' or 'F'

  2. 'M' or 'm'

  3. 'D' or 'd'

  4. 'K' or 'k'

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'

  2. 'M'或'm'

  3. 'D'或'd'

  4. 'K'或'k'

答案与解释

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

  1. 'f' or 'F'

  2. 'M' or 'm'

  3. 'D' or 'd'

  4. 'K' or 'k'

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#中使用哪个字符作为后缀?

  1. 'f'或'F'

  2. 'M'或'm'

  3. 'D'或'd'

  4. 'K'或'k'

答案与解释

正确答案:2
'M'或'm'

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

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

  1. Up to 15 digits

  2. Up to 7 digits

  3. Up to 28 digits

  4. Up to 20 digits

Answer & Explanation

Correct answer: 2
Up to 7 digits

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

23)C#中浮点类型数字的精度是多少?

  1. 最多15位数字

  2. 最多7位数字

  3. 最多28位

  4. 最多20位

答案与解释

正确答案:2
最多7位数字

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

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

  1. Up to 15 digits

  2. Up to 7 digits

  3. Up to 28 digits

  4. Up to 20 digits

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位数字

  2. 最多7位数字

  3. 最多28位

  4. 最多20位

答案与解释

正确答案:1
最多15位数字

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

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

  1. Up to 15 digits

  2. Up to 7 digits

  3. Up to 28 digits

  4. Up to 20 digits

Answer & Explanation

Correct answer: 3
Up to 28 digits

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

25)C#中十进制类型数字的精度是多少?

  1. 最多15位数字

  2. 最多7位数字

  3. 最多28位

  4. 最多20位

答案与解释

正确答案:3
最多28位

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

翻译自: https://www.includehelp.com/dot-net/c-sharp-data-types-aptitude-questions-and-answers.aspx

c# 插入树形数据#

c# 插入树形数据#_C#数据类型能力问题 套装1相关推荐

  1. c mysql 插入大量数据_C++操作MySQL大量数据插入效率低下的解决方法

    通常来说C++操作MySQL的时候,往Mysql中插入10000条简单数据,速度非常缓慢,居然要5分钟左右, 而打开事务的话,一秒不到就搞定了! 具体实现代码如下: #include #include ...

  2. c 批量导入mysql数据库_C#.NET中如何批量插入大量数据到数据库中

    在WEB项目开发过程中有时会碰到批量插入数据到数或者是将EXCEL文件据入到数据库中.为了方便实现可以先将EXCEL导入到GRIDVIEW中然后一次批量插入.实现代码如下: 前台代码 后台代码: // ...

  3. SQL Server插入中文数据后出现乱码

    原文:SQL Server插入中文数据后出现乱码 今天在做项目的过程中遇到如标题的问题,情况如下图: 数据库使用的是SQL Server2012版本,创建表的脚本如下: CREATE TABLE [d ...

  4. idea中连接mysql插入成功数据 在navicat中刷新表格没有数据_第九篇 数据分析的进阶学习-SQL入门...

    1.SQL的学习阶段 1.1 背景 随着互联网的不断发展,数据的不断累积,现在单单使用Excel已经不能满足数据分析的需求了,因此作为一个数据分析工作者,掌握Excel是基础,而SQL作为主流数据库查 ...

  5. Web中树形数据(层级关系数据)的实现—以行政区树为例

    在Web开发中常常遇到树形数据的操作,如菜单.组织机构.行政区(省.市.县)等具有层级关系的数据. 以下以行政区为例说明树形数据(层级关系数据)的存储以及实现,效果如图所看到的. 1 数据库表结构设计 ...

  6. 存储树形数据_数据结构篇之顺序表的创建以及实现

    大家知道,数据结构主要研究的是数据的逻辑结构和存储结构及其操作,逻辑结构分为线性结构.树形结构以及图形结构,存储结构分为顺序存储以及链式存储,今天主要带领大家认识和实现数据间的线性结构----顺序表. ...

  7. MySQL插入表格数据的时候出现1265错误

    今天在使用MySQL写数据库表格的时候,出现崩溃.跟踪调试发现是写入失败,返回值1265: 然后我单独打开数据库.通过SQL语句直接写入数据库,返现也是返回同样的错误. #define WARN_DA ...

  8. 基于大数据的消费者能力的数据可视化平台设计与实现

    摘 要 大数据时代的来临,为了提高企业核心竞争力,首先需要解决电子商务大数据领域中,本设计主要为解决商家无法找到精准客户的问题,通过科学的方式对目标市场中形态各异的消费者进行精细的划分,根据每个用户不 ...

  9. Oracle插入大量数据

    原 Oracle 插入大量数据https://blog.csdn.net/tianlesoftware/article/details/4745144版权声明: https://blog.csdn.n ...

最新文章

  1. java beetl 视频_08.Beetl自定义方法以及直接访问java类方法---《Beetl视频课程》
  2. 融资2.1亿商汤领投,他要用VR+AR解决无人驾驶的路测难题
  3. php入门时间,php入门教程(二十一) php日期与时间函数
  4. Mybatis-plus多表关联查询,多表分页查询
  5. [改善Java代码]让工具类不可实例化
  6. 源码 移植_FreeModbus移植总结
  7. java学习(59):static修饰内部类
  8. 论坛用的两个函数:积分计算排名和楼层函数
  9. javaWeb -- 虚拟主机以及虚拟目录映射的配置
  10. mybatis事物如何避免脏读_新手指南:如何从java电商小白到秒杀大咖
  11. NoteBurner Spotify Music Converter mac - 音乐转换器
  12. python实现随机产生数据矩阵,将txt文件写入Excel中以及转置后写入Excel中
  13. javaweb JAVA JSP智能社区管理系统JSP小区物业管理系统物JSP小区管理系统源码 JSP物业社区管理系统
  14. office和flash计算机课程,Powerpoint和Flash制作教学课件技巧
  15. 各种手段终于将土豆视频url请求找到了
  16. 7-20 打印九九口诀表(C语言版)
  17. 17暑期ACM俱乐部个人训练赛第1场 (石油oj) 7.24号
  18. 我们进入微服务世界的旅程-以及我们从中学到的东西。
  19. 每日一句—英语长难句
  20. 全国计算机奥林匹克竞赛试题及答案,奥林匹克物理竞赛试题及答案

热门文章

  1. 在linux关闭的命令,关于关闭Linux计算机的命令操作
  2. java web使用jquery,JAVA_Web_JQuery
  3. nikita popov php,PHP中对performance的考虑点
  4. Python二级笔记(9)
  5. php 做更新进度条,PHP exec()后更新Bootstrap进度条
  6. signature=4d4ce610ff2d4a5f2093452c24b70492,Reading Chromatin Signatures
  7. oracle 中DATETIME与TIMESTAMP区别
  8. 彻底卸载oracle
  9. mip-link 组件功能升级说明
  10. 问题 I: 连通块计数