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.
程序每执行一次循环体,循环条件中涉及到的变量就会发生改变,正在步步逼近满足跳出循环体的条件。
程序中最忌“死循环”。所谓的“死循环”就是指该循环条件永远成立,没有跳出循环体的机会。
请看我们用WHILE循环实现1到100累加为例,做一下说明:
“1+2+……+100”
部分程序如下:
sum = 0
i =1
WHILE i <= 100
sum = sum+ i
i=i+1
WEND
这段程序中,循环的条件是“i <= 100”;因此,一开始i肯定需要一个确定的值。前面的
“i = 0”这一个语句,在声明变量i的同时,也为i赋了初始值“1”。这样,条件 i <= 100 得以成立(因为i为1,所以 条件“i <= 100” 当然成立)。
3.学习了循环语句的两种格式,我们来挖掘一下应用循环语句编写程序的“条件三要素”。
2.条件语句的主要功能是来实现算法中的条件结构。
因为人们对计算机运算的要求不仅仅是一些简单的代数运算,而是经常需要计算机按照条件进行分析、比较、判断,并且按照判断后的不同情况进行不同的操作和处理。如果是要解决像“判断一个数的正负”、“比较数之间的大小”,“对一组数进行排序”、“求分段函数的函数值”等很多问题,计算机就需要用到条件语句。
湖北省互联网违法和不良信息举报平台 | 网上有害信息举报专区 | 电信诈骗举报专区 | 涉历史虚无主义有害信息举报专区 | 涉企侵权举报专区
违法和不良信息举报电话:027-86699610 举报邮箱:58377363@163.com