A but ;
B but also ;
C as well as
第1题:
importjava.awt.*;publicclassXextendsFrame{publicstaticvoidmain(Stringargs){Xx=newX();x.pack();x.setVisible(true);}publicX(){setLayout(newBordrLayout());Panelp=newPanel();add(p,BorderLayout.NORTH);Buttonb=newButton(North”);p.add(b):Buttonb=newButton(South”);add(b1,BorderLayout.SOUTH):}}Whichtwostatementsaretrue?()
A.Thebuttonslabeled“North”and“South”willhavethesamewidth.
B.Thebuttonslabeled“North”and“South”willhavethesameheight.
C.Theheightofthebuttonlabeled“North”canveryiftheFrameisresized.
D.Theheightofthebuttonlabeled“South”canveryiftheFrameisresized.
E.Thewidthofthebuttonlabeled“North”isconstanteveniftheFrameisresized.
F.Thewidthofthebuttonlabeled“South”isconstanteveniftheFrameisresized.
第2题:
Given:And MainClass exists in the /apps/com/company/application directory. Assume the CLASSPATHenvironment variable is set to "." (current directory). Which two java commands entered at the command line will run MainClass?()
A.java MainClass if run from the /apps directory
B.java com.company.application.MainClass if run from the /apps directory
C.java -classpath /apps com.company.application.MainClass if run from any directory
D.java -classpath . MainClass if run from the /apps/com/company/application directory
E.java -classpath /apps/com/company/application:. MainClass if run from the /apps directory
F.java com.company.application.MainClass if run from the /apps/com/company/application directory
第3题:
第4题:
A.Direction d = NORTH;
B.Nav.Direction d = NORTH;
C.Direction d = Direction.NORTH;
D.Nav.Direction d = Nav.Direction.NORTH;
第5题:
If a weather bulletin shows the center of a low pressure system to be 100 miles due east of you, what winds can you expect in the Southern Hemisphere? ______.
A.South-southwesterly
B.North-northwesterly
C.South-southeasterly
D.North-northeasterly
第6题:
33、画树枝朝上的为鹿角枝,朝下的我们称为()枝。 Tree branches pointing upward are antler branches, and the downward-pointing branches are () branches.