网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
单选题
定义枚举如下: public enum Direction{ EAST,SOUTH,WEST,NORTH } 下列正确使用该枚举类型的语句是哪项?()
A
Direction Direction=EAST;
B
Direction direction=Direction.WEST;
C
int a- Direction.NORTH;
D
Direction direction=2;
参考答案
参考解析
解析:
暂无解析
更多 “单选题定义枚举如下: public enum Direction{ EAST,SOUTH,WEST,NORTH } 下列正确使用该枚举类型的语句是哪项?()A Direction Direction=EAST;B Direction direction=Direction.WEST;C int a- Direction.NORTH;D Direction direction=2;” 相关考题
考题
In Trial 9, the electrical force exerted by Sphere Y on Sphere X and the electrical force exerted by Sphere X on Sphere Y were exerted in which direction(s)?A.east; eastB.east; westC.west; westD.west; east
考题
—Which direction were you heading — ()
A、No direction.B、I was heading from east to west.C、I won't answer you.
考题
定义枚举如下:publicenumDirection{EAST,SOUTH,WEST,NORTH}下列正确使用该枚举类型的语句是哪项?()
A.DirectionDirection=EAST;B.Directiondirection=Direction.WEST;C.inta-Direction.NORTH;D.Directiondirection=2;
考题
classNav{11.publicenumDirection{NORTH,SOUTH,EAST,WEST}12.}13.publicclassSprite{14.//insertcodehere15.}Whichcode,insertedatline14,allowstheSpriteclasstocompile?()
A.Directiond=NORTH;B.Nav.Directiond=NORTH;C.Directiond=Direction.NORTH;D.Nav.Directiond=Nav.Direction.NORTH;
考题
请将下列程序的空白处补充完整。Importjava.awt.*;PublicclassEll_4{Publicstaticvoidmain(Stringargs[]){Framef=newFrame(“BorderLayout”);fiadd(“North”,newbuRon(“North”));f.add(“East”,newbutton(“East”));f.add(“West”,newbutton(“West”));f.add(“South”,tf);f.setSize(200,200)fipack();fisetVisible(true);}}
考题
下列程序在Frame中设定BorderLayout布局管理器,选择正确的语句填入程序的横线处。 import java.awt.*; public class ex43 extends Frame { public static void main(String[] args) { ex43 bj = new ex43("BorderLayout"); ______ obj.add("North", new Button("North")); obj.add("South", new Button("Sourth")); obj.add("East", new Button ("East")); obj.add("West", new Button ("West")); obj. add ("Center", new Button ( "Center" ) ); obj.pack(); obj. setVisible (true); } public ex43(String str) { super (str); } }A.obj.setLayout(new BorderLayout());B.setLayout(new Borderkayout());C.setLayout(BorderLayout());D.obj.setLayout(BorderLayout());
考题
The buoy symbol printed on your chart is leaning to the northeast. This indicates ______.A.you should stay to the north or east of the buoyB.you should stay to the west or south of the buoyC.the buoy is a major lighted buoyD.nothing special for navigational purposes
考题
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-southwesterlyB.North-northwesterlyC.South-southeasterlyD.North-northeasterly
考题
If the center of low pressure is due west of you in the Northern Hemisphere, which wind direction should you expect?A.South to westB.South to eastC.West to northD.North to east
考题
In the Northern Hemisphere a wind is said to veer when the wind ______.A.changes direction clockwise, as from north to east, etcB.changes direction counterclockwise, as from south to east, etcC.changes direction violently and erraticallyD.remains constant in direction and speed
考题
In the Northern Hemisphere, when the center of a high pressure system is due east of your position, you can expect winds from the ______.A.south to eastB.north to westC.north to eastD.south to west
考题
In the Northern Hemisphere, if the center of a high pressure area is due west of you, what wind direction would you expect?______.A.South to westB.South to eastC.North to westD.North to east
考题
Tasmania is an island which lies()of the Australian mainland.A、north of the northeastern cornerB、south of the southeastern cornerC、east of the northeastern comerD、west of the southeastern corner
考题
New Zealand is situated about 1, 500 km ()A、north-west of AustraliaB、south-east of AustraliaC、north-east of AustraliaD、south-west of Australia
考题
A Button is positioned in a Frame. Only height of the Button is affected by the Frame while the width is not. Which layout manager should be used?() A、 FlowLayoutB、 CardLayoutC、 North and South of BorderLayoutD、 East and West of BorderLayoutE、 GridLayout
考题
定义枚举如下: public enum Direction{ EAST,SOUTH,WEST,NORTH } 下列正确使用该枚举类型的语句是哪项?() A、Direction Direction=EAST;B、Direction direction=Direction.WEST;C、int a- Direction.NORTH;D、Direction direction=2;
考题
以下是一些C#中的枚举型的定义,其中错误的用法有()。A、public enum var1{Mike=100,Nike=102,Jike}B、public enum var1{Mike=100,Nike,Jike}C、public enum var1{Mike=-1,Nike,Jike}D、public enum var1{Mike,Nike,Jike}
考题
单选题A tropical storm is building strength some distance from your ship. Waves are coming from the east,with periods increasing from 5 seconds to 15 seconds. The swell is from the east. Where was the storm when these new swells were generated? ()A
To the north of youB
To the south of youC
To the east of youD
To the west of you
考题
单选题In the Northern Hemisphere a wind is said to veer when the wind().A
Changes direction clockwise,as from north to east,etcB
Changes direction violently and erraticallyC
Remains constant in direction and speedD
Changes direction counterclockwise,as from south to east,etc
考题
单选题When latitude and longitude are used,these shall be expressed in()(and decimals of a minute if necessary),north or south of the Equator and east or west of Greenwich.A
Fathoms and metersB
Miles and kilometersC
Arc and degreesD
Degrees and minutes
考题
单选题A Button is positioned in a Frame. Only height of the Button is affected by the Frame while the width is not. Which layout manager should be used?()A
FlowLayoutB
CardLayoutC
North and South of BorderLayoutD
East and West of BorderLayoutE
GridLayout
考题
单选题10. class Nav{ 11. public enum Direction { NORTH, SOUTH, EAST, WEST } 12. } 13. public class Sprite{ 14. // insert code here 15. } Which code, inserted at line 14, allows the Sprite class to compile?()A
Direction d = NORTH;B
Nav.Direction d = NORTH;C
Direction d = Direction.NORTH;D
Nav.Direction d = Nav.Direction.NORTH;
考题
单选题class Parent { String one, two; public Parent(String a, String b){ one = a; two = b; } public void print(){ System.out.println(one); } } public class Child extends Parent { public Child(String a, String b){ super(a,b); } public void print(){ System.out.println(one + " to " + two); } public static void main(String arg[]){ Parent p = new Parent("south", "north"); Parent t = new Child("east", "west"); p.print(); t.print(); } } Which of the following is correct?()A
Cause error during compilation. B
south east C
south to north east to west D
south to north east E
south east to west
考题
单选题The buoy symbol printed on your chart is leaning to the northeast. This indicates ().A
you should stay to the north or east of the buoyB
you should stay to the west or south of the buoyC
the buoy is a major lighted buoyD
nothing special for navigational purposes
考题
单选题A SEAMARK,I.E. A BUOY,INDICATING THE NORTH,EAST,SOUTH OR WEST FROM A FIXED POINT,E.G. A WRECK is().A
Entrance buoyB
New buoyC
Port buoyD
Cardinal buoy
考题
单选题______ Pacific Ocean is ______ very large sea to the west of North and South America, and to the east of Asia and Australia.A
The; aB
A; theC
The; theD
A; a
热门标签
最新试卷