北京達(dá)內(nèi)科技 Java培訓(xùn)講師TSFC四步培訓(xùn)法_第1頁
北京達(dá)內(nèi)科技 Java培訓(xùn)講師TSFC四步培訓(xùn)法_第2頁
北京達(dá)內(nèi)科技 Java培訓(xùn)講師TSFC四步培訓(xùn)法_第3頁
北京達(dá)內(nèi)科技 Java培訓(xùn)講師TSFC四步培訓(xùn)法_第4頁
北京達(dá)內(nèi)科技 Java培訓(xùn)講師TSFC四步培訓(xùn)法_第5頁
已閱讀5頁,還剩18頁未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡介

選擇題1:在軟件生命周期中,下列哪個(gè)說法是不準(zhǔn)確的?HTMLCONTROLForms.HTML:Option.1A.軟件生命周期分為計(jì)劃、開發(fā)和運(yùn)行三個(gè)階段HTMLCONTROLForms.HTML:Option.1B.在計(jì)劃階段要進(jìn)行問題焉醛和需求分析HTMLCONTROLForms.HTML:Option.1C.在開發(fā)后期要進(jìn)行編寫代碼和軟件測試HTMLCONTROLForms.HTML:Option.1D.在運(yùn)行階段主要是進(jìn)行軟件維護(hù)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的特點(diǎn),它最適合的計(jì)算環(huán)境是HTMLCONTROLForms.HTML:Option.1A.并行計(jì)算環(huán)境HTMLCONTROLForms.HTML:Option.1B.分布式計(jì)算環(huán)境HTMLCONTROLForms.HTML:Option.1C.高強(qiáng)度計(jì)算環(huán)境HTMLCONTROLForms.HTML:Option.1D.開放式計(jì)算環(huán)境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:軟件生命周期的瀑布模型把軟件項(xiàng)目分為3個(gè)階段、8個(gè)子階段,以下哪一個(gè)是正常的開發(fā)順序?HTMLCONTROLForms.HTML:Option.1A.計(jì)劃階段、開發(fā)階段、運(yùn)行階段HTMLCONTROLForms.HTML:Option.1B.設(shè)計(jì)階段、開發(fā)階段、編碼階段HTMLCONTROLForms.HTML:Option.1C.設(shè)計(jì)階段、編碼階段、維護(hù)階段HTMLCONTROLForms.HTML:Option.1D.計(jì)劃階段、編碼階段、測試階段14:設(shè)有變量說明語句inta=1,b=0;

則執(zhí)行以下程序段的輸出結(jié)果為()。

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.有語法錯(cuò)誤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:寫一個(gè)方法,刪除JAVA源文件中的注釋,17:是否可以繼承String類?18:寫一個(gè)程序做低于256位整數(shù)的運(yùn)算,并有如下輸出:

比如輸入:12,23輸出:

12

*23

36

24

27619:abstractclassName{

privateStringname;

publicabstractbooleanisStupidName(Stringname){}

}

這有何錯(cuò)誤?20:hibernate有那些抓取策略?21:請(qǐng)問你在什么情況下會(huì)在你的JAVA代碼中使用可序列化?為什么放到HttpSession中的對(duì)象必須要是可序列化的?22:說明Jsp中errorPage的作用,應(yīng)用范圍。23:Overload和Override的區(qū)別。Overloaded的方法是否可以改變返回值的類型?24:兩個(gè)對(duì)象值相同(x.equals(y)==true),但卻可有不同的hashcode,這句話對(duì)不對(duì)?25:耶穌有13個(gè)門徒,其中有一個(gè)就是出賣耶穌的叛徒,請(qǐng)用排除法找出這位叛徒:13人圍坐一圈,從第一個(gè)開始報(bào)號(hào):1,2,3,1,2,3……,凡是報(bào)到“3”就退出圈子,最后留在圈內(nèi)的人就是出賣耶穌的叛徒,請(qǐng)找出它原來的序號(hào)。

模塊三知識(shí)能力試題答案一、名詞解釋1、飯店人員培訓(xùn)一個(gè)有用的飯店培訓(xùn)可以理解為一個(gè)系統(tǒng)過程。在這個(gè)過程中企業(yè)的人力資源通過指導(dǎo)和實(shí)踐活動(dòng)獲得知識(shí)、培養(yǎng)技能、改變態(tài)度、增進(jìn)能力,從而提高企業(yè)整體的績效。2、培訓(xùn)需求分析需求分析就是通過對(duì)酒店及其成員的現(xiàn)有狀況與理想工作狀況的差距進(jìn)行分析,來確定是否需要培訓(xùn)以及培訓(xùn)的內(nèi)容的系統(tǒng)方法。需求分析具有很強(qiáng)的指導(dǎo)性,它既是確定培訓(xùn)目標(biāo)、設(shè)計(jì)培訓(xùn)計(jì)劃的前提,也是進(jìn)行培訓(xùn)評(píng)估的基礎(chǔ)。3、交叉培訓(xùn)又稱工作輪換,指讓受訓(xùn)人有計(jì)劃地從一個(gè)崗位換到另一個(gè)崗位,以使員工熟悉不同部門或崗位的業(yè)務(wù),具備多項(xiàng)專業(yè)技能。4、TSFC四步培訓(xùn)法具有科學(xué)性的“TSFC四步培訓(xùn)法”,即準(zhǔn)備(Tellyou)課前準(zhǔn)備并告知學(xué)員培訓(xùn)的相關(guān)知識(shí)和技能示范(Showyou)示范和重復(fù)培訓(xùn)步驟練習(xí)(Followme)學(xué)員在培訓(xùn)師指導(dǎo)下對(duì)所學(xué)知識(shí)和技能進(jìn)行練習(xí)。檢查與跟蹤(Checkyou)對(duì)學(xué)員完成的任務(wù)進(jìn)行檢查并給予積極支持和及時(shí)反饋。二、填空題1、培訓(xùn)評(píng)估主要從(反應(yīng))(學(xué)習(xí))(行為)(結(jié)果)四方面進(jìn)行。2、培訓(xùn)目標(biāo)主要分為:技能培訓(xùn)、知識(shí)傳授和(增強(qiáng)能力)。3、培訓(xùn)的特點(diǎn)是(針對(duì)性)(多樣性)(速成性)(持續(xù)性)(強(qiáng)化外語培訓(xùn))。4、培訓(xùn)應(yīng)遵循(成人學(xué)習(xí))原則。三、單項(xiàng)選擇題師傅帶徒弟這種培訓(xùn)方式的開發(fā)主體是(

D

)。

