问题 填空题

以下程序的功能是:将一维组A中的100个元素分别赋给二维数组B的每个元素并打印出来,要求把A(1)到A(10)依次赋给B(1,1)到B(1,10),把A(11)到A(20)依次赋给B(2,1)到B(2,10),……,把A(91)到A (100)依次赋给B(10,1)到B(10,10)。请填空。Option Base 1Private Sub Form_Click()Dim i As Integer,J As IntegerDim A(1 To 100)As IntegerDim B(1 To 10,1 To 10)As IntegerFor i=1 To 100A(i)=Int(Rnd*100)Next iFor i=1 To 【 】 For J=1 To【 】B(i,j)= 【 】Print B(i,j);Next jPrintNext i End Sub

答案

参考答案:A0,A0,A((i-A)*A0+j)

解析:根据题意,在嵌套循环中,i为外循环变量,循环次数为10次,控制数组B的行值,j为内循环变量,循环次数为10次,决定着数组B的列值,然后根据数组下标的关系,可写出(i-1)*10+j表达式,从而相应地对数组B进行赋值。二维数组B的元素与一维数组A的元素存在这样的对应关系:B(i,j)=A((i-1)*10+j),如B(1,1)=A(1)、B(2,1)=A(11)、B (10,1)=A(91)。

解答题
完形填空

The sound of the rain hitting the windows wakes me up and it sounds just exactly as it did 15 years ago, which reminded me of my girlhood.

It was my second day of ____36___ and it was raining heavily. I couldn’t __37_____ the habit I had at home, so I fell asleep right at my ___38____. I woke up to find myself not in the classroom but carried on Dad’s back. We were ____39__ home. It was the last time I felt __40____ to him.

After that, he never carried me or hugged me as other fathers did to their children. I was not bothered by this ___41____. I was proud of it, for I felt _____42____ and “grown up”. However, there were times when I felt depressed by not having sought __43___ from him.

One day, I was writing Chinese characters as homework. I hated doing this more than anything. Dad came and stood behind me for a moment, __44____ me scratching(乱涂)the paper. Then he said, “ This kind of writing needs ___45_____. Your writing is not strong enough. Press harder.”

I followed his ____46_____ for the next two weeks, but __47____ I could see little improvement, I followed my own method---the __48___ way. His advice didn’t improve my writing but our __49____. As I grew older, I found out that he had finished his ___50___ in Grade 6, which was the highest grade in town then, so he was considered to be a ___51___. People used to ask him to write something to put on the walls, but he never felt very useful.

He often said to me, “As you can see, this family is going to count on you. We are __52__ to improve you anything for your future. You have to get _53____ to change the life for yourself.”

As a result of his __54___, I have __55___ it through high school and through college.

36. A. graduation   B. employment      C. college       D. school

37. A. form    B. resist   C. follow D. break

38. A. dormitory    B. door   C. desk    D. bed

39. A. at  B. already       C. beyond       D. halfway

40. A. close    B. near    C. happy D. relaxed

41. A. gap      B. thought      C. action D. accident

42. A. lonely   B. depressed   C. independent       D. comfortable

43. A. comfort       B. help    C. support      D. explanation

44. A. helping B. directing    C. watching    D. blaming

45. A. skill     B. patience     C. time    D. practice

46. A. introduction B. manner      C. spirit   D. advice

47. A. even if  B. while  C. as       D. though

48. A. difficult       B. slow   C. efficient     D. fast

49. A. relationship  B. friendship   C. thought      D. life

50. A. schooling     B. life     C. hope   D. expectation

51. A. writer   B. scholar       C. scientist      D. specialist

52. A. tired     B. glad    C. useless       D. ready

53. A. an educationB. a rich boyfriend C. a well-paid job   D. a good writing

54. A. help     B. expectations       C. examination       D. watch

55. A. succeeded    B. got     C. made  D. found