SlideShare a Scribd company logo
招聘笔试题(二)



1、你认为作为一个软件工程师应该具备哪些基本素质与品质?


2、简要说明程序代码中写注释的目的


3、 程序头文件中的 # ifndef/# define/# endif 作用是什么?



4、 C 程序#include<xxx.h> 和 #include”xxx.h”有什么区别?



5、C++中拷贝构造函数( Copy Contructor)有什么作用?什么情况下必须定义

  拷贝构造函数?试写程序说明。

6、LINUX 中 chmod 命令的作用是什么?使用哪个命令创建用户和组?


7、 有个字符串:abcd|123|7899|sdfg|,基中|是分隔符,请用 Java 写一段程序从中


  取出各子串。

8、Windouw NT 和 LINUX 中,启动系统的选择分别由哪个文件来设定?


9、 对给定问题进行细致分析,从而找出一种比较优化的算法:写一个函数


  计算当参数为 n(n 很大)时的值 1-2+3-4+5-6+7……+n


10、简要介绍一下什么是设计模式(Design Pattern)?请列举几个常用的设计模

   式。
11 、 在 应用 J2EE 技 术架 构 Web 服 务器 时, 经常 会用 到的 一个 设计 模式 是


    MVC,请简要说明一下 MVC 的优点。


12、根据以下 UML 类图,指出 A、B、C 三个类之间的关系。


                                     A




     C                                                B




    13.请写出下列程序的运行结果:


    Public class Testclass {

    Public static void main(String[] args ) {

        Child child = new Child();

}

    }




    Class parent {

    Parent () {

        System.out.println(“to construct Parent.”);

        }

    }
Class child extends Parent {

    Child() {

    System.out.println(“to construct Child.”);

}

Delegatee delegatee = new Delegatee ();

}




Class Delegatee {

    Delegatee () {

     System.out.println(“to construct Delegatee.”);

}

}




14.请简述 jsp 和 asp 的区别以及 jsp 的运行原理。


15.设计一个简单的 JSP 程序和一个 JavaBean,实现向服务器上文件 test.txt


       中写入“HelloWorld!”。


16.请以图示以 WEB 为中心的组件的典型应用交互图(包括 JSP、EJB、数

据库等元素)。

17.Java 中数据类型被分为两类:基本类型和引用类型,请简述它们的区
别,并对每一类型包括的具体数据类型列举出 3 种来。


18.NullPointerException 在什么时候被抛出?请举例说明。


19 .编写一个名称为 Product 的数据对象类(数据对象类:含有属性及其


   getter、setter 方法的类),用来描述一个产品,产品的属性有:编码,

   规格,名称,标准成本,计划单价。

20、编写一个主类 productMain(含 main 方法的类):


 I.   首先,通过构造函数建立 6 个 Product 的实例(产品编码按顺序递


       增),按建立的先后顺序逐个放入 Vector 中:


 II. 然后,按放入顺序输出 Vector 中的每个实例;


      III.然后,删除 Vector 中第 1、2、3 位置的元素,但要保持 Vector 中

       余下的元素顺序不变;

      Iv. 最后,输出 Vector 中余下的三个元素。


   21、在 struts 中,您是如何来设计和使用 ActionForm 的?Action 类实例


       什么时候被创建?在 Action 类中定义的实例变量有什么作用?


   22.在使用 Struts 的过程中,您是如何进行校验设计的?
招聘笔试题(二)

More Related Content

Viewers also liked

Front Lake Rjz & Cyrela E Mail
Front Lake   Rjz & Cyrela E MailFront Lake   Rjz & Cyrela E Mail
Front Lake Rjz & Cyrela E Mail
imoveisdorio
 
Enterprise Level Agile The Art Of Start
Enterprise Level Agile   The Art Of StartEnterprise Level Agile   The Art Of Start
Enterprise Level Agile The Art Of Start
Andrey Bibichev
 
Superstition & Shraddha Dr Shriniwas Kashalikar
Superstition &  Shraddha  Dr  Shriniwas  KashalikarSuperstition &  Shraddha  Dr  Shriniwas  Kashalikar
Superstition & Shraddha Dr Shriniwas Kashalikarghanyog
 
