问题
填空题
下面VBA程序段运行时,内层循环的循环总次数是______。
For m=0 To 7 step 3
For n=m-1 To m+1
Next n
Next m
答案
参考答案:I
解析: 本题考查的是VBA编程基础、循环结构。外层循环“For m=0 To 7 step 3”从0到7,每运行一次加3,外层循环运行一次,内层循环运行3次,所以3×3=9,内层循环的循环总次数是9次。
下面VBA程序段运行时,内层循环的循环总次数是______。
For m=0 To 7 step 3
For n=m-1 To m+1
Next n
Next m
参考答案:I
解析: 本题考查的是VBA编程基础、循环结构。外层循环“For m=0 To 7 step 3”从0到7,每运行一次加3,外层循环运行一次,内层循环运行3次,所以3×3=9,内层循环的循环总次数是9次。
完形填空。 | |||
We got over 1,000 __1__, faxes, and e-mails from our readers about their New Year's resolutions. Thank you! Many readers are going to work __2__ in school this year. Lots of readers are going to __3__. Some readers said they were going to eat __4__ vegetables. A few readers __5__ they were going to learn a new language. Some __6__ said they were going to exercise more to keep fit. Some __7__ said they were going to study the subjects their children learn at school. They said they __8__ to communicate better with their kids. An old lady said she found a job __9__ a foreign language teacher. She is going to __10__ a teaching job in China next year. | |||
|