A.師傅

B.徒弟

C.學(xué)校

D.企業(yè)或單位在歐美、日本等國家盛行的,不經(jīng)培訓(xùn)或培訓(xùn)不合格不得進(jìn)入崗位的培訓(xùn)形式是(C

)。

A.在職培訓(xùn)

B.非在職培訓(xùn)

C.崗前培訓(xùn)

D.脫產(chǎn)培訓(xùn)下列哪項(xiàng)不是在培訓(xùn)過程中教室布置的決定因素(D)。A.參訓(xùn)人員人數(shù)B.培訓(xùn)活動(dòng)形式C.課堂控制程度D.學(xué)員參與程度4.下列哪項(xiàng)不是培訓(xùn)的“Learn”教育方法的內(nèi)容:(E)A.多討論B.重視經(jīng)歷C.積極參與D.相關(guān)內(nèi)容E.游戲5.培訓(xùn)目標(biāo)是學(xué)員接受培訓(xùn)后所表現(xiàn)出來的工作能力水平的描述。培訓(xùn)目標(biāo)的要求不包括:(B)A.清楚B.簡單C.具體D.可衡量6.培訓(xùn)過程中最復(fù)雜最費(fèi)時(shí)的階段是:(D)A.培訓(xùn)評(píng)估B.培訓(xùn)需求分析C.培訓(xùn)設(shè)計(jì)D.制作培訓(xùn)資料7.“你喜歡這樣的培訓(xùn)嗎?”“你對(duì)培訓(xùn)師的表現(xiàn)是否滿意?”這屬于培訓(xùn)評(píng)估方面的(A)層面。A.反應(yīng)B.學(xué)習(xí)C.行為D.結(jié)果8.OJT指的是(B)A.職前培訓(xùn)B.在職培訓(xùn)C.脫崗培訓(xùn)D.交叉培訓(xùn)9.提出一些工作中有代表性的問題,并假設(shè)幾種解決問題的方法,讓員工討論和選擇正確答案,并申明理由,并由指導(dǎo)教師做出綜合分析的一種方法是:(D)A.角色扮演B.案例分析C.操作示范D.情景模擬四、簡答題1、描述角色扮演法的實(shí)施過程和優(yōu)缺點(diǎn)。是讓員工模擬實(shí)際情景,扮演各種角色進(jìn)行訓(xùn)練的趣味性很強(qiáng)的一種方法,從而改進(jìn)和提高自己在職位上表現(xiàn)出的態(tài)度與行為。這種培訓(xùn)方法多用于改善人際關(guān)系的訓(xùn)練。主管與屬員之間,銷售人員、服務(wù)人員與客人之間,領(lǐng)班與服務(wù)員之間,由于所在職位不同,感受與態(tài)度也常不同。因此,角色扮演法的做法是:讓員工扮演與自己工作相關(guān)的另一職位上的角色,并進(jìn)行模擬,親自體驗(yàn)對(duì)方的感受,消除員工之間、員工與管理者之間、管理者之間的隔閡、以達(dá)到相互溝通與理解的培訓(xùn)目的。其缺點(diǎn)在于其情景的人為性,降低了情景的現(xiàn)實(shí)性;角色扮演更強(qiáng)調(diào)個(gè)人,不重視集體,不利于培養(yǎng)受訓(xùn)者的團(tuán)隊(duì)精神。2、簡述培訓(xùn)的意義。1.培訓(xùn)對(duì)飯店的意義(1)適應(yīng)環(huán)境的變化,滿足市場競爭的需要(2)增強(qiáng)企業(yè)穩(wěn)定性和凝聚力。(3)有效減低損耗和勞動(dòng)成本(4)全面提高勞動(dòng)效率,提升服務(wù)質(zhì)量(5)改善飯店“非專業(yè)化”的現(xiàn)狀,提升飯店形象。2.培訓(xùn)對(duì)員工的意義(1)培訓(xùn)可以提高員工素質(zhì)(2)增強(qiáng)員工的自信心和安全感。(3)為員工晉升創(chuàng)造條件,促進(jìn)職業(yè)發(fā)展。3、說明培訓(xùn)需求分析的層次和內(nèi)容。(1)組織分析(OrganizationAnalysis)確定培訓(xùn)需求的第一步是把飯店作為一個(gè)整體進(jìn)行檢查,分析飯店的組織目標(biāo)和經(jīng)營目的,來確定完整的、有針對(duì)性的培訓(xùn)需求。要通盤考慮哪些技能和體系能最有

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論