Harnessing the Power of Social Media Tools to fill your funnel & close more b...
Harnessing the Power of Social Media Tools to fill your funnel & close more b...Harnessing the Power of Social Media Tools to fill your funnel & close more b...
Harnessing the Power of Social Media Tools to fill your funnel & close more b...
James Hutto
 
Airnetz Infrastructure Investor Presentation - airport development build oper...
Airnetz Infrastructure Investor Presentation - airport development build oper...Airnetz Infrastructure Investor Presentation - airport development build oper...
Airnetz Infrastructure Investor Presentation - airport development build oper...
atulpkhekade
 
Trade Theories. Appendix A
Trade Theories. Appendix ATrade Theories. Appendix A
Trade Theories. Appendix A
SSA KPI
 
NEWSLETTER OMP racing - IT - Settembre 2009 par autoprestige-tuning
NEWSLETTER OMP racing - IT - Settembre 2009 par autoprestige-tuningNEWSLETTER OMP racing - IT - Settembre 2009 par autoprestige-tuning
NEWSLETTER OMP racing - IT - Settembre 2009 par autoprestige-tuning
autoprestige
 
Potential difference and power.ppt
Potential difference and power.pptPotential difference and power.ppt
Potential difference and power.ppt
mrmeredith
 
Zawód telemarketer - pobierz darmowy ebook pdf
Zawód telemarketer - pobierz darmowy ebook pdfZawód telemarketer - pobierz darmowy ebook pdf
Zawód telemarketer - pobierz darmowy ebook pdf
Dobre Ebooki
 
Get Out Of Debt & Have Healthy Credit
Get Out Of Debt & Have Healthy CreditGet Out Of Debt & Have Healthy Credit
Get Out Of Debt & Have Healthy Credit
Cheryl's Space
 

Viewers also liked (10)

Front Lake Rjz & Cyrela E Mail
Front Lake   Rjz & Cyrela E MailFront Lake   Rjz & Cyrela E Mail
Front Lake Rjz & Cyrela E Mail
 
Enterprise Level Agile The Art Of Start
Enterprise Level Agile   The Art Of StartEnterprise Level Agile   The Art Of Start
Enterprise Level Agile The Art Of Start
 
Superstition & Shraddha Dr Shriniwas Kashalikar
Superstition &  Shraddha  Dr  Shriniwas  KashalikarSuperstition &  Shraddha  Dr  Shriniwas  Kashalikar
Superstition & Shraddha Dr Shriniwas Kashalikar
 
Harnessing the Power of Social Media Tools to fill your funnel & close more b...
Harnessing the Power of Social Media Tools to fill your funnel & close more b...Harnessing the Power of Social Media Tools to fill your funnel & close more b...
Harnessing the Power of Social Media Tools to fill your funnel & close more b...
 
Airnetz Infrastructure Investor Presentation - airport development build oper...
Airnetz Infrastructure Investor Presentation - airport development build oper...Airnetz Infrastructure Investor Presentation - airport development build oper...
Airnetz Infrastructure Investor Presentation - airport development build oper...
 
Trade Theories. Appendix A
Trade Theories. Appendix ATrade Theories. Appendix A
Trade Theories. Appendix A
 
NEWSLETTER OMP racing - IT - Settembre 2009 par autoprestige-tuning
NEWSLETTER OMP racing - IT - Settembre 2009 par autoprestige-tuningNEWSLETTER OMP racing - IT - Settembre 2009 par autoprestige-tuning
NEWSLETTER OMP racing - IT - Settembre 2009 par autoprestige-tuning
 
Potential difference and power.ppt
Potential difference and power.pptPotential difference and power.ppt
Potential difference and power.ppt
 
Zawód telemarketer - pobierz darmowy ebook pdf
Zawód telemarketer - pobierz darmowy ebook pdfZawód telemarketer - pobierz darmowy ebook pdf
Zawód telemarketer - pobierz darmowy ebook pdf
 
Get Out Of Debt & Have Healthy Credit
Get Out Of Debt & Have Healthy CreditGet Out Of Debt & Have Healthy Credit
Get Out Of Debt & Have Healthy Credit
 

Similar to 招聘笔试题(二)

