模拟题4

模拟题4:

https://ks.wjx.top/jq/40079859.aspx

选择题(针对下列题目,选择符合题目要求的答案。针对每一道题目,全选对,则该题得分;所选答案错误或漏选,则该题不得分。每题2分。)

[if !supportLists]1. [endif]在C#中,下列关于for语句的说法,正确的是(     )。

A. for语句的循环条件不能缺少

B. for(;;)是无限循环

C. for循环无法嵌套

D. for语句是跳转语句

[if !supportLists]2. [endif]在HTML页面标记中,用于定义一行的标签是(     )。

A. <td>...</td>

B. <tr>...</tr>

C. <table>...</table>

D. <caption>...</caption>

[if !supportLists]3. [endif]在HTML网页中,下列(     )是在新窗口中打开网页。

A. _self          B. _blank       C. _top            D. _parent

[if !supportLists]4. [endif]要在SQL Server中创建一个员工信息表,其中,员工的薪水、医疗保险和养老保险分别采用三个字段存储,但是该公司规定:任何一个员工,其医疗保险和养老保险两项之和不能大于薪水的1/3,这一项规定可以采用(     )来实现。

[if !supportLists]A. [endif]主键约束   B. 外键约束

C. 检查约束  D. 默认约束

[if !supportLists]5. [endif]在WinForm窗体应用程序中,如果要改变窗体的标题,则需修改的窗体属性是(     )。

A. Text    B. Name   C. Title    D. Index

[if !supportLists]6. [endif]关于C#程序的书写,下列说法不正确的是(     )。

A. 区分大小写

B. 一行可以写多条语句

C. 一条语句可写成多行

D. 一个类中只能有一个Main()方法,因此多个类中可以有多个Main()方法

[if !supportLists]7. [endif]无序列表的HTML代码是(     )。

A. <li><ul>...</li>

B. <ul><li>...</ul>

C. <ol><li>...</ol>

D. <li><ol>...</li>

[if !supportLists]8. [endif]一个电视经销商在表TVType中维护其库存的电视机(TVs)的详细信息。下列SQL Server语句中,能显示价格最昂贵的三种电视机信息的是(     )。

A. SELECT TOP 3 cDescription  from TVType ORDER BY iPrice asc

B. SELECT TOP 3 cDescription  from TVType ORDER BY iPrice desc

C. SELECT cDescription from TVType where max(iPrice) > 3

D. SELECT cDescription, max(iPrice) from TVType ORDER BY iPrice

[if !supportLists]9. [endif]下列哪些不是SQL Server数据库存储数据使用的操作系统文件?(     )【选两项】

A. 主数据文件 B. 可执行文件

C. 日志文件 D. 脚本文件

[if !supportLists]10. [endif]下列SQL语句中,(     )能正确修改“李平”的存款为“5000”,“住址”为“上海”。

A. update userinfo set money=5000,set address='上海' where username='李平'

B. update userinfo set money=5000,set address='上海' having username='李平'

C. update userinfo set money=5000,address='上海' where username='李平'

D. update userinfo set money=5000,address='上海' having username='李平'

[if !supportLists]11. [endif]在某张表中,某员工的业绩输入出错。下列SQL Server语句中,能够更正该员工的业绩的是(     )。

A. 使用INSERT语句

B. 使用SELECT语句

C. 使用UPDATE语句删除该业绩再重新输入

D. 使用UPDATE语句更正业绩

[if !supportLists]12. [endif]某公司保存了其员工的医疗信息,一旦出现紧急情况,公司需要立即得到一份员工医疗信息表,其中包括他们的年龄和血型等信息。在SQL Server中,如果运行SQL语句:SELECT 姓名, 血型 FROM MedicalDetails WHERE iAge between 18 and 40,则其返回的结果是(     )。

A. 显示年龄在大于18小于40岁之间的员工的姓名和血型

B. 显示年龄在18及以上至40及以下的员工的姓名和血型

C. 显示年龄在17以上或41以下的员工的姓名和血型

D. 显示年龄非小于39或非大于19的员工的姓名和血型

[if !supportLists]13. [endif]在SQL Server中,命令Delete  Employee执行后(     )。

A. Employee表中的记录都没被删除

B. Employee表中的所有记录都被删除

C. Employee表中的部分记录被删除

D. 不确定

[if !supportLists]14. [endif]在SQL Server中,如果对没有外键约束的表Employee执行delete from Employee命令,则产生的结果是(     )。

A. Employee表中的记录均未被删除

B. Employee表中的所有记录均被删除

C. Employee表中的部分记录被删除

D. 不确定

[if !supportLists]15. [endif]在C#程序中,下述程序的运行结果是(     )。

 public class Increment{

           public static void main(String args[]){

int c;

c = 2;  

Console.WriteLine(c);

Console.WriteLine (c++);

Console.WriteLine (c);

}

}  

