题目内容

Whatwillbetheresultofattemptingtocompileandrunthefollowingcode?()publicclassQ6b0c{publicstaticvoidmain(Stringargs[]){inti=4;floatf=4.3;doubled=1.8;intc=0;if(i==f)c++;if(((int)(f+d))==((int)f+(int)d))c+=2;System.out.println(c);}}

A. Thecodewillfailtocompile.
B. 0willbewrittentothestandardoutput.
C. 1willbewrittentothestandardoutput.
D. 2willbewrittentothestandardoutput.
E. 3willbewrittentothestandardoutput.

查看答案
更多问题

GiventhatfileisareferencetoaFileobjectthatrepresentsadirectory,whichcodefragmentswillsucceedinobtainingalistoftheentriesinthedirectory?()

A. Vectorfilelist=((Directory)file).getList();
B. String[]filelist=file.directory();
C. Enumerationfilelist=file.contents();
D. String[]filelist=file.list();
E. Vectorfilelist=(newDirectory(file)).files();

Whichstatementsconcerningtheswitchconstructaretrue?()

Allswitchstatementsmusthaveadefaultlabel.
B. Theremustbeexactlyonelabelforeachcodesegmentinaswitchstatement.
C. Thekeywordcontinuecanneveroccurwithinthebodyofaswitchstatement.
D. Nocaselabelmayfollowadefaultlabelwithinasingleswitchstatement.
E. Acharacterliteralcanbeusedasavalueforacaselabel.

心理健康状态是指个体的认知、情绪、态度和行为功能良好的心理状态。()

思维通常包括动作思维、逻辑思维、创造性思维和()。

A. 发散性思维
B. 逆向思维
C. 形象思维
D. 习惯思维

答案查题题库