第六章:习题课

木婉清2023/12/22

1、

image-20231222110632929

答案

B

源程序文件扩展名是 .java

字节码文件扩展名是 .class

2、

image-20231222110704309

答案

C【存疑】

无符号右移运算符,在 IDEA 中的结果是:536870911【32位八进制】

3、

image-20231222110731560

答案

C

4、

image-20231222110748035

答案

D

5、

image-20231222110802920

答案

D

6、

image-20231222110816650

答案

B

7、

image-20231222110827284

答案

A

8、

image-20231222110900174

答案

D

9、

image-20231222110916720

答案

A

10、

image-20231222110937079

答案

B

11、

image-20231222110955177

答案

B

12、

image-20231222111016832

答案

D

13、

image-20231222111036832

答案

A

14、

image-20231222111055230

答案

B

注:

浮点数据默认 double 类型,如果指定 float 类型,需要在小数后加 f 或 F。

例如:float f = 45.0f;

15、

image-20231222111127922

答案

D

16、

image-20231222111144187

答案

C

17、

image-20231222111159635

答案

B

18、

image-20231222111218760

答案

B

19、

image-20231222111245000

答案

C

20、

image-20231222111302162

答案

B

21、

image-20231222111318563

答案

B

22、

image-20231222111333801

答案

A

23、

image-20231222111349678

答案

A

24、

image-20231222111412162

程序运行结果

C

25、

image-20231222111431925

程序运行结果

D

26、

image-20231222111447180

答案

B

27、

image-20231222111511715

答案

C

28、

image-20231222111536499

答案

A

29、

image-20231222111559375

答案

B

30、

image-20231222111617681

答案

D

31、

image-20231222111641889

答案

C

32、

image-20231222111702608

答案

B

33、

image-20231222111717005

答案

B

34、

image-20231222111736047

答案

A

35、

image-20231222111757239

答案

B

36、

image-20231222111817765

答案

C

37、

image-20231222111844260

答案

D

38、

image-20231222111906002

答案

A

39、

image-20231222111925419

答案

A

40、

image-20231222111945306

答案

D

41、

image-20231222112005693

答案

A

42、

image-20231222112028928

答案

A

43、

image-20231222112043726

答案

B

44、

image-20231222112101295

答案

B

45、

image-20231222112121588

答案

B

46、

image-20231222112140751

答案

D

47、

image-20231222112200106

答案

C

48、

image-20231222112217893

答案

B

49、

image-20231222112233906

答案

B

50、

image-20231222112258180

答案

D

51、

image-20231222112315664

答案

B

52、

image-20231222112333771

答案

D

53、

image-20231222112349285

答案

A

54、

image-20231222112412582

答案

C

55、

image-20231222112433528

答案

A

56、

image-20231222112447929

答案

A

57、

image-20231222112507519

答案

C

58、

image-20231222112527448

答案

B

59、

image-20231222112541823

答案

C

60、

image-20231222112556548

答案

C

61、

image-20231222112614431

答案

B

62、

image-20231222112633241

答案

A

63、

image-20231222112651635

答案

D

64、

image-20231222112708722

答案

D

65、

image-20231222112737249

答案

B

66、

image-20231222112754185

答案

B

67、

image-20231222112810877

答案

B

68、

image-20231222112829339

答案

B

69、

image-20231222112845898

答案

C

70、

image-20231222112903451

答案

C

71、

image-20231222112922229

答案

B

72、

image-20231222112939016

答案

D

73、

image-20231222112958183

答案

D

74、

image-20231222113016757

答案

D

75、

image-20231222113039793

程序运行结果

1.0

1

1.0

0

76、

image-20231222113116886

程序运行结果

sum=110

77、

image-20231222113131901

程序运行结果

false

a=2

b=4

78、

image-20231222113150415

程序运行结果

3

20

6

23

79、

image-20231222113218183

程序运行结果

sum=9

80、

image-20231222113233640

程序运行结果

3 4

7 8

81、

image-20231222113251251

程序运行结果

Inside A's callme()method

Inside B's callme()method

82、

image-20231222113312674

程序运行结果

60 60

40 50

83、

image-20231222113327532

程序运行结果

5.0 3.0

84、

image-20231222113352169

程序运行结果

1:1:1

20:20:30

85、

image-20231222113419428

程序运行结果

数组越界!x[0]:A

x[1]:B

x[2]:C

x[3]😄

86、

image-20231222113457606

程序运行结果

25.0 8.0

87、

image-20231222113528031

程序运行结果

50 30

40 30

88、

image-20231222113610802

程序运行结果

姓名:张三

年龄:20

学校:天职师大

编辑于 2023/12/22 13:57:34