问题 填空题

下面程序的功能是:将数组a中下标值为偶数的元素从小到大排列,其他元素不变。
Dim a(1 To 10),i,j,k
For i=1 To 10
a(i):InputBox("input:")
Next i
For i;1 To 10
Print a(i)
Next i
Print
For i=2 To 10 【14】
For j=i+2 To 10
If 【15】 Then
t=a(i)
a(i)=a(j)
a(j)=t
End If
Next j
Next i
For i=1 To 10
Print a(i)
Next i

答案

参考答案:[14]step 2 [15]a(i)>a(j)

解析: i循环中假定a[i]最小,j循环中和i后面的偶数下标元素进行比较,如果当前元素a[j]比最小元素 a[i]还要小,就交换。而只对偶数下标的元素比较排序,因此循环变量的步长为2,在空[14]处填step 2。捧序顺序是从小到大,因此应该是后面的元素a(j)小于前面的元素a(i)时,两者交换值,因此在空[15]处填a(i)>a(j)。

阅读理解

阅读理解。

    In the United States, children between the ages of five and sixteen are required (要求) to attend school

(go to school). In Australia children between the ages of six and fifteen are required to attend school with

the exception of Tasmania. In Tasmania children attend school until the age of sixteen. Kindergarten is

required in the United States, but not in Australia.

    Australia's four-term school year begins in February with a two-week holiday between terms. The fourth

and last term ends on December 20.The Christmas holiday is also with the end of school and the beginning

of the summer vacation (holidays). The students return to school in February. In the United States, children

have their summer vacation from June until August.

    Australia's primary or elementary school includes grades one through to six. Secondary school consists

of grade seven through to twelve. All secondary students wear uniforms to school. Students in public

schools in the United States do not wear uniforms at school.

    Students in the United States eat a hot lunch at school. Australian students do not.

    In Australia large schools are found in cities along the coast. The small schools are located farther out in

the countryside. A teacher in the country may teach all grades, with only one or two students in a grade.

Students living far from the city attend "Schools of the Air".

    They listen to the teacher on the radio each day when it's time for school. Students have their own books.

They answer questions over the microphone, The teacher asks them to do some homework. The completed

homework is mailed to the teacher. It is discussed over the microphone, corrected and mailed back. In the

United States some children attend school at home. Their parents are their teachers!

1. How old are the students in Australia at school? [ ]

A. Between the ages of five and sixteen.

B. Between the ages of six and fifteen.

C. Between the ages of seven and fourteen.

D. Between nine and eighteen

2. Who attends school at age of 16? [ ]

A. The children in the USA.

B. The children in England.

C. The children in Tasmania.

D. The children in Canada.

3. How many grades are there in Australian schools? [ ]

A. 12 grades

B. 9 grades.

C. 10 grades

D.14 grades.

4. Who doesn't wear uniforms at school? [ ]

A. Students in Australia's Secondary school.

B. Students in England

C. Students in the USA.

D. Students in public schools in the USA

5. Where can you find large schools? [ ]

A. In the countryside.

B. In cities along the coast in Australia.

C. In the city.

D. At home.

判断题