就业数据资源平台
当前位置:首页 > 笔试题目
湖南青果软件有限公司 高级程序员笔试题


选择题



1:设有变量说明语句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("\n");









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



}









3:

 


  1. 下述程序代码中有语法错误的行是(  )。   

  2. int i,ia[10],ib[10];      /*第一行*/  

  3. for (i=0;i<=9;i++)        /*第2行*/  

  4.   ia[i]=0;          /*第3行*/  

  5. ib=ia;    /*第4行*/  













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









5:关于ASP.NET中的代码隐藏文件的描述正确的是:









6:Which of these string definitions will prevent escaping on backslashes in C#?









7:以下的C程序代码片段运行后C和d的值分别是多少

Int a =1,b =2;

Int c,d;

c =(a&b)&&a;

d =(a&&b)&a;

 









8:Which of the following operations can you NOT perform on an ADO.NET DataSet?









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









10: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();



}



}



请问,此程序输出结果是:
就业数据资源平台