笔试网 我爱你公交网 学校地址网 邮编查询 院校信息网 面试网 笔试网

.net软件开发求职试题集合


点击下载:.net软件开发求职试题集合PDF版 .net软件开发求职试题集合Word版

简答题:

(1)请编程遍历页面上所有textbox控件并给它赋值为string.empty?

(2)什么叫assembly qualified name?它是一个文件名吗?它有什么不同?

(3)什么是interface?它与class有什么区别?

(4)aspx和aspx.cs和aspx.resx的关系。工作原理

(5)重载(overload)和重写(overried,有的书也叫做“覆盖”)的区别?

(6)几种判断空字符串的方法和特点

(7)一列数的规则如下: 1、1、2、3、5、8、13、21、34. 求第30位数是多少, 用递归算法实现。


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

(9)security 公司的网络管理工程师mr. leak最近发现有不少来自公司外部ip的请求,试图非法访问公司内部资源,为了不影响数据访问流程。他不得不写一个高效的程序——一个工作在ipv4上的防火墙,如果请求来自非授权的ip地址,则将请求丢弃。为了便于管理,通过文本文件ip.txt来配置授权的ip地址,文件格式为每行(’/n’)一个 ip地址(或ip段),范围不超过一个b类。例如:
162.105.91.163
59.66.105.0 59.66.105.255
211.71.0.0 211.71.255.255
限制:ip段的起止地址间以空格隔开。文件不超过10万行,内存不超过4m字节。
要求:请编写一个程序,读入ip.txt文件。并从标准输入接受一个ip地址。如果该地址在授权范围内,则在标准输出上打印y,否则打印n.如果输入为一个空行,程序结束。
请给出思路(文字描述),完成代码,分析你采用算法的优劣。请列举测试方法和思路

(10)写出不带头结点的双向链表的插入排序算法。

(11)x博士是一个研究儿童智力开发方法的科学家,他为幼儿教育领域做出了许多贡献。最近,x博士正在研究一种适合儿童的游戏,用以辅助发展儿童的观察力、注意力和思维能力。经过连日的构思,x博士终于设计出了一种游戏:彩球游戏。

  彩球游戏是一种单人参与的游戏,游戏首先给出一串由许多不同颜色的小球组成的小球序列,以及一个整数参数m(m≥2)。一段连续的具有相同颜色的小球序列称为连续同色序列。小孩,即游戏参与者,每次可以向任意一段连续同色序列插入一个同色小球,使该序列的长度加一。当一段连续同色序列在插入一个同色小球后其长度达到m时,该序列就会爆炸消失,然后原序列两边的其余小球会重新连成一串,如果两段相同颜色的连续同色序列在此时连接在一起,它们就会合并形成一段新的连续同色序列。如果新形成的连续同色序列长度达到m,这段序列也会爆炸消失,然后重复上述过程,直到没有新的长度达到m的连续同色序列出现为止。游戏的目标很简单,就是插入尽量少的小球,使得所有小球都爆炸消失掉。

  通过长时间的游戏和不断提高游戏水平,这个游戏可以很好地开发儿童的观察力、注意力和思维能力。但是x博士仍然面临着一个困难的问题,他还需要设计出一个游戏演示ai程序,可以以最优的方式(即插入的小球数量最小)进行游戏,用于游戏教学,或者在游戏中对小孩给出提示。x博士并不擅长此类程序,因而他无法完成这个任务,你可以帮助他吗?

(12)编写一个c语言函数(java方法),要求输入一个url,输出该url是首页、目录页或者其他url
如下形式叫做首页:
militia.info/
www.apcnc.com.cn/
http://www.cyjzs.comwww.greena888.com/
www.800cool.net/
http://hgh-products.my-age.net/
如下形式叫做目录页:
thursdaythree.net/greenhouses--gas-global-green-house-warming/
http://www.mw.net.tw/user/tgk5ar1r/profile/
http://www.szeasy.com/food/yszt/chunjie/
www.fuckingjapanese.com/reality/
请注意:
a) url有可能带http头也有可能不带
b)动态url(即含有"?"的url)的一律不算目录页,如:
www.buddhismcity.net/utility/mailit.php?l=/activity/details/3135/
www.buddhismcity.net/utility/mailit.php?l=/activity/details/2449/

