第八章:數組html
書上講的很明白。git
問題1:PP8.5方差計算錯誤,如圖編程
問題1解決方案:當時犯了「差一」的錯誤,致使累加出錯,結果出錯。解決方法爲去掉莫名其妙加上去的-1
。數組
(statistics.sh腳本的運行結果截圖)此次有一點問題,statistic腳本不見了,因此截圖數據有很大出入。數據結構
錯題1: Which of the following are true statements about check boxes?
正確答案:A .they may be checked or unchecked
B .radio buttons are a special kind of check boxes
C .they are Java components
D .you can control whether or not they will be visible 都是
緣由:emmm都是對的。編程語言
錯題2:As in the other members of the C family of languages (C, C++, C#), Java interprets a zero value as false and a non-zero value as true.
正確答案:B .false
緣由:錯選爲true,其實這二者之間並不徹底相同,JAVA的true和false並不能徹底用零和非零表明。oop
錯題3:In Java, selection statements consist of the if and if-else statements.
正確答案:B .false
緣由:理解錯誤,理解爲條件語句包括if和if-else,但其實應理解爲if和if-else組成了條件語句,因此還應該加上switch語句。學習
錯題4:When comparing any primitive type of variable, == should always be used to test to see if two values are equal.
正確答案:B .false
緣由:對於浮點型不能這樣使用。.net
錯題5:An if statement may or may not have an else clause, but an else clause must be part of an if statement.
正確答案:A .true
緣由: 選錯了,原本想選B的。命令行
錯題6:Given the following code, where x = 0, what is the resulting value of x after the for-loop terminates?
for (int i=0;i<5;i++)
x += i;
正確答案:D .10
緣由: 五次循環——0+1+2+3+4=10
錯題7:How many times will the following loop iterate?
int x = 10;
do {
System.out.println(x);
x--;
} while (x > 0);
正確答案:11次
緣由:,由於是do語句,卻少算了第一次。
代碼行數(新增/累積) | 博客量(新增/累積) | 學習時間(新增/累積) | 重要成長 | |
---|---|---|---|---|
目標 | 5000行 | 30篇 | 400小時 | |
第五週 | 260/1549 | 1/9 | 15/110 | 瞭解到預習的重要性 |
第六週 | 358/1907 | 2/11 | 15/125 | 沒啥 |
第三週 | 311/815 | 2/7 | 25/65 | 無 |
第四周 | 474/1289 | 1/8 | 30/95 | 抗...抗壓能力增強? |
20172329王文彬
CSS作得好,至少比我好,錯題分析詳細得當,教材看的較爲深刻,而我老是提不出什麼重大的問題,多是由於更注重代碼自己。
20172319唐才銘
不只有王文彬同窗的以上優勢,並且教材看得可能更深刻,但感受居中格式用的有點多。