A. 2 2 2           B. 2 3 3           C. 2 2 3             D. 3 4 4

[if !supportLists]16. [endif]在HTML中,font标签的size属性的最大取值可以是(     )。

A. 5 B. 6 C. 7 D. 8

[if !supportLists]17. [endif]在C#,"456"属于(     )类型的数据。 

A. Int          B. String     C. Integer     D. Number

[if !supportLists]18. [endif]在WinForm窗体应用程序中,加载窗体时触发的事件是(     )。 

A. Click        B. Load   

C. GotFoucs      D. DoubleClick

[if !supportLists]19. [endif]在HTML页面标记中,用于设置文本框显示宽度的属性是(     )。

A. size     B. maxLength     C. value    D. length

[if !supportLists]20. [endif]在C#语言中, C#语言的关键字有(     )。【选两项】

A. public     B. camel     C. using     D. Employ

[if !supportLists]21. [endif]在C#语言中,定义一个10行20列的二维整型数组,则下列语句正确的是(     )。 

A. int[]arr = new int[10,20]

B. int[]arr = int new[10,20]

C. int[,]arr = new int[10,20]

D. int[,]arr = new int[20;10]

[if !supportLists]22. [endif]在Visual Studio Windows窗口中,在()窗口中可以设置窗体的名称和标题。

A. 解决方案资源管理器     

B. 类视图     

C. 资源视图     

D. 属性

[if !supportLists]23. [endif]在C#中,每个int类型的变量占用(     )个字节的内存。

A. 1              B. 2            C. 4             D. 8

[if !supportLists]24. [endif]在HTML中,为图片标记指定图片文件的路径,要使用(     )属性。

A. src B. border C. alt D. vspace

[if !supportLists]25. [endif]ADO.NET使用(     )命名空间的类访问SQL Server数据库中的数据。

A. System.Data.OleDb

B. System.Data.SqlClient

C. System.Xml.Serialization

D. System.IO

[if !supportLists]26. [endif]有如下C#程序:

using system;

class Example1

{

public static void Main(string[] args)

{

          int x=1,a=0,b=0;

          switch(x)

         {

              case 0:b++;break;

              case 1:a++;break;

              case 2:a++;b++;sbreak;

}

Console.Writeline(〞a={0},b={1}〞,a,b);

}

}

其输出结果是()。

A. a=2,b=1       B. a=1,b=1         

C. a=1,b=0       D. a=2,b=2

[if !supportLists]27. [endif] 以下C# 程序输出 a 的值为 ( )

int a = 12;

do {

a++;

}while(false);

Console.WriteLine (a);

A. 12           B. 13            C. 14            D. 11

[if !supportLists]28. [endif] 以下C# 程序输出的结果为 ( )

int i;

for(i=0; i<3; i++) {

if(i%2==0)

continue;

Console.WriteLine (i);

}

A. 1            B. 2             C. 3            D. 0

[if !supportLists]29. [endif] 以下C# 程序输出的结果为 ( )

int i = 3;

while(i<8) {

i++;

if(i%2==0)

break;

}

Console.WriteLine (i);

A. 3             B. 4             C. 5                D. 6

[if !supportLists]30. [endif]以下C# 程序输出的结果为 ( )

int a=3;

if(a=3) {

a--;

Console.WriteLine (a);

}

A. 2             B. 3              C. 编译错误                D. 4

[if !supportLists]31. [endif]在SQL Server中,用于记录用户对数据库进行的所有操作的文件是(     )。

[if !supportLists]A. [endif]主数据文件    B. 二级数据文件   

C. 日志文件    D. 备份文件

[if !supportLists]32. [endif]在ADO.NET中,(     )对象结构类似于关系数据库中的数据表。

A. DataAdapter    B. DataSet   C. DataTable      D. DataReader

[if !supportLists]33. [endif]在WinForm中,专业术语MDI指的是(     )。

A. 单文档界面   B. 多文档界面     C. 超级设计接口     D. 超文档编码

[if !supportLists]34. [endif]下列能正确表示逻辑关系“a大于等于10并且a小于等于100”的C#语言表达式是(     )。

A. a>=100 or a<=10 B. a>=10 && a<=100 

C. a>=100 && a<=10 D. a>=10 and a<=100

[if !supportLists]35. [endif]编写SQL Server 分组查询时,下面关键字使用顺序正确的是 (  )

A. WHERE、HAVING、GROUP BY          B. WHERE、GROUP BY、HAVING

C. GROUP BY、HAVING、WHERE          D. HVAING、WHERE、GROUP BY

[if !supportLists]36. [endif]在HTML页面中,下列不属于文本标签样式属性的是(     )。

A. align B. color C. face D. nbsp

[if !supportLists]37. [endif]在HTML页面的input标签中,下列不是表示按钮的类型的是(     )。

A.type="submit"

B.type="reset"