(13)两位年度+两位固定编号(di)+五位流水号1~10000。生成[文档编号]如:06di00035

(14)请谈谈对一个系统设计的总体思路。针对这个思路,你觉得应该具备哪些方面的知识?

(15)类的静态成员和非静态成员有何区别?

(16)将一个字符串逆序。

(17)耶稣有13个门徒,其中有一个就是出卖耶稣的叛徒,请用排除法找出这位叛徒:13人围坐一圈,从第一个开始报号:1,2,3,1,2,3……,凡是报到“3”就退出圈子,最后留在圈内的人就是出卖耶稣的叛徒,请找出它原来的序号。

(18)确定模块的功能和模块的接口是在软件设计的那个队段完成的?

(19)公司要求开发一个继承system.windows.forms.listview类的组件,要求达到以下的特殊功能:点击listview各列列头时,能按照点击列的每行值进行重排视图中的所有行 (排序的方式如datagrid相似)。根据您的知识,请简要谈一下您的思路。

(20)对比http动词get和post? 什么是head?

(21)说出表示任意一个终端(url)的方式,以及asp.net中把请求路由到那个终点的方式

(22)用 100 元钱买 100 支笔,其中钢笔 3 元 / 支,圆珠笔 2 元 / 支,铅笔 0.5 元 / 支,问钢笔、圆珠笔和铅笔可以各买多少支 ?

(23)当你在asp.net中运行一个组件时,它在windows xp, windows 2000, windows 2003上分别跑在哪个进程里面?

(24)假设现有一个单向的链表,但是只知道只有一个指向该节点的指针p,并且假设这个节点不是尾节点,试编程实现删除此节点。

(25)在.net中如何实现深拷贝(deep copy)?

(26)< machinekey>元素是干嘛用的?它用于哪两项asp.net技术?

(27)解释一下uddi.wsdl的意义及其作用

(28)有a、b两个文件,文件格式相同,均为每行一个十进制整型数字,两个文件的行数不一定相等,但均在一千万行左右。a文件中的数字两两不等,b文件中的数字两两不等, 请用一个算法找出a和b两文件中所有相同的数,并且从小到大有序输出。请考虑统计程序如何实现,给出设计思路和关键算法(可使用伪代码),并估计程序核心代码的时间复杂度和空间复杂度。

(29)pid是什么?在做系统的故障排除时如何使用它?

(30)硬盘上保存有一个密码表,文本文件格式,文件名为“code.txt”,内容如下:
abcdefghijklmnopqrstuvwxyz
ushecginpaywdqmlxbozrtfvjk
试编写程序实现一个简单的加密程序,循环读取用户输入,按此密码表将字符进行替换,
并直接打印输出;例如“baidu”将被替换成“super”。

(31)假设一个mp3搜索引擎收录了2^24首歌曲,并记录了可收听这些歌曲的2^30条url,但每首歌的url不超过2^10个。系统会定期检查这些url,如果一个url不可用则不出现在搜索结果中。现在歌曲名和url分别通过整型的song_id和url_id唯一确定。对该系统有如下需求:
1) 通过song_id搜索一首歌的url_id,给出url_id计数和列表
2) 给定一个song_id,为其添加一个新的url_id
3) 添加一个新的song_id
4) 给定一个url_id,将其置为不可用

限制条件:内存占用不超过1g,单个文件大小不超过2g,一个目录下的文件数不超过128个。为获得最佳性能,请说明设计的数据结构、搜索算法,以及资源消耗。如果系统数据量扩大,该如何多机分布处理?

(32)httpmodule订阅的是什么类型的事件? 这对于实现有何影响?如果不打算重新编译asp.ne应用程序,应该怎么做?