2006年招聘试题
2006年招聘试题2006年招聘试题
2006年招聘试题yiditushe
 
beidakejian
beidakejianbeidakejian
beidakejian
hanxuebing
 
Jni文档
Jni文档Jni文档
Jni文档
woshiwzy
 
软件工程 第七章
软件工程 第七章软件工程 第七章
软件工程 第七章浒 刘
 
信息系统开发平台OpenExpressApp
信息系统开发平台OpenExpressApp信息系统开发平台OpenExpressApp
信息系统开发平台OpenExpressAppzhoujg
 
Struts Mitac(1)
Struts Mitac(1)Struts Mitac(1)
Struts Mitac(1)wangjiaz
 
上海立派信息技术有限公司
上海立派信息技术有限公司上海立派信息技术有限公司
上海立派信息技术有限公司yiditushe
 
Django敏捷开发 刘天斯
Django敏捷开发 刘天斯Django敏捷开发 刘天斯
Django敏捷开发 刘天斯liuts
 
千呼萬喚始出來的Java SE 7
千呼萬喚始出來的Java SE 7千呼萬喚始出來的Java SE 7
千呼萬喚始出來的Java SE 7
javatwo2011
 
淘宝网前端开发面试题
淘宝网前端开发面试题 淘宝网前端开发面试题
淘宝网前端开发面试题
Lumend
 
软件设计原则、模式与应用
软件设计原则、模式与应用软件设计原则、模式与应用
软件设计原则、模式与应用yiditushe
 
Jsp高级编程
Jsp高级编程Jsp高级编程
Jsp高级编程yiditushe
 
J2ee经典学习笔记
J2ee经典学习笔记J2ee经典学习笔记
J2ee经典学习笔记yiditushe
 
第1讲 开始编写程序
第1讲 开始编写程序第1讲 开始编写程序
第1讲 开始编写程序ruandao
 
Asp.net mvc 概觀介紹
Asp.net mvc 概觀介紹Asp.net mvc 概觀介紹
Asp.net mvc 概觀介紹
Alan Tsai
 
Java 1(Java概述)
Java 1(Java概述)Java 1(Java概述)
Java 1(Java概述)xzdbd
 

Similar to 招聘笔试题(二) (20)

2006年招聘试题
2006年招聘试题2006年招聘试题
2006年招聘试题
 
beidakejian
beidakejianbeidakejian
beidakejian
 
Jni文档
Jni文档Jni文档
Jni文档
 
中软
中软中软
中软
 
软件工程 第七章
软件工程 第七章软件工程 第七章
软件工程 第七章
 
信息系统开发平台OpenExpressApp
信息系统开发平台OpenExpressApp信息系统开发平台OpenExpressApp
信息系统开发平台OpenExpressApp
 
C+
C+C+
C+
 
C#
C#C#
C#
 
Struts Mitac(1)
Struts Mitac(1)Struts Mitac(1)
Struts Mitac(1)
 
上海立派信息技术有限公司
上海立派信息技术有限公司上海立派信息技术有限公司
上海立派信息技术有限公司
 
Django敏捷开发 刘天斯
Django敏捷开发 刘天斯Django敏捷开发 刘天斯
Django敏捷开发 刘天斯
 
千呼萬喚始出來的Java SE 7
千呼萬喚始出來的Java SE 7千呼萬喚始出來的Java SE 7
千呼萬喚始出來的Java SE 7
 
淘宝网前端开发面试题
淘宝网前端开发面试题 淘宝网前端开发面试题
淘宝网前端开发面试题
 
软件设计原则、模式与应用
软件设计原则、模式与应用软件设计原则、模式与应用
软件设计原则、模式与应用
 
Jsp高级编程
Jsp高级编程Jsp高级编程
Jsp高级编程
 
J2ee经典学习笔记
J2ee经典学习笔记J2ee经典学习笔记
J2ee经典学习笔记
 
第1讲 开始编写程序
第1讲 开始编写程序第1讲 开始编写程序
第1讲 开始编写程序
 
Asp.net mvc 概觀介紹
Asp.net mvc 概觀介紹Asp.net mvc 概觀介紹
Asp.net mvc 概觀介紹
 
