阅读以下说明和C++程序,将应填入 (n) 处的字句写在对应栏内。 [说明]

题型:填空题

问题:

阅读以下说明和C++程序,将应填入 (n) 处的字句写在对应栏内。
[说明]
下面程序是为汽车市场编制的一个程序的一部分。其中automobile是基类。
[C++程序]
//Auto.h
#ifndef AUTO_H
#define AUTO_H
class automobile

(1):
int miles_per_gallon; //汽车每加仑行驶公里数
float fuel_capacity; //油箱容积
public:
void initialize(int in_mpg,int in_fuel);
int get_mpg(void);
float get_fuel(void);
float travel_distance(void);

#endif
//Auto.cpp
#include"auto.h"
void automobile::initialize(int in_mpg,float in fuel)

miles_per_gallon=in_mpg;
fuel_capacity=in_fuel;
)
int automobile::get_mpg() //提供一辆特定汽车每加仑公里数
return miles per_gallon;
float automobile::get_fuel() //提供油箱容积
return fuel_capacity;
float automobile::travel_distance()
return (2)
//car.h
#ifndef CAR_H
#define CAR_H
#include"auto.h"
class car: (3)

int Total_doors;
public:
void initialize(int in_mpg,float in_fuel,int doors=4);
int doors(void);
;
#endif
//car.cpp
#include"car.h"
void car::initialize(int in_mpg,float in_fuel,int door)

Total_doors=door;
miles_per_galion=in_mpg;
fuel_capacity=in_fuel;

int car::doors(void)
return Total doors;
//Allauto.cpp
#include
#include"auto.h"
#include"car.h"
int main()

car sedan;
sedan.initialize(24,20.0,4);
tout<<"The sedan can travel"<< (4) <<"miles.\n";
cout<<"The sedan has"<< (5) <<"doors.\n";
return 0;

考点:计算机软件水平考试初级程序员初级程序员下午试题
题型:填空题

阅读下文,完成11一14题。

  ①紫禁城的城墙10米多高,有四座城门:南面午门,北面神武门,东西面东华门,西华门。宫城呈长方形,占地72万平方米,有大小宫殿70多座,房屋9000多间。城墙外是50多米宽的护城河。城墙的四角上,各有一座玲珑奇巧的角楼。故宫建筑群规模宏大壮丽,建筑精美,布局统一,集中体现了我国古代建筑艺术的独特风格。

  ②从 * * 往里走,沿着一条笔直的大道穿过端门,就到午门的前面。午门俗称五凤楼,是紫禁城的正门。走进午门,是一个宽广的庭院,弯弯的金水河像一条玉带横贯东西,河上是五座精美的汉白玉石桥。桥的北面是太和门,一对威武的铜狮守卫在门的两侧。

  ③进了太和门,就到紫禁城的中心——三大殿:太和殿、中和殿、保和殿。三座大殿矗立在7米多高的汉白玉台基上,台基有三层,每层的边缘都用汉白玉栏杆围绕着,上面刻着龙风流云,四角和望柱下面伸出1000多个圆雕鳌头,嘴里都有一个小圆洞,是台基的排水管道。

  ④太和殿俗称金銮殿,高28米,面积2380多平方米,是故宫最大的殿堂。在湛蓝的天空下,那金黄色的琉璃瓦重檐屋顶,显得格外辉煌。殿檐斗拱、额枋、梁柱,装饰着青蓝点金和贴金彩画。正面是12根红色大圆柱、金琐窗、朱漆门,同台基相互衬映,色彩鲜明、雄伟壮丽。

  ⑤大殿正中是一个约2米高的朱漆方台,上面安放着金漆雕龙宝座,背后是雕龙屏。方台两旁有6根高大的蟠龙金柱,每根大柱上盘绕着矫健的金龙。仰望殿顶,中央藻井有一条巨大的雕金蟠龙。从龙口里垂下一颗银白色大圆珠,周围环绕着6颗小珠,龙头、宝珠正对着下面的宝座。梁枋间彩画绚丽,有双龙戏珠,单龙翔舞,有行龙、升龙、降龙,多态多姿,龙身周围还衬托着流云火焰。

  ⑥三大殿建筑在紫禁城的中轴线上,这条线也是北京城的中轴线,向南从午门到 * * 延伸到正阳门、永定门,往北从神武门到地安门鼓楼,全长8千米。

