2. I missed a _____________ opportunity to become a millionaire.
A. gold B. golden C. handsome D. generous
1. --- Do you understand? --- Yeah, we’ve ________ it
A. got B. gained C. grasped D. guessed
3.單項選擇
2.詞形變化
1) No pains, no ____________ (gain).
2) _____________ (general) speaking, the more expensive the MP3 player is, the better it is.
3) He is a ____________(gift) musician.
4) The chemicals are ___________________ (harm) to the environment.
5) The guilty man was ____________ (hang) for murder
6) As the weeks passed, I ____________ (gradual) accepted the idea of him leaving.
7) Money is not the key to ______________ (happy).
8) Vitamins are important for healthy ___________ (grow).
9) I was looking forward to working under her expert ____________ (guide).
10) Ducks, _____________ (goose), chickens and also pigeons were kept on the farm.
1.單詞拼寫
1) We parked our car in an underground g__________ near the hotel.
2) I feel really g______________ at forgetting her birthday again.
3) After g_______ from high school, Jayne went to engineering college.
4) The fight started when one of the fans made rude g_______________ at a player.
5) My friend offered to pay my plane fare, which was very g___________ of him.
6) The f__________ (葬禮) will be held at St. Martin’s Church.
7) I helped him choose the f___________ (家具) for his house.
8) The boy likes eating h____________ (漢堡包) in KFC.
9) The g_______________ (政府) has promised to cut taxes.
10) Of all the courses, we like g_______________ (地理) lessons best.
程序每執(zhí)行一次循環(huán)體,循環(huán)條件中涉及到的變量就會發(fā)生改變,正在步步逼近滿足跳出循環(huán)體的條件。
程序中最忌“死循環(huán)”。所謂的“死循環(huán)”就是指該循環(huán)條件永遠成立,沒有跳出循環(huán)體的機會。
請看我們用WHILE循環(huán)實現(xiàn)1到100累加為例,做一下說明:
“1+2+……+100”
部分程序如下:
sum = 0
i =1
WHILE i <= 100
sum = sum+ i
i=i+1
WEND
這段程序中,循環(huán)的條件是“i <= 100”;因此,一開始i肯定需要一個確定的值。前面的
“i = 0”這一個語句,在聲明變量i的同時,也為i賦了初始值“1”。這樣,條件 i <= 100 得以成立(因為i為1,所以 條件“i <= 100” 當然成立)。
3.學習了循環(huán)語句的兩種格式,我們來挖掘一下應用循環(huán)語句編寫程序的“條件三要素”。
2.條件語句的主要功能是來實現(xiàn)算法中的條件結構。
因為人們對計算機運算的要求不僅僅是一些簡單的代數(shù)運算,而是經(jīng)常需要計算機按照條件進行分析、比較、判斷,并且按照判斷后的不同情況進行不同的操作和處理。如果是要解決像“判斷一個數(shù)的正負”、“比較數(shù)之間的大小”,“對一組數(shù)進行排序”、“求分段函數(shù)的函數(shù)值”等很多問題,計算機就需要用到條件語句。
湖北省互聯(lián)網(wǎng)違法和不良信息舉報平臺 | 網(wǎng)上有害信息舉報專區(qū) | 電信詐騙舉報專區(qū) | 涉歷史虛無主義有害信息舉報專區(qū) | 涉企侵權舉報專區(qū)
違法和不良信息舉報電話:027-86699610 舉報郵箱:58377363@163.com