(33)用一种算法使通用字符串相匹配。

(34)为什么不提倡catch(exception)?

(35)[threadstatic]属性在asp.net中有用吗?它有没有副作用?是好是坏?

(36)什么是gac?它解决了什么问题?

(37)编制一个完成两个数的四则运算程序。如:用户输入34+56则输出结果90.00。要求运算结果保留两位小数,用户输入时一次将两个数和操作符输入。

(38)用 100 元钱买 100 支笔,其中钢笔 3 元 / 支,圆珠笔 2 元 / 支,铅笔 0.5 元 / 支,问钢笔、圆珠笔和铅笔可以各买多少支 ?

(39)用标准c如何实现多态?

(40)++i与i++的区别到底怎样?

(41)不允许使用系统时间,写出一个随机数生成函数。

(42)什么叫装箱?

(43)对比oop和soa,它们的目的分别是什么?

(44) 1.asp.net中的身份验证有那些?你当前项目采用什么方式验证请解释
2.什么是web控件?使用web控件有那些优势?
3.请解释asp。net中以什么方式进行数据验证?
4.请谈谈对正则表达式的看法?
5.asp。net中共有几种类型的控件?各有什么区别?
6.web控件可以激法服务端事件,请谈谈服务端事件是怎么发生并解释其原理?自动传回是什么?为什么要使用自动传回。
7.web控件及html服务端控件能否调用客户端方法?如果能,请解释如何调用?
8.asp。net与asp相比有什么优势?
9.请解释web.config文件中的重要节点
10.请解释asp。net中的web页面与其隐藏类之间的关系?
11.什么是viewstate,能否禁用?是否所用控件都可以禁用?
(45)创建存储在test.dll中的构造方法为public testclass(){}类testclass的实例
13.当发现不能读取页面上的输入的数据时很有可能是什么原因造成的?怎么解决
14.请解释一个web页面中代码执行次序。
15.请解释什么是上下文对象,在什么情况下要使用上下文对象
16.请解释转发与跳转的区别?
17.请解释asp.net中不同页面之间数据传递有那些方式?
18.请解释asp。net中button linkbutton imagebutton 及hyperlink这四个控件之间的功别
19.请解释一下。net多层应用程序中层与层之间以那几种方式进行数据传递。并解释你自己的项目中采用那种方式进行。
20.如果出现asp。net中的事件不能触发可能由于什么原因造成?
21.如果需要在datagride控件中的某一列中添加下拉列表框并绑定数据怎么解决?
22.请解释asp.net中的数据绑定与传统数据绑定有什么区别?
23.请解释.net采用委托实现的事件模型与java中采用接口实现的事件模型有什么区别,以图示方式解释。
24.请解释接口的显式实现有什么意义? 

(46)[threadstatic]属性在asp.net中有用吗?它有没有副作用?是好是坏?

(47)下面的代码有什么问题?
char *_strdup( const char *strsource )
{
static char str[max_str_len];
strcpy(str, strsource);
return str;
}

(48)硬盘文件系统设计,及磁盘整理算法。

(49)gacutil /l | find /i "corillian" 这句命令的作用是什么?

(50)描述线程与进程的区别?

(51)if-not-modified-since的工作原理是什么? 用asp.net如何实现它?

(52)session和cache的区别是什么。

(53)有一个字符串,包括n个字符。写一个函数,将此字符串从第m个字符开始的全部字符复制成另一个字符串。要求在主函数输入字符串及m值并输出复制结果。

(54)按处理的先后顺序写出你所知道的web窗体中的方法和事件

(55)解释cookie的工作原理。给出一个滥用cookie的例子。

(56)公司要求开发一个继承system.windows.forms.listview类的组件,要求达到以下的特殊功能:点击listview各列列头时,能按照点击列的每行值进行重排视图中的所有行 (排序的方式如datagrid相似)。根据您的知识,请简要谈一下您的思路。