SCJP ch17
SCJP ch17SCJP ch17
SCJP ch17
 
Java 1(Java概述)
Java 1(Java概述)Java 1(Java概述)
Java 1(Java概述)
 

More from yiditushe

Spring入门纲要
Spring入门纲要Spring入门纲要
Spring入门纲要yiditushe
 
J Bpm4 1中文用户手册
J Bpm4 1中文用户手册J Bpm4 1中文用户手册
J Bpm4 1中文用户手册yiditushe
 
性能测试实践2
性能测试实践2性能测试实践2
性能测试实践2yiditushe
 
性能测试实践1
性能测试实践1性能测试实践1
性能测试实践1yiditushe
 
性能测试技术
性能测试技术性能测试技术
性能测试技术yiditushe
 
Load runner测试技术
Load runner测试技术Load runner测试技术
Load runner测试技术yiditushe
 
J2 ee性能测试
J2 ee性能测试J2 ee性能测试
J2 ee性能测试yiditushe
 
面向对象的Js培训
面向对象的Js培训面向对象的Js培训
面向对象的Js培训yiditushe
 
Flex3中文教程
Flex3中文教程Flex3中文教程
Flex3中文教程
yiditushe
 
开放源代码的全文检索Lucene
开放源代码的全文检索Lucene开放源代码的全文检索Lucene
开放源代码的全文检索Luceneyiditushe
 
基于分词索引的全文检索技术介绍
基于分词索引的全文检索技术介绍基于分词索引的全文检索技术介绍
基于分词索引的全文检索技术介绍yiditushe
 
Lucene In Action
Lucene In ActionLucene In Action
Lucene In Actionyiditushe
 
Lucene2 4学习笔记1
Lucene2 4学习笔记1Lucene2 4学习笔记1
Lucene2 4学习笔记1yiditushe
 
Lucene2 4 Demo
Lucene2 4 DemoLucene2 4 Demo
Lucene2 4 Demoyiditushe
 
Lucene 全文检索实践
Lucene 全文检索实践Lucene 全文检索实践
Lucene 全文检索实践yiditushe
 
Lucene 3[1] 0 原理与代码分析
Lucene 3[1] 0 原理与代码分析Lucene 3[1] 0 原理与代码分析
Lucene 3[1] 0 原理与代码分析yiditushe
 
7 面向对象设计原则
7 面向对象设计原则7 面向对象设计原则
7 面向对象设计原则yiditushe
 
10 团队开发
10  团队开发10  团队开发
10 团队开发yiditushe
 
9 对象持久化与数据建模
9  对象持久化与数据建模9  对象持久化与数据建模
9 对象持久化与数据建模yiditushe
 
8 Uml构架建模
8  Uml构架建模8  Uml构架建模
8 Uml构架建模yiditushe
 

More from yiditushe (20)

Spring入门纲要
Spring入门纲要Spring入门纲要
Spring入门纲要
 
J Bpm4 1中文用户手册
J Bpm4 1中文用户手册J Bpm4 1中文用户手册
J Bpm4 1中文用户手册
 
性能测试实践2
性能测试实践2性能测试实践2
性能测试实践2
 
性能测试实践1
性能测试实践1性能测试实践1
性能测试实践1
 
性能测试技术
性能测试技术性能测试技术
性能测试技术
 
Load runner测试技术
Load runner测试技术Load runner测试技术
Load runner测试技术
 
J2 ee性能测试
J2 ee性能测试J2 ee性能测试
J2 ee性能测试
 
面向对象的Js培训
面向对象的Js培训面向对象的Js培训
面向对象的Js培训
 
Flex3中文教程
Flex3中文教程Flex3中文教程
Flex3中文教程
 
开放源代码的全文检索Lucene
开放源代码的全文检索Lucene开放源代码的全文检索Lucene
开放源代码的全文检索Lucene
 
基于分词索引的全文检索技术介绍
基于分词索引的全文检索技术介绍基于分词索引的全文检索技术介绍
基于分词索引的全文检索技术介绍
 
Lucene In Action
Lucene In ActionLucene In Action
Lucene In Action
 
Lucene2 4学习笔记1
Lucene2 4学习笔记1Lucene2 4学习笔记1
Lucene2 4学习笔记1
 
