北京达内科技 Java培训讲师TSFC四步培训法_第1页
北京达内科技 Java培训讲师TSFC四步培训法_第2页
北京达内科技 Java培训讲师TSFC四步培训法_第3页
北京达内科技 Java培训讲师TSFC四步培训法_第4页
北京达内科技 Java培训讲师TSFC四步培训法_第5页
已阅读5页,还剩18页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

选择题1:在软件生命周期中,下列哪个说法是不准确的?HTMLCONTROLForms.HTML:Option.1A.软件生命周期分为计划、开发和运行三个阶段HTMLCONTROLForms.HTML:Option.1B.在计划阶段要进行问题焉醛和需求分析HTMLCONTROLForms.HTML:Option.1C.在开发后期要进行编写代码和软件测试HTMLCONTROLForms.HTML:Option.1D.在运行阶段主要是进行软件维护2:Which

is

the

most

appropriate

code

snippet

that

can

be

inserted

at

line

18

in

the

following

code?

(Assume

that

the

code

is

compiled

and

run

with

assertions

enabled)

1.

import

java.util.*;

2.

3.

public

class

AssertTest

4.

{

5.

private

HashMap

cctld;

6.

7.

public

AssertTest()

8.

{

9.

cctld

=

new

HashMap();

10.

cctld.put("in",

"India");

11.

cctld.put("uk",

"United

Kingdom");

12.

cctld.put("au",

"Australia");

13.

//

more

code...

14.

}

15.

//

other

methods

16.

public

String

getCountry(String

countryCode)

17.

{

18.

//

What

should

be

inserted

here?

19.

String

country

=

(String)cctld.get(countryCode);

20.

return

country;

21.

}

22.

}

Whichisthemostappropriatecodesnippetthatcanbeinsertedatline18inthefollowingcode?(Assumethatthecodeiscompiledandrunwithassertionsenabled)1.importjava.util.*;2.3.publicclassAssertTest4.{5.privateHashMapcctld;6.7.publicAssertTest()8.{9.cctld=newHashMap();10.cctld.put("in","India");11.cctld.put("uk","UnitedKingdom");12.cctld.put("au","Australia");13.//morecode...14.}15.//othermethods16.publicStringgetCountry(StringcountryCode)17.{18.//Whatshouldbeinsertedhere?19.Stringcountry=(String)cctld.get(countryCode);20.returncountry;21.}22.}HTMLCONTROLForms.HTML:Option.1A.assertcountryCode!=null;HTMLCONTROLForms.HTML:Option.1B.assertcountryCode!=null:"Countrycodecannotbenull";HTMLCONTROLForms.HTML:Option.1C.assertcctld!=null:"Nocountrycodedataisavailable";HTMLCONTROLForms.HTML:Option.1D.assertcctld:"Nocountrycodedataisavailable";3:Give

the

following

code:

public

class

Example{

public

static

void

main(String

args[]

){

int

l=0;

do{

System.out.println(“Doing

it

for

l

is:”+l);

}while(--l>0)

System.out.println(“Finish”);

}

}

Which

well

be

output:

Givethefollowingcode:publicclassExample{publicstaticvoidmain(Stringargs[]){intl=0;do{System.out.println(“Doingitforlis:”+l);}while(--l>0)System.out.println(“Finish”);}}Whichwellbeoutput:HTMLCONTROLForms.HTML:Option.1A.Doingitforlis3HTMLCONTROLForms.HTML:Option.1B.Doingitforlis1HTMLCONTROLForms.HTML:Option.1C.Doingitforlis2HTMLCONTROLForms.HTML:Option.1D.Doingitforlis04:Give

this

class

outline:

class

Example{

private

int

x;

//rest

of

class

body…

}

Assuming

that

x

invoked

by

the

code

java

Example,

which

statement

can

made

x

be

directly

accessible

in

main()

method

of

Example.java?

Givethisclassoutline:classExample{privateintx;//restofclassbody…}AssumingthatxinvokedbythecodejavaExample,whichstatementcanmadexbedirectlyaccessibleinmain()methodofExample.java?HTMLCONTROLForms.HTML:Option.1A.ChangeprivateintxtopublicintxHTMLCONTROLForms.HTML:Option.1B.changeprivateintxtostaticintxHTMLCONTROLForms.HTML:Option.1C.ChangeprivateintxtoprotectedintxHTMLCONTROLForms.HTML:Option.1D.changeprivateintxtofinalintx5:Whichofthefollowingstatementsarenotlegal?HTMLCONTROLForms.HTML:Option.1A.longl=4990;HTMLCONTROLForms.HTML:Option.1B.inti=4L;HTMLCONTROLForms.HTML:Option.1C.doubled=34.4;HTMLCONTROLForms.HTML:Option.1D.doublet=0.9F.6:鉴于Java的特点,它最适合的计算环境是HTMLCONTROLForms.HTML:Option.1A.并行计算环境HTMLCONTROLForms.HTML:Option.1B.分布式计算环境HTMLCONTROLForms.HTML:Option.1C.高强度计算环境HTMLCONTROLForms.HTML:Option.1D.开放式计算环境7:Whatiswrittentothestandardoutputgiventhefollowingstatement:System.out.println(4|7);

Selecttherightanswer:HTMLCONTROLForms.HTML:Option.1A.4HTMLCONTROLForms.HTML:Option.1B.5HTMLCONTROLForms.HTML:Option.1C.6HTMLCONTROLForms.HTML:Option.1D.78:1.

public

class

X

{

2.

public

object

m

()

{

3.

object

o

=

new

float

(3.14F);

4.

object

[]

oa

=

new

object

[1];

5.

oa[0]=

o;

6.

o

=

null;

7.

oa[0]

=

null;

8.return

o;

9.

}

10.}

When

is

the

float

object

created

in

line

3,

eligible

for

garbage

collection?

1.publicclassX{2.publicobjectm(){3.objecto=newfloat(3.14F);4.object[]oa=newobject[1];5.oa[0]=o;6.o=null;7.oa[0]=null;8.returno;9.}10.}Whenisthefloatobjectcreatedinline3,eligibleforgarbagecollection?HTMLCONTROLForms.HTML:Option.1A.Justafterline5HTMLCONTROLForms.HTML:Option.1B.Justafterline6HTMLCONTROLForms.HTML:Option.1C.Justafterline7HTMLCONTROLForms.HTML:Option.1D.Justafterline8(thatis,asthemethodreturns)9:Considertheclasshierarchyshownbelow:

classFourWheelerimplementsDrivingUtilities

classCarextendsFourWheeler

classTruckextendsFourWheeler

classBusextendsFourWheeler

classCraneextendsFourWheeler

Considerthefollowingcodebelow:

1.DrivingUtilitiesdu;

2.FourWheelerfw;

3.TruckmyTruck=newTruck();

4.du=(DrivingUtilities)myTruck;

5.fw=newCrane();

6.fw=du;

Whichofthestatementsbelowaretrue?

Choices:HTMLCONTROLForms.HTML:Option.1A.Line4willnotcompilebecauseaninterfacecannotrefertoanobject.HTMLCONTROLForms.HTML:Option.1B.Thecodewillcompileandrun.HTMLCONTROLForms.HTML:Option.1C.Thecodewillnotcompilewithoutanexplicitcastatline6,becausegoingdownthehierarchywithoutcastingisnotallowed.HTMLCONTROLForms.HTML:Option.1D.Thecodewillcompileifweputanexplicitcastatline6butwillthrowanexceptionatruntime.10:Give

the

following

method:

public

void

method(

){

String

a,b;

a=new

String(“hello

world”);

b=new

String(“game

over”);

System.out.println(a+b+”ok”);

a=null;

a=b;

System.out.println(a);

}

In

the

absence

of

compiler

optimization,

which

is

the

earliest

point

the

object

a

refered

is

definitely

elibile

to

be

garbage

collection.

Givethefollowingmethod:publicvoidmethod(){Stringa,b;a=newString(“helloworld”);b=newString(“gameover”);System.out.println(a+b+”ok”);a=null;a=b;System.out.println(a);}Intheabsenceofcompileroptimization,whichistheearliestpointtheobjectareferedisdefinitelyelibiletobegarbagecollection.HTMLCONTROLForms.HTML:Option.1A.beforeline5HTMLCONTROLForms.HTML:Option.1B.beforeline6HTMLCONTROLForms.HTML:Option.1C.beforeline7HTMLCONTROLForms.HTML:Option.1D.beforeline911:What

will

happen

when

you

attempt

to

compile

and

run

the

following

code?

public

class

Static

{

static

{

int

x

=

5;

}

static

int

x,y;

public

static

void

main(String

args[])

{

x--;

myMethod();

System.out.println(x

+

y

+

++x);

}

public

static

void

myMethod()

{

y

=

x++

+

++x;

}

}

Choices:

Whatwillhappenwhenyouattempttocompileandrunthefollowingcode?publicclassStatic{static{intx=5;}staticintx,y;publicstaticvoidmain(Stringargs[]){x--;myMethod();System.out.println(x+y+++x);}publicstaticvoidmyMethod(){y=x+++++x;}}Choices:HTMLCONTROLForms.HTML:Option.1A.prints:2HTMLCONTROLForms.HTML:Option.1B.prints:3HTMLCONTROLForms.HTML:Option.1C.prints:7HTMLCONTROLForms.HTML:Option.1D.prints:812:What

will

be

the

result

of

executing

the

following

code?

public

static

void

main(String

args[])

{

char

digit

=

'a';

for

(int

i

=

0;

i

<

10;

i++)

{

switch

(digit)

{

case

'x'

:

{

int

j

=

0;

System.out.println(j);

}

default

:

{

int

j

=

100;

System.out.println(j);

}

}

}

int

i

=

j;

System.out.println(i);

}

Choices:

Whatwillbetheresultofexecutingthefollowingcode?publicstaticvoidmain(Stringargs[]){chardigit='a';for(inti=0;i<10;i++){switch(digit){case'x':{intj=0;System.out.println(j);}default:{intj=100;System.out.println(j);}}}inti=j;System.out.println(i);}Choices:HTMLCONTROLForms.HTML:Option.1A.100willbeprinted11times.HTMLCONTROLForms.HTML:Option.1B.Thecodewillnotcompilebecausethevariableicannotbedeclaredtwicewithinthemain()method.HTMLCONTROLForms.HTML:Option.1C.Thecodewillnotcompilebecausethevariablejcannotbedeclaredtwicewithintheswitchstatement.HTMLCONTROLForms.HTML:Option.1D.Noneofthese.13:软件生命周期的瀑布模型把软件项目分为3个阶段、8个子阶段,以下哪一个是正常的开发顺序?HTMLCONTROLForms.HTML:Option.1A.计划阶段、开发阶段、运行阶段HTMLCONTROLForms.HTML:Option.1B.设计阶段、开发阶段、编码阶段HTMLCONTROLForms.HTML:Option.1C.设计阶段、编码阶段、维护阶段HTMLCONTROLForms.HTML:Option.1D.计划阶段、编码阶段、测试阶段14:设有变量说明语句inta=1,b=0;

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

switch(a)

{

case1:

switch(b)

{

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

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

}

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

}

printf("\n");HTMLCONTROLForms.HTML:Option.1A.**0**HTMLCONTROLForms.HTML:Option.1B.**0****2**HTMLCONTROLForms.HTML:Option.1C.**0****1****2**HTMLCONTROLForms.HTML:Option.1D.有语法错误15:What

will

happen

when

you

attempt

to

compile

and

run

the

following

code?

class

Base

{

int

i

=

99;

public

void

amethod()

{

System.out.println("Base.amethod()");

}

Base()

{

amethod();

}

}

public

class

Derived

extends

Base

{

int

i

=

-1;

public

static

void

main(String

argv[])

{

Base

b

=

new

Derived();

System.out.println(b.i);

b.amethod();

}

public

void

amethod()

{

System.out.println("Derived.amethod()");

}

}

Choices:

Whatwillhappenwhenyouattempttocompileandrunthefollowingcode?classBase{inti=99;publicvoidamethod(){System.out.println("Base.amethod()");}Base(){amethod();}}publicclassDerivedextendsBase{inti=-1;publicstaticvoidmain(Stringargv[]){Baseb=newDerived();System.out.println(b.i);b.amethod();}publicvoidamethod(){System.out.println("Derived.amethod()");}}Choices:HTMLCONTROLForms.HTML:Option.1A.Derived.amethod()-1Derived.amethod()HTMLCONTROLForms.HTML:Option.1B.Derived.amethod()99HTMLCONTROLForms.HTML:Option.1C.CompiletimeerrorHTMLCONTROLForms.HTML:Option.1D.Derived.amethod()简答题16:写一个方法,删除JAVA源文件中的注释,17:是否可以继承String类?18:写一个程序做低于256位整数的运算,并有如下输出:

比如输入:12,23输出:

12

*23

36

24

27619:abstractclassName{

privateStringname;

publicabstractbooleanisStupidName(Stringname){}

}

这有何错误?20:hibernate有那些抓取策略?21:请问你在什么情况下会在你的JAVA代码中使用可序列化?为什么放到HttpSession中的对象必须要是可序列化的?22:说明Jsp中errorPage的作用,应用范围。23:Overload和Override的区别。Overloaded的方法是否可以改变返回值的类型?24:两个对象值相同(x.equals(y)==true),但却可有不同的hashcode,这句话对不对?25:耶稣有13个门徒,其中有一个就是出卖耶稣的叛徒,请用排除法找出这位叛徒:13人围坐一圈,从第一个开始报号:1,2,3,1,2,3……,凡是报到“3”就退出圈子,最后留在圈内的人就是出卖耶稣的叛徒,请找出它原来的序号。

模块三知识能力试题答案一、名词解释1、饭店人员培训一个有用的饭店培训可以理解为一个系统过程。在这个过程中企业的人力资源通过指导和实践活动获得知识、培养技能、改变态度、增进能力,从而提高企业整体的绩效。2、培训需求分析需求分析就是通过对酒店及其成员的现有状况与理想工作状况的差距进行分析,来确定是否需要培训以及培训的内容的系统方法。需求分析具有很强的指导性,它既是确定培训目标、设计培训计划的前提,也是进行培训评估的基础。3、交叉培训又称工作轮换,指让受训人有计划地从一个岗位换到另一个岗位,以使员工熟悉不同部门或岗位的业务,具备多项专业技能。4、TSFC四步培训法具有科学性的“TSFC四步培训法”,即准备(Tellyou)课前准备并告知学员培训的相关知识和技能示范(Showyou)示范和重复培训步骤练习(Followme)学员在培训师指导下对所学知识和技能进行练习。检查与跟踪(Checkyou)对学员完成的任务进行检查并给予积极支持和及时反馈。二、填空题1、培训评估主要从(反应)(学习)(行为)(结果)四方面进行。2、培训目标主要分为:技能培训、知识传授和(增强能力)。3、培训的特点是(针对性)(多样性)(速成性)(持续性)(强化外语培训)。4、培训应遵循(成人学习)原则。三、单项选择题师傅带徒弟这种培训方式的开发主体是(

D

)。

A.师傅

B.徒弟

C.学校

D.企业或单位在欧美、日本等国家盛行的,不经培训或培训不合格不得进入岗位的培训形式是(C

)。

A.在职培训

B.非在职培训

C.岗前培训

D.脱产培训下列哪项不是在培训过程中教室布置的决定因素(D)。A.参训人员人数B.培训活动形式C.课堂控制程度D.学员参与程度4.下列哪项不是培训的“Learn”教育方法的内容:(E)A.多讨论B.重视经历C.积极参与D.相关内容E.游戏5.培训目标是学员接受培训后所表现出来的工作能力水平的描述。培训目标的要求不包括:(B)A.清楚B.简单C.具体D.可衡量6.培训过程中最复杂最费时的阶段是:(D)A.培训评估B.培训需求分析C.培训设计D.制作培训资料7.“你喜欢这样的培训吗?”“你对培训师的表现是否满意?”这属于培训评估方面的(A)层面。A.反应B.学习C.行为D.结果8.OJT指的是(B)A.职前培训B.在职培训C.脱岗培训D.交叉培训9.提出一些工作中有代表性的问题,并假设几种解决问题的方法,让员工讨论和选择正确答案,并申明理由,并由指导教师做出综合分析的一种方法是:(D)A.角色扮演B.案例分析C.操作示范D.情景模拟四、简答题1、描述角色扮演法的实施过程和优缺点。是让员工模拟实际情景,扮演各种角色进行训练的趣味性很强的一种方法,从而改进和提高自己在职位上表现出的态度与行为。这种培训方法多用于改善人际关系的训练。主管与属员之间,销售人员、服务人员与客人之间,领班与服务员之间,由于所在职位不同,感受与态度也常不同。因此,角色扮演法的做法是:让员工扮演与自己工作相关的另一职位上的角色,并进行模拟,亲自体验对方的感受,消除员工之间、员工与管理者之间、管理者之间的隔阂、以达到相互沟通与理解的培训目的。其缺点在于其情景的人为性,降低了情景的现实性;角色扮演更强调个人,不重视集体,不利于培养受训者的团队精神。2、简述培训的意义。1.培训对饭店的意义(1)适应环境的变化,满足市场竞争的需要(2)增强企业稳定性和凝聚力。(3)有效减低损耗和劳动成本(4)全面提高劳动效率,提升服务质量(5)改善饭店“非专业化”的现状,提升饭店形象。2.培训对员工的意义(1)培训可以提高员工素质(2)增强员工的自信心和安全感。(3)为员工晋升创造条件,促进职业发展。3、说明培训需求分析的层次和内容。(1)组织分析(OrganizationAnalysis)确定培训需求的第一步是把饭店作为一个整体进行检查,分析饭店的组织目标和经营目的,来确定完整的、有针对性的培训需求。要通盘考虑哪些技能和体系能最有

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论