(57).net clr中一代的垃圾收集器是如何管理对象的生命周期的?什么叫非确定性终结?

(58)写一个程序,把一个100以内的自然数分解因数。(自然数分解因数就是将一个自然数分解为几个素数的乘积,提示,由于该数不是很大,所以可以将质数保存在数组中,以加快计算速度)

(59)什么叫web gardening? 在设计中如何使用它?

(60)有篇文章,找出文章中单词在词典中的序号,要求高效率.词典没排序。

(61)打印一个n*n的方阵,n为每边字符的个数( 3〈n〈20 ),要求最外层为“x”,第二层为“y”,从第三层起每层依次打印数字0,1,2,3,...
例子:当n =5,打印出下面的图形:
x x x x x
x y y y x
x y 0 y x
x y y y x
x x x x x

(62)找出两个字符串中最大子字符串,如\"abractyeyt\",\"dgdsaeactyey\"的最大子串为\"actyet\"

(63)编写一个确定一字符串在另一字符串中出现次数的算法。例如字符串“this”在字符串“this is my first program. this…”中出现了2次,不要使用库函数(方法)。

(64)将一个1m-10m的文件,逆序存储到另一个文件,就是前一个文件的最后一个字符存到新文件的第一个字符,以此类推。

(65)怎样在复杂的各种形式的网页中提取mp3下载的结构化数据?

(66)不允许使用系统时间,写出一个随机数生成函数。

(67)datetime.parse(mystring); 这行代码有什么问题?

(68)用一种算法使通用字符串相匹配。

(69)什么叫应用程序域?

(70)写出不带头结点的双向链表的插入排序算法。

(71)哪些数据是通过http header传递的?

