計算機ネットワーク I（ Java 編）
・テスト解答用紙 (’08 年 8 月 1 日)

学籍番号

氏名

（ 4,4,4,4 ）

I.
(i).

(A), (B)(ii).

(A), (D)(iii).

(C)

(iv).

(B)
（ 4,4 ）

II.

(D)

(i).

(ii).

(C)

III.

(5,5)
(i).

str = str.substring(3, 7);(ii).

IndexOutOfBoundsException（ 4,4,4,4 ）

IV.
(i).

extends JApplet implemnts ActionListener(ii).

button1.addActionListener(this);button2.addActionListener(this);(iii-1).

e.getSource() == button1(iii-2).

(iv-1).

(iv-2).

(裏面に続く)e.getSource() == button2

new ActionListener() {public void actionPerformed(ActionEvent e) {x--;label.setText(""+x);}}
new ActionListener() {public void actionPerformed(ActionEvent e) {x++;label.setText(""+x);}}授業・テストの感想.................................................................................................
.................................................................................................
.................................................................................................
.................................................................................................
.................................................................................................
.................................................................................................
.................................................................................................
.................................................................................................
.................................................................................................
.................................................................................................
.................................................................................................
.................................................................................................
.................................................................................................
.................................................................................................
.................................................................................................
.................................................................................................
.................................................................................................
.................................................................................................
.................................................................................................
.................................................................................................
.................................................................................................
.................................................................................................
.................................................................................................
.................................................................................................
.................................................................................................
.................................................................................................