1.选文采用的说明顺序是_______________;故宫博物院的总体特征是________________。

2.第④段中的画线句运用了__________的说明方法,它的作用是________________

3.文中④、⑤段分别介绍了太和殿的外部景观和_____________两个方面的情况。

4.第⑥段中的加粗词语“约”不能删除的理由是___________________________________。

题型:填空题

阅读理解。

    The young boy saw me, or rather, he saw the car and quickly ran up to me, eager to sell his bunches

of bananas and bags of peanuts. Though he appeared to be about twelve, he seemed to have already

known the bitterness of life. "Bananas 300 naira. Peanuts 200 naira." He said in a low voice. I bargained

him down to 200 total for the fruit and nuts. When he agreed, I handed him a 500 naira bill. He didn't

have change, so I told him not to worry. He said thanks and smiled a row of perfect teeth.

     When, two weeks later, I saw the boy again, I was more aware of my position in a society where it's

not that uncommon to see a little boy who should be in school standing on the corner selling fruit in the

burning sun. My parents had raised me to be aware of the advantage we had been afforded and the

responsibility it brought to us.

     I pulled over and rolled down my window. He had a bunch of bananas and a bag of peanuts ready.

I waved them away. "What's up?" I asked him.

     "I…don't have money to buy books for school." I reached into my pocket and handed him two fresh

500 naira bills. "Will this help?" I asked. He looked around nervously before taking the money. One

thousand naira was a lot of money to someone whose family probably made about 5,000 naira or less

each year. "Thank you, sir." he said. "Thank you very much!"

     When driving home, I wondered if my little friend actually used the money for schoolbooks. What if

he's a cheat? And then I wondered why I did it. Did I do it to make myself feel better? Was I using him?

Later, I realized that I didn't know his name or the least bit about him, nor did I think to ask.

     Over the next six months, I was busy working in a news agency in northern Nigeria. Sometime after I

returned, I went out for a drive. When I was about to pull over, the boy suddenly appeared by my

window with a big smile ready on his face.

     "Oh, gosh! Long time."

     "Are you in school now?" I asked.

     He nodded.

     "That's good," I said. A silence fell as we looked at each other, and then I realized what he wanted.

"Here," I held out a 500 naira bill. "Take this." He shook his head and stepped back as if hurt. "What's

wrong?" I asked. "It's a gift."

      He shook his head again and brought his hand from behind his back. His face shone with sweat. He

dropped a bunch of bananas and a bag of peanuts in the front seat before he said, "I've been waiting to

give these to you."

1. What was the author's first impression of the boy?

A. He seemed to be poor and greedy.

B. He seemed to have suffered a lot.

C. He seemed younger than his age.

D. He seemed good at bargaining.

2. The second time the author met the boy, the boy ______.

A. told him his purpose of selling fruit and nuts

B. wanted to express his thanks

C. asked him for money for his schoolbooks

D. tried to take advantage of him

3. Why did the author give his money to the boy?

A. Because he had enough money to do that.

B. Because he had learnt to help others since childhood.

C. Because he held a higher position in the society.

D. Because he had been asked by the news agency to do so.

4. Which of the following best describes the boy?

A. Brave and polite.          

B. Kind and smart.

C. Honest and thankful.        

D. Shy and nervous.

题型:填空题

反-2101的内构件主要有(),冷氢盘和支撑盘。

题型:填空题

能与肥大细胞和嗜碱性粒细胞结合的Ig是

A.IgM
B.IgG
C.IgA
D.IgD
E.IgE

题型:填空题

投资风险

更多题库