(72)根据委托(delegate)的知识,请完成以下用户控件中代码片段的填写:
namespace test
{
public delegate void ondboperate();
public class usercontrolbase : system.windows.forms.usercontrol
{
public event ondboperate onnew;
privatevoidtoolbar_buttonclick(objectsender,system.windows.forms.toolbarbuttonclickeventargs e)
{
if(e.button.equals(btnnew))
{
//请在以下补齐代码用来调用ondboperate委托签名的onnew事件。
}
}
}

来源:笔试网 http://www.ipmao.com/ 面试网 http://www.mianshiwang.com/

选择题:

(1)关于asp.net中的代码隐藏文件的描述正确的是:
a.web窗体页的程序的逻辑由代码组成,这些代码的创建用于与窗体交互。编程逻辑唯一与用户界面不同的文件中。该文件称作为“代码隐藏”文件,如果用c#创建,该文件
b.项目中所有web窗体页的代码隐藏文件都被编译成.exe文件
c.项目中所有的web窗体页的代码隐藏文件都被编译成项目动态链接库(.dll)文件
d.以上都不正确


(2)设有变量说明语句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");
a.**0**
b.**0****2**
c.**0****1****2**
d.有语法错误


(3)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.越界


(4)在c#中利用socket进行网络通信编程的一般步骤是:建立socket侦听、( )、利用socket接收和发送数据。
a.建立socket连接
b.获得端口号
c.获得ip地址
d.获得主机名


(5)以下的c程序代码片段运行后c和d的值分别是多少
int a =1,b =2;
int c,d;
c =(a&b)&&a;
d =(a&&b)&a;

a.0,0
b.0,1
c.1,0
d.1,1


(6)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.


(7)如下程序的运行结果是:

public abstract class a

{

public a()

{

console.writeline('a');

}

public virtual void fun()

{

console.writeline("a.fun()");

}

}

public class b: a

{

public b()

{

console.writeline('b');

}

public new void fun()

{

console.writeline("b.fun()");

}

public static void main()

{

a a = new b();

a.fun();

}

}
a.a b a.fun()
b.a b b.fun()
c.b a a.fun()
d.b a b.fun()


(8)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


(9)软件生命周期的瀑布模型把软件项目分为3个阶段、8个子阶段,以下哪一个是正常的开发顺序?
a.计划阶段、开发阶段、运行阶段
b.设计阶段、开发阶段、编码阶段
c.设计阶段、编码阶段、维护阶段
d.计划阶段、编码阶段、测试阶段


(10)声明一个委托public delegate int mycallback(int x); 则用该委托产生的回调方法的原型应该是
a.void mycallback(int x)
b.int receive(int num)
c.string receive(int x)
d.不确定的


(11)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


(12)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


(13)
下述程序代码中有语法错误的行是(  )。
int i,ia[10],ib[10];      /*第一行*/
for (i=0;i<=9;i++)        /*第2行*/
  ia[i]=0;          /*第3行*/
ib=ia;    /*第4行*/

a.第1行
b.第2行
c.第3行
d.第4行


(14)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


(15)在软件生命周期中,下列哪个说法是不准确的?
a.软件生命周期分为计划、开发和运行三个阶段
b.在计划阶段要进行问题焉醛和需求分析
c.在开发后期要进行编写代码和软件测试
d.在运行阶段主要是进行软件维护


(16)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


(17)假定a和b为int型变量,则执行下述语句组后,b的值为
a=1;
b=10;
do
{
b-=a;
a++;
} while (b--<0);
a.9
b.-2
c.-1
d.8


(18)如果设treeview1=new treeview(),treenode node=new treenode("根结点" ),则treeview1.nodes.add(node)返回的是一个 ()类型的值。
a.treenode
b.int
c.string
d.treeview


(19)在下述选项时,没有构成死循环的程序是
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;


(20)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”;


(21)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”;


(22)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


(23)以下描述错误的是:
a.在c++中支持抽象类而在c#中不支持抽象类。
b.c++中可在头文件中声明类的成员而在cpp文件中定义类的成员,在c#中没有头文件并且在同一处声明和定义类的成员。
c.在c#中可使用 new 修饰符显式隐藏从基类继承的成员。
d.在c#中要在派生类中重新定义基类的虚函数必须在前面加override。


(24)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


(25)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


(26)设有变量说明语句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");
a.**0**
b.**0****2**
c.**0****1****2**
d.有语法错误


(27)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.


(28)如果设treeview1=new treeview(),treenode node=new treenode("根结点" ),则treeview1.nodes.add(node)返回的是一个 ()类型的值。
a.treenode
b.int
c.string
d.treeview


(29)
下述程序代码中有语法错误的行是(  )。
int i,ia[10],ib[10];      /*第一行*/
for (i=0;i<=9;i++)        /*第2行*/
  ia[i]=0;          /*第3行*/
ib=ia;    /*第4行*/

a.第1行
b.第2行
c.第3行
d.第4行


(30)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


(31)在下述选项时,没有构成死循环的程序是
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;


(32)在软件生命周期中,下列哪个说法是不准确的?
a.软件生命周期分为计划、开发和运行三个阶段
b.在计划阶段要进行问题焉醛和需求分析
c.在开发后期要进行编写代码和软件测试
d.在运行阶段主要是进行软件维护


(33)软件生命周期的瀑布模型把软件项目分为3个阶段、8个子阶段,以下哪一个是正常的开发顺序?
a.计划阶段、开发阶段、运行阶段
b.设计阶段、开发阶段、编码阶段
c.设计阶段、编码阶段、维护阶段
d.计划阶段、编码阶段、测试阶段


(34)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.越界


(35)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


(36)以下的c程序代码片段运行后c和d的值分别是多少
int a =1,b =2;
int c,d;
c =(a&b)&&a;
d =(a&&b)&a;

a.0,0
b.0,1
c.1,0
d.1,1


(37)关于asp.net中的代码隐藏文件的描述正确的是:
a.web窗体页的程序的逻辑由代码组成,这些代码的创建用于与窗体交互。编程逻辑唯一与用户界面不同的文件中。该文件称作为“代码隐藏”文件,如果用c#创建,该文件
b.项目中所有web窗体页的代码隐藏文件都被编译成.exe文件
c.项目中所有的web窗体页的代码隐藏文件都被编译成项目动态链接库(.dll)文件
d.以上都不正确


(38)假定a和b为int型变量,则执行下述语句组后,b的值为
a=1;
b=10;
do
{
b-=a;
a++;
} while (b--<0);
a.9
b.-2
c.-1
d.8


(39)在c#中利用socket进行网络通信编程的一般步骤是:建立socket侦听、( )、利用socket接收和发送数据。
a.建立socket连接
b.获得端口号
c.获得ip地址
d.获得主机名


(40)如下程序的运行结果是:

public abstract class a

{

public a()

{

console.writeline('a');

}

public virtual void fun()

{

console.writeline("a.fun()");

}

}

public class b: a

{

public b()

{

console.writeline('b');

}

public new void fun()

{

console.writeline("b.fun()");

}

public static void main()

{

a a = new b();

a.fun();

}

}
a.a b a.fun()
b.a b b.fun()
c.b a a.fun()
d.b a b.fun()


(41)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


(42)以下描述错误的是:
a.在c++中支持抽象类而在c#中不支持抽象类。
b.c++中可在头文件中声明类的成员而在cpp文件中定义类的成员,在c#中没有头文件并且在同一处声明和定义类的成员。
c.在c#中可使用 new 修饰符显式隐藏从基类继承的成员。
d.在c#中要在派生类中重新定义基类的虚函数必须在前面加override。


(43)在软件生命周期中,下列哪个说法是不准确的?
a.软件生命周期分为计划、开发和运行三个阶段
b.在计划阶段要进行问题焉醛和需求分析
c.在开发后期要进行编写代码和软件测试
d.在运行阶段主要是进行软件维护


(44)假定a和b为int型变量,则执行下述语句组后,b的值为
a=1;
b=10;
do
{
b-=a;
a++;
} while (b--<0);
a.9
b.-2
c.-1
d.8


(45)如果设treeview1=new treeview(),treenode node=new treenode("根结点" ),则treeview1.nodes.add(node)返回的是一个 ()类型的值。
a.treenode
b.int
c.string
d.treeview


(46)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


(47)在c#中利用socket进行网络通信编程的一般步骤是:建立socket侦听、( )、利用socket接收和发送数据。
a.建立socket连接
b.获得端口号
c.获得ip地址
d.获得主机名


(48)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”;


(49)在下述选项时,没有构成死循环的程序是
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;


(50)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.越界


(51)以下的c程序代码片段运行后c和d的值分别是多少
int a =1,b =2;
int c,d;
c =(a&b)&&a;
d =(a&&b)&a;

a.0,0
b.0,1
c.1,0
d.1,1


(52)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


(53)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


(54)关于asp.net中的代码隐藏文件的描述正确的是:
a.web窗体页的程序的逻辑由代码组成,这些代码的创建用于与窗体交互。编程逻辑唯一与用户界面不同的文件中。该文件称作为“代码隐藏”文件,如果用c#创建,该文件
b.项目中所有web窗体页的代码隐藏文件都被编译成.exe文件
c.项目中所有的web窗体页的代码隐藏文件都被编译成项目动态链接库(.dll)文件
d.以上都不正确


(55)
下述程序代码中有语法错误的行是(  )。
int i,ia[10],ib[10];      /*第一行*/
for (i=0;i<=9;i++)        /*第2行*/
  ia[i]=0;          /*第3行*/
ib=ia;    /*第4行*/

a.第1行
b.第2行
c.第3行
d.第4行


(56)软件生命周期的瀑布模型把软件项目分为3个阶段、8个子阶段,以下哪一个是正常的开发顺序?
a.计划阶段、开发阶段、运行阶段
b.设计阶段、开发阶段、编码阶段
c.设计阶段、编码阶段、维护阶段
d.计划阶段、编码阶段、测试阶段


(57)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.


(58)设有变量说明语句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");
a.**0**
b.**0****2**
c.**0****1****2**
d.有语法错误


(59)声明一个委托public delegate int mycallback(int x); 则用该委托产生的回调方法的原型应该是
a.void mycallback(int x)
b.int receive(int num)
c.string receive(int x)
d.不确定的


(60)如下程序的运行结果是:

public abstract class a

{

public a()

{

console.writeline('a');

}

public virtual void fun()

{

console.writeline("a.fun()");

}

}

public class b: a

{

public b()

{

console.writeline('b');

}

public new void fun()

{

console.writeline("b.fun()");

}

public static void main()

{

a a = new b();

a.fun();

}

}
a.a b a.fun()
b.a b b.fun()
c.b a a.fun()
d.b a b.fun()


(61)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


(62)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.


(63)在c#中利用socket进行网络通信编程的一般步骤是:建立socket侦听、( )、利用socket接收和发送数据。
a.建立socket连接
b.获得端口号
c.获得ip地址
d.获得主机名


(64)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.越界


(65)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”;


(66)声明一个委托public delegate int mycallback(int x); 则用该委托产生的回调方法的原型应该是
a.void mycallback(int x)
b.int receive(int num)
c.string receive(int x)
d.不确定的


(67)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


(68)以下的c程序代码片段运行后c和d的值分别是多少
int a =1,b =2;
int c,d;
c =(a&b)&&a;
d =(a&&b)&a;

a.0,0
b.0,1
c.1,0
d.1,1


(69)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


(70)
下述程序代码中有语法错误的行是(  )。
int i,ia[10],ib[10];      /*第一行*/
for (i=0;i<=9;i++)        /*第2行*/
  ia[i]=0;          /*第3行*/
ib=ia;    /*第4行*/

a.第1行
b.第2行
c.第3行
d.第4行


(71)以下描述错误的是:
a.在c++中支持抽象类而在c#中不支持抽象类。
b.c++中可在头文件中声明类的成员而在cpp文件中定义类的成员,在c#中没有头文件并且在同一处声明和定义类的成员。
c.在c#中可使用 new 修饰符显式隐藏从基类继承的成员。
d.在c#中要在派生类中重新定义基类的虚函数必须在前面加override。


(72)关于asp.net中的代码隐藏文件的描述正确的是:
a.web窗体页的程序的逻辑由代码组成,这些代码的创建用于与窗体交互。编程逻辑唯一与用户界面不同的文件中。该文件称作为“代码隐藏”文件,如果用c#创建,该文件
b.项目中所有web窗体页的代码隐藏文件都被编译成.exe文件
c.项目中所有的web窗体页的代码隐藏文件都被编译成项目动态链接库(.dll)文件
d.以上都不正确


(73)如果设treeview1=new treeview(),treenode node=new treenode("根结点" ),则treeview1.nodes.add(node)返回的是一个 ()类型的值。
a.treenode
b.int
c.string
d.treeview


(74)设有变量说明语句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");
a.**0**
b.**0****2**
c.**0****1****2**
d.有语法错误


(75)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


(76)软件生命周期的瀑布模型把软件项目分为3个阶段、8个子阶段,以下哪一个是正常的开发顺序?
a.计划阶段、开发阶段、运行阶段
b.设计阶段、开发阶段、编码阶段
c.设计阶段、编码阶段、维护阶段
d.计划阶段、编码阶段、测试阶段


(77)如下程序的运行结果是:

public abstract class a

{

public a()

{

console.writeline('a');

}

public virtual void fun()

{

console.writeline("a.fun()");

}

}

public class b: a

{

public b()

{

console.writeline('b');

}

public new void fun()

{

console.writeline("b.fun()");

}

public static void main()

{

a a = new b();

a.fun();

}

}
a.a b a.fun()
b.a b b.fun()
c.b a a.fun()
d.b a b.fun()


(78)假定a和b为int型变量,则执行下述语句组后,b的值为
a=1;
b=10;
do
{
b-=a;
a++;
} while (b--<0);
a.9
b.-2
c.-1
d.8


(79)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


(80)在下述选项时,没有构成死循环的程序是
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;


(81)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.越界


(82)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”;


(83)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


(84)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


(85)以下描述错误的是:
a.在c++中支持抽象类而在c#中不支持抽象类。
b.c++中可在头文件中声明类的成员而在cpp文件中定义类的成员,在c#中没有头文件并且在同一处声明和定义类的成员。
c.在c#中可使用 new 修饰符显式隐藏从基类继承的成员。
d.在c#中要在派生类中重新定义基类的虚函数必须在前面加override。


(86)声明一个委托public delegate int mycallback(int x); 则用该委托产生的回调方法的原型应该是
a.void mycallback(int x)
b.int receive(int num)
c.string receive(int x)
d.不确定的


(87)设有变量说明语句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");
a.**0**
b.**0****2**
c.**0****1****2**
d.有语法错误


(88)在软件生命周期中,下列哪个说法是不准确的?
a.软件生命周期分为计划、开发和运行三个阶段
b.在计划阶段要进行问题焉醛和需求分析
c.在开发后期要进行编写代码和软件测试
d.在运行阶段主要是进行软件维护


(89)在下述选项时,没有构成死循环的程序是
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;


(90)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


(91)
下述程序代码中有语法错误的行是(  )。
int i,ia[10],ib[10];      /*第一行*/
for (i=0;i<=9;i++)        /*第2行*/
  ia[i]=0;          /*第3行*/
ib=ia;    /*第4行*/

a.第1行
b.第2行
c.第3行
d.第4行


(92)如下程序的运行结果是:

public abstract class a

{

public a()

{

console.writeline('a');

}

public virtual void fun()

{

console.writeline("a.fun()");

}

}

public class b: a

{

public b()

{

console.writeline('b');

}

public new void fun()

{

console.writeline("b.fun()");

}

public static void main()

{

a a = new b();

a.fun();

}

}
a.a b a.fun()
b.a b b.fun()
c.b a a.fun()
d.b a b.fun()


(93)关于asp.net中的代码隐藏文件的描述正确的是:
a.web窗体页的程序的逻辑由代码组成,这些代码的创建用于与窗体交互。编程逻辑唯一与用户界面不同的文件中。该文件称作为“代码隐藏”文件,如果用c#创建,该文件
b.项目中所有web窗体页的代码隐藏文件都被编译成.exe文件
c.项目中所有的web窗体页的代码隐藏文件都被编译成项目动态链接库(.dll)文件
d.以上都不正确


(94)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.


(95)软件生命周期的瀑布模型把软件项目分为3个阶段、8个子阶段,以下哪一个是正常的开发顺序?
a.计划阶段、开发阶段、运行阶段
b.设计阶段、开发阶段、编码阶段
c.设计阶段、编码阶段、维护阶段
d.计划阶段、编码阶段、测试阶段


(96)如果设treeview1=new treeview(),treenode node=new treenode("根结点" ),则treeview1.nodes.add(node)返回的是一个 ()类型的值。
a.treenode
b.int
c.string
d.treeview


(97)假定a和b为int型变量,则执行下述语句组后,b的值为
a=1;
b=10;
do
{
b-=a;
a++;
} while (b--<0);
a.9
b.-2
c.-1
d.8


(98)以下的c程序代码片段运行后c和d的值分别是多少
int a =1,b =2;
int c,d;
c =(a&b)&&a;
d =(a&&b)&a;

a.0,0
b.0,1
c.1,0
d.1,1


(99)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


(100)在c#中利用socket进行网络通信编程的一般步骤是:建立socket侦听、( )、利用socket接收和发送数据。
a.建立socket连接
b.获得端口号
c.获得ip地址
d.获得主机名


(101) 来源:笔试网 http://www.ipmao.com/ ;
面试网 http://www.mianshiwang.com/
粤ICP备08124962号