Lucene2 4 Demo
Lucene2 4 DemoLucene2 4 Demo
Lucene2 4 Demo
 
Lucene 全文检索实践
Lucene 全文检索实践Lucene 全文检索实践
Lucene 全文检索实践
 
Lucene 3[1] 0 原理与代码分析
Lucene 3[1] 0 原理与代码分析Lucene 3[1] 0 原理与代码分析
Lucene 3[1] 0 原理与代码分析
 
7 面向对象设计原则
7 面向对象设计原则7 面向对象设计原则
7 面向对象设计原则
 
10 团队开发
10  团队开发10  团队开发
10 团队开发
 
9 对象持久化与数据建模
9  对象持久化与数据建模9  对象持久化与数据建模
9 对象持久化与数据建模
 
8 Uml构架建模
8  Uml构架建模8  Uml构架建模
8 Uml构架建模
 

招聘笔试题(二)

  • 1. 招聘笔试题(二) 1、你认为作为一个软件工程师应该具备哪些基本素质与品质? 2、简要说明程序代码中写注释的目的 3、 程序头文件中的 # ifndef/# define/# endif 作用是什么? 4、 C 程序#include<xxx.h> 和 #include”xxx.h”有什么区别? 5、C++中拷贝构造函数( Copy Contructor)有什么作用?什么情况下必须定义 拷贝构造函数?试写程序说明。 6、LINUX 中 chmod 命令的作用是什么?使用哪个命令创建用户和组? 7、 有个字符串:abcd|123|7899|sdfg|,基中|是分隔符,请用 Java 写一段程序从中 取出各子串。 8、Windouw NT 和 LINUX 中,启动系统的选择分别由哪个文件来设定? 9、 对给定问题进行细致分析,从而找出一种比较优化的算法:写一个函数 计算当参数为 n(n 很大)时的值 1-2+3-4+5-6+7……+n 10、简要介绍一下什么是设计模式(Design Pattern)?请列举几个常用的设计模 式。
  • 2. 11 、 在 应用 J2EE 技 术架 构 Web 服 务器 时, 经常 会用 到的 一个 设计 模式 是 MVC,请简要说明一下 MVC 的优点。 12、根据以下 UML 类图,指出 A、B、C 三个类之间的关系。 A C B 13.请写出下列程序的运行结果: Public class Testclass { Public static void main(String[] args ) { Child child = new Child(); } } Class parent { Parent () { System.out.println(“to construct Parent.”); } }
  • 3. Class child extends Parent { Child() { System.out.println(“to construct Child.”); } Delegatee delegatee = new Delegatee (); } Class Delegatee { Delegatee () { System.out.println(“to construct Delegatee.”); } } 14.请简述 jsp 和 asp 的区别以及 jsp 的运行原理。 15.设计一个简单的 JSP 程序和一个 JavaBean,实现向服务器上文件 test.txt 中写入“HelloWorld!”。 16.请以图示以 WEB 为中心的组件的典型应用交互图(包括 JSP、EJB、数 据库等元素)。 17.Java 中数据类型被分为两类:基本类型和引用类型,请简述它们的区
  • 4. 别,并对每一类型包括的具体数据类型列举出 3 种来。 18.NullPointerException 在什么时候被抛出?请举例说明。 19 .编写一个名称为 Product 的数据对象类(数据对象类:含有属性及其 getter、setter 方法的类),用来描述一个产品,产品的属性有:编码, 规格,名称,标准成本,计划单价。 20、编写一个主类 productMain(含 main 方法的类): I. 首先,通过构造函数建立 6 个 Product 的实例(产品编码按顺序递 增),按建立的先后顺序逐个放入 Vector 中: II. 然后,按放入顺序输出 Vector 中的每个实例; III.然后,删除 Vector 中第 1、2、3 位置的元素,但要保持 Vector 中 余下的元素顺序不变; Iv. 最后,输出 Vector 中余下的三个元素。 21、在 struts 中,您是如何来设计和使用 ActionForm 的?Action 类实例 什么时候被创建?在 Action 类中定义的实例变量有什么作用? 22.在使用 Struts 的过程中,您是如何进行校验设计的?