现场服务工程师笔试题

时间:2021-02-10 15:14:50 面试笔试 我要投稿

现场服务工程师笔试题

  选择题

现场服务工程师笔试题

  1:public static void main(string[] args)

  {

  int i = 2000;

  object o = i;

  i = 2001;

  int j =(int) o;

  console.writeline("i={0},o={1}, j={2}",i,o,j);

  }

  a.i=2001,o=2000,j=2000

  b.i=2001,o=2001,,j=2001

  c.i=2000,o=2001,,j=2000

  d.i=2001,o=2000,j=2001

  2:软件生命周期的瀑布模型把软件项目分为3个阶段、8个子阶段,以下哪一个是正常的开发顺序?

  a.计划阶段、开发阶段、运行阶段

  b.设计阶段、开发阶段、编码阶段

  c.设计阶段、编码阶段、维护阶段

  d.计划阶段、编码阶段、测试阶段

  3:what compiler switch creates an xml file from the xml comments in the files in an assembly?

  a./text

  b./doc

  c./xml

  d./help

  4:int[][] myarray3=new int[3][]{new int[3]{5,6,2},new int[5]{6,9,7,8,3},new int[2]{3,2}}; myarray3[2][2]的值是:

  a.9

  b.2

  c.6

  d.越界

  5:如果设treeview1=new treeview(),treenode node=new treenode("根结点" ),则treeview1.nodes.add(node)返回的是一个 ()类型的值。

  a.treenode

  b.int

  c.string

  d.treeview

  6:以下描述错误的是:

  a.在c++中支持抽象类而在c#中不支持抽象类。

  b.c++中可在头文件中声明类的成员而在cpp文件中定义类的成员,在c#中没有头文件并且在同一处声明和定义类的成员。

  c.在c#中可使用 new 修饰符显式隐藏从基类继承的成员。

  d.在c#中要在派生类中重新定义基类的虚函数必须在前面加override。

  7:设有变量说明语句int a=1,b=0;

  则执行以下程序段的输出结果为( )。

  switch (a)

  {

  case 1:

  switch (b)

  {

  case 0:printf("**0**");break;

  case 1:printf("**1**");break;

  }

  case 2:printf("**2**");break;

  }

  printf(" ");

  a.**0**

  b.**0****2**

  c.**0****1****2**

  d.有语法错误

  8:在下述选项时,没有构成死循环的程序是

  a.int i=100 while (1) { i=i%100+1; if (i>100) break; }

  b.for (;;);

  c.int k=1000; do { ++k; }while(k>=10000);

  d.int s=36; while (s);—s;

  9:声明一个委托public delegate int mycallback(int x); 则用该委托产生的回调方法的原型应该是

  a.void mycallback(int x)

  b.int receive(int num)

  c.string receive(int x)

  d.不确定的

  10:which of the following operations can you not perform on an ado.net dataset?

  a.a dataset can be synchronised with a recordset.

  b.a dataset can be synchronised with the database.

  c.a dataset can be converted to xml.

  d.you can infer the schema from a dataset

  11:in object oriented programming, how would you describe encapsulation?

  a.the conversion of one type of object to another.

  b.the runtime resolution of method calls.

  c.the exposition of data.

  d.the separation of interface and implementation.

  12:abstract class baseclass

  {

  public virtual void methoda()

  {

  console.writeline("baseclass");

  }

  public virtual void methodb()

  {

  }

  }

  class class1: baseclass

  {

  public void methoda()

  {

  console.writeline("class1");

  }

  public override void methodb()

  {

  }

  }

  class class2: class1

  {

  new public void methodb()

  {

  }

  }

  class mainclass

  {

  public static void main(string[] args)

  {

  class2 o = new class2();

  o.methoda();

  }

  }

  请问,此程序输出结果是:

  a.baseclass

  b.bassclass class1

  c.class1

  d.class1 bassclass

  13:在软件生命周期中,下列哪个说法是不准确的?

  a.软件生命周期分为计划、开发和运行三个阶段

  b.在计划阶段要进行问题焉醛和需求分析

  c.在开发后期要进行编写代码和软件测试

  d.在运行阶段主要是进行软件维护

  14:which of these string definitions will prevent escaping on backslashes in c#?

  a.string s = #”n test string”;

  b.string s = “’n test string”;

  c.string s = @”n test string”;

  d.string s = “n test string”;

  15:假定a和b为int型变量,则执行下述语句组后,b的值为

  a=1;

  b=10;

  do

  {

  b-=a;

  a++;

  } while (b—<0);

  a.9

  b.-2

  c.-1

  d.8

  16:class class1

  {

  public static int count = 0;

  static class1()

  {

  count++;

  }

  public class1()

  {

  count++;

  }

  }

  class1 o1 = new class1();

  class1 o2 = new class1();

  请问,class1.count的值是多少?

  a.1

  b.2

  c.3

  d.4

  17:关于asp.net中的代码隐藏文件的描述正确的是:

  a.web窗体页的.程序的逻辑由代码组成,这些代码的创建用于与窗体交互。编程逻辑唯一与用户界面不同的文件中。该文件称作为“代码隐藏”文件,如果用c#创建,该文件

  b.项目中所有web窗体页的代码隐藏文件都被编译成.exe文件

  c.项目中所有的web窗体页的代码隐藏文件都被编译成项目动态链接库(.dll)文件

  d.以上都不正确

  简答题

  18:客户端如何访问.net组件实现web service?

  19:找出32位数中是回文数,且其开方为整数的数。

  20:.net中读写数据库需要用到那些类?他们的作用?

  21:类的静态成员和非静态成员有何区别?

  22:给出了从纽约出发和到达洛杉机的各种航班信息,写出找到一条从纽约到洛杉机的最短距离的航班组合的代码。

  23:解释cookie的工作原理。给出一个滥用cookie的例子。

  24:多线程中的同步机制是什么,有什么优缺点?

  25:编写一个在二叉排序树中查找大小为第k的元素的算法。

【现场服务工程师笔试题】相关文章:

餐饮服务培训试题03-09

工程师面试笔试题03-19

网络工程师面试笔试题03-09

华为数据通信工程师面试笔试题03-11

2017笔试各题型答题技巧02-11

给学弟学妹的求职笔面试总结03-18

地产公司现场面试话术03-31

广州招聘会现场求职技巧07-08

广东现场招聘会求职技巧解密07-09

2017笔试必备:进出口银行常识汇总04-01