问题 单项选择题

下面程序的输出结果是( )。 #include <iostream> using namespace std; class point { public:point(int px=10,int py=10){ x=px;y=py;}getpx( ) { return x;}getpy( ) { return y;} private:int x,y; }; void main(voiD) {point p,q(15,15);cout<<"p点的坐标是:"<<p. getpx( )<<" ,";cout<<p. getpy( )<<endl;cout<<"q点的坐标是:"<<q. getpx( )<<" ,";cout<<q. getpy( ); }

A.p点的坐标是:10,10 q点的坐标是:15,15

B.p点的坐标是:0,0 q点的坐标是:15,15

C.p点的坐标是:0,0 q点的坐标是:0,0

D.p点的坐标是:10,10 q点的坐标是:10,10

答案

参考答案:A

解析: 此题是给构造函数的参数赋初值。在创建对象时,若对象不带参数,则类中变量的值为构造函数的初值;若创建对象时又给对象带了值,则用此值代替初值。

阅读理解

       Chinese are very generous(大方的) in educating their children. Not caring about the money, parents

often send their children to the best schools or even abroad to England, the United States and Australia.

They also want their children to take extra-course activities such as musical instrument learning or ballet  

classes, or other classes. They think these will give them a good future. The Chinese believe that the more expensive an education is, the better it is. So parents will spend much unreasonable(不 理智的 ) money on education. Even poor parents will buy a computer for their son or daughter.

                                             

       However, most parents don't understand that the best early education they can give their children is

usually very cheap.

       Parents can see that their children are very good in some areas while poor in others. Parents also

can see some children are good at these skills and others do well in others. Most parents don't realize

that today's children lack self-respect and self-confidence(自信).

       The problem is that parents are only educating their children on how to take tests and how to study

well, but parents are not teaching them the most important skills that they need to be confident, happy

and clever.

       Parents can achieve this by teaching skills like cooking, sewing and doing other housework. Teaching a child to cook will improve many of the skills that he will need later in life. Cooking needs patience and

time. It is an enjoyable but difficult experience. A good cook always tries to improve his cooking, so he

will learn to work hard and finish his job successfully. His result, a well-cooked dinner, will give him much

satisfaction and lots of self-confidence.

       Some old machines, such as a broken radio or TV set that you give your child to play with will make

him curious and improve his interest. He will spend hours looking at them, trying to fix them. Your child

might become an engineer when he grows up. These activities are not only teaching a child to read a book, but rather to think, to use his mind. And that is more important.

1. What don't most parents realize today ?  

A. Education is very important to children.

B. Today's children lack self-respect and self-confidence.

C. Today's children lack of skills for tests.

D. Taking extra-courses is useful for children's future.

2. Generally speaking, children's skills __________.

A. come from their parents            

B. have nothing to do with their education

C. may be different from child to child  

D. have much to do with their marks in the exams

3. Doing some cooking at home helps children_________.

A. learn how to help their parents    

B. learn how to become strong and fat

C. learn to work hard and be full of confidence  

D. make their parents believe that they are clever

4. The writer of this passage don't agree with_______.

A. the parents' ideas of educating children    

B. the country's education system

C. the children's skills                    

D. the children's hobbies

单项选择题

三、根据以下资料,回答下列问题。


2007年前3季度,我国全社会固定资产投资91529亿元,同比增长25.7%。其中,城镇固定资产投资78247亿元,增长26.4%;农村投资13282亿元,增长21.2%。在城镇投资中,国有及国有控股完成投资33951亿元,增长16.2%;房地产开发完成投资16814亿元,增长30.3%。从项目隶属关系看,中央项目投资7749亿元,同比增长15.4%;地方项目投资70497亿元,增长27.8%。从产业看,第一~第三产业分别完成投资938亿元、34522亿元和42787亿元,同比分别增长41.1%、29.3%和24.0%。从行业看,煤炭开采及洗选业投资1103亿元,同比增长24.9%;电力、热力的生产与供应业投资5348亿元,增长10.6%;石油和天然气开采业投资1232亿元,增长13.7%;铁路运输业投资1395亿元,增长7.1%;非金属矿制品业投资1890亿元,增长50.9%;黑色金属矿冶炼及压延加工业投资1741亿元,增长13.0%;有色金属矿冶炼及压延加工业投资864亿元,增长31.2%。从注册类型看,内资企业投资69502亿元,同比增长26.8%;港澳台商投资和外商投资分别完成3742亿元和4648亿元,分别增长31.5%和18.7%。从施工和新开工项目情况看,截止到9月底,城镇50万元以上施工项目累计259083个,同比增加27901个;施工项目计划总投资222439亿元,同比增长18.2%;新开工项目170123个,同比增加18151个;新开工项目计划总投资60309亿元,同比增长24.2%。从到位资金情况看,城镇投资到位资金88764亿元,同比增长27.8%。其中,国内贷款增长14.5%,利用外资增长15.5%,自筹资金增长32.2%。

2006年前3季度城镇固定资产投资是( )。

A.60479亿元
B.61904亿元
C.69104亿元
D.72815亿元