C.type="outset"

D.type="button"

[if !supportLists]38. [endif]在C#中,下列代码的运行结果是(     )。

int[] ia={5,30,1};

ia[0]=5;

ia[1]=1;

ia[2]=30;

Array.Sort(ia);

Console.Write(ia[2]);

A. 语法错误 B. 1

C. 30 D. 5

[if !supportLists]39. [endif]在某张表中,某员工的业绩输入错误。下列SQL Server语句中,能够更正该员工的业绩的选项是(     )。

[if !supportLists]A. [endif]使用INSERT语句

[if !supportLists]B. [endif]使用SELECT语句

[if !supportLists]C. [endif]使用UPDATE语句删除该业绩再重新输入

[if !supportLists]D. [endif]使用UPDATE语句更正业绩

[if !supportLists]40. [endif]在SQL Server 2014中,假设订单表orders用来存储订单信息,cid代表客户编号,现要查询每个客户的订购次数以及客户编号,以下语句正确的是(     )。

A. select count(cid),cid from orders

B. select count(cid),cid from orders order by cid

C. select count(cid),cid from orders having count(cid)>0

D. select count(cid),cid from orders group by cid

[if !supportLists]41. [endif]数据冗余是指()。

A. 数据和数据之间没有联系 B. 存在重复的数据

C. 数据量太大 D. 数据丢失

[if !supportLists]42. [endif]在HTML中,可以使用(     )标记向网页中插入GIF动画文件。

A. <EMBED>          B. <GIF>         

C. <TABLE>          D. <IMG>

[if !supportLists]43. [endif]在C#中,下列声明变量的语句中,正确的是(     )。

[if !supportLists]A. [endif]int i = 10;     B. float f = 1.1;

C. double d = 34.4m;     D. long m = 4990.5f;

[if !supportLists]44. [endif]在ADO.NET中,执行SQL语句的对象是(     )。

[if !supportLists]A. [endif]Connection对象

[if !supportLists]B. [endif]SqlCommand对象

[if !supportLists]C. [endif]SqlDataReader对象

D.  以上都不正确

[if !supportLists]45. [endif]在C#.WinForm中,用于创建主菜单的控件是(     )。

A.Form      B. ContextMenuStrip   C. Label    D. MenuStrip 

[if !supportLists]46. [endif]已知在WinForms窗体中有一个Timer控件,Interval属性设为4分钟,当控件记时1分钟后,调用了控件的Stop方法,再过一分钟,重新调用控件的Start方法,则自此次调用Start方法后,第一次触发控件的Tick时间的间隔是(     )分钟。

A. 2 B. 3 C. 4 D. 5

[if !supportLists]47. [endif]SELECT * FROM Item As a  Left join OrderDetails As b On a.Icode=b.ItemCode,将返回(     )。

A. Item和OrderDetails表中的相关记录以及OrderDetails表中其余的不相关记录

B. Item表和OrderDetails表中的相关记录                             

C. Item表和OrderDetails表中的相关记录以及Item表中其余的不相关记录

D. 提示语法错误

[if !supportLists]48. [endif]()标记用于将文字显示为粗体字。

  A. <A>

  B. <B>

  C. <U>

 D. <I>

[if !supportLists]49. [endif]HTML中要创建一个左右框架,右边框架宽度是左边框架的3倍,以下HTML语句正确的是:(  )     。

[if !supportLists]A. [endif]<FRAMESET cols="*, 2*">

[if !supportLists]B. [endif]<FRAMESET cols="*, 3*">

[if !supportLists]C. [endif]<FRAMESET rows="*, 2*">

[if !supportLists]D. [endif]<FRAMESET rows="*, 3*">

[if !supportLists]50. [endif]以下的C#程序代码,程序运行时在控制台打印输出值为()。

int count=3;

while(count>1){

    Console.Write(--count);

}

A、32

B、321

C、21

D、2

最后编辑于 :
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • 模拟题2: https://ks.wjx.top/jq/40082709.aspx 选择题(针对下列题目,选择符合...
    程序媛_阅读 1,097评论 0赞 0
  • 模拟题1: https://ks.wjx.top/jq/40059499.aspx 选择题(针对下列题目,选择符合...
    程序媛_阅读 1,252评论 1赞 0
  • 模拟题3: https://ks.wjx.top/jq/40080807.aspx 选择题(针对下列题目,选择符合...
    程序媛_阅读 1,112评论 0赞 0
  • 专业考题类型管理运行工作负责人一般作业考题内容选项A选项B选项C选项D选项E选项F正确答案 变电单选GYSZ本规程...
    小白兔去钓鱼阅读 11,230评论 0赞 13
  • Python语言特性 1 Python的函数参数传递 看两个如下例子,分析运行结果: 代码一: a = 1 def...
    时光清浅03阅读 608评论 0赞 0

友情链接更多精彩内容