问题 填空题

设某循环队列的容量为50,如果头指针front=45(指向队头元素的前一位置),尾指针rear=10(指向队尾元素),则该循环队列中共有______个元素。

答案

参考答案:O

解析: 实现循环队列时,头指针指向第一个元素的前一个空间,尾指针指向最后一个元素。因此,此时队列中46、47、48、49、50、1、2、…、10这15个空间存有元素,即队列中有15个元素。

阅读理解

阅读理解 。

     English schools begin in September after a long summer holiday. There are two terms in a school year.

  The first term is from September to January, and the second term is from February to June.  Most English

  children begin to go to school when they are five years old. When they finish high school, they are

 seventeen or eighteen years old.

      High school students take only five or six subjects each term. They usually go to the same class every

 day, and they have homework for ever class. After class, they do a lot of interesting things. After high

 school, many students go to college. They usually have to pay a lot of money. So they have to work after

  class to get money for their studies.   

l. In England, summer holidays begin in _____.

    A. September  

    B. January        

    C. June          

    D. July

2. Most English children go to school at the age of _____.

    A. five                      

    B. seven         

    C. seventeen                

    D. eighteen

3. High school students_____ after class.

    A. do housework                    

    B. go to work

    C. play sports                        

    D. do interesting things

4. Many English college students work after class for _____.

    A. helping their parents              

    B. getting money for their studies

    C. helping others                    

    D. learning some useful things

5. After high school, many students go to _____..         

    A. cities    

    B. work        

    C. college        

    D. towns

单项选择题 A1/A2型题