常州酌乒文化传播有限公司

當前位置:

JAVA認證考試專業(yè)語言模擬試題小測天天練5

發(fā)表時間:2015/6/8 11:32:55 來源:互聯(lián)網(wǎng) 點擊關(guān)注微信:關(guān)注中大網(wǎng)校微信
關(guān)注公眾號

Explanation:

The length of the short data is 16 bits. The range of short is

The length of the short data is 16 bits. The range of short is

Correct Answer: D 9 of 60

Question: 10

Which one of the following ranges of byte is correct?

Correct Answer: B 10 of 60

Question: 11

WWW.CN-MPA.COM 2004-5-27 22:14:08

Given the following fragment of code, what are results of i and j after execution?

int i = 1;

int j;

j = i++;

A. 1, 1

B. 1, 2

C. 2, 1

D. 2, 2

Explanation:

Pay attention to the position of the operator ++. In this question, first j is assigned to 1, then the value of i is added to 2.

Correct Answer: C 11 of 60

Question: 12

Which of the following statements are true?

A. >> is the arithmetic right shift operator.

B. >> is the logical right shift operator.

C. >>> is the arithmetic right shift operator.

D. >>> is the logical right shift operator.

Explanation:

There are two right shift operators in Java. They are >> and >>>. >> is the arithmetic(signed) right shift operator and >>> is the logical(unsigned) right shift operator.

Correct Answer: A,D 12 of 60

Question: 13

Which of the following assignments are legal?

A. float a = 2.0

B. double b = 2.0

C. int c = 2

D. long d = 2

Explanation:

In Java the default data type of floating point is double, not float. The assignment from double to float requires an explicit cast.

Correct Answer: B,C,D 13 of 60

編輯推薦:

JAVA認證考試報考指南 / 更多JAVA考試模擬試題


(責任編輯:)

2頁,當前第1頁  第一頁  前一頁  下一頁
最近更新 考試動態(tài) 更多>
买车| 曲靖市| 西畴县| 瓦房店市| 敦化市| 喀喇沁旗| 个旧市| 滁州市| 通道| 三穗县| 敦化市| 宣汉县| 宿松县| 洪湖市| 英吉沙县| 当涂县| 长阳| 馆陶县| 措勤县| 无锡市| 三门峡市| 呼伦贝尔市| 清水县| 柏乡县| 沙河市| 锦屏县| 宜丰县| 富阳市| 屯门区| 玉田县| 临泽县| 阿合奇县| 成都市| 沈阳市| 青河县| 聂拉木县| 武汉市| 张家口市| 开封市| 阳谷县| 宜州市|