随笔分类 -  3、笔试题

面向初、中级水平的小题,夯实基础之用。
某知名软件公司的一道笔试题
摘要:1~100共一百个自然数,放入一个99个元素的数组a[99],要求写出一个尽量简单的方案,找出没有被放入数组的这个数关于答案及评论见这里 阅读全文

posted @ 2005-02-17 08:57 陈叙远 阅读(7158) 评论(4) 推荐(0)

笔试题系列之四
摘要:请指出下面代码的运行结果并解释原理,老规矩,不许用编译器using System;namespace param{ class Class1 { static int i = getNum(); int j = getNum(); static int num = 1; static int getNum() { return num; } [STAThread] static void Main... 阅读全文

posted @ 2004-10-13 10:03 陈叙远 阅读(3602) 评论(9) 推荐(0)

笔试题系列之三
摘要:请指出下面代码的运行结果,老规矩,不许用编译器using System;namespace param{ class Class1 { [STAThread] static void Main(string[] args) { Console.WriteLine(new Class1()); } public override string ToString() { return string... 阅读全文

posted @ 2004-09-30 10:23 陈叙远 阅读(3769) 评论(8) 推荐(0)

笔试题系列之二
摘要:看到昨天post的一道笔试题还比较受大家欢迎,我准备把这个东西做成一个系列,难度都不大,算是对基础知识的一个回顾,有兴趣的话大家就瞧两眼,希望看明白之前不要用编译器调试。请指出下面代码的运行结果,并阐述原因using System;using System.Collections;namespace param{class Class1{[STAThread]static void Main(st... 阅读全文

posted @ 2004-09-29 10:31 陈叙远 阅读(3947) 评论(7) 推荐(0)

中秋佳节,献上笔试题一道,祝各位事业蒸蒸日上!
摘要:请详细解释下面的代码(如果能编译通过,请描述输出结果;如果无法编译通过,请解释原因)using System;namespace param{class Class1{static int k;[STAThread]static void Main(string[] args){int i;int j = 1;Console.WriteLine(j);Console.WriteLine(k);Co... 阅读全文

posted @ 2004-09-28 10:03 陈叙远 阅读(6670) 评论(23) 推荐(0)

a question
摘要:Compact Computers is a small computer assembly company. Their online application allows customers to pick and choose accessories to build their own PCs. The accessories are:i. Processor - 800Mhz, 1Ghz... 阅读全文

posted @ 2004-05-28 09:56 陈叙远 阅读(1281) 评论(3) 推荐(0)

导航