以下程序的执行结果为( )。 #include <iostream.h> cl

题型:单项选择题

问题:

以下程序的执行结果为( )。
#include <iostream.h>
class Sample

int n;
public:
Sample(int i) n=i;
operator++() n++;//前缀重载运算符
operator++(int) n+=2; //后缀重载运算符
void disp()

cout<<"n="<<n<<endl;

;
void main()

Sample A(2),B(2);
A++;
++B;

A.disp();A.disp();
A.n=4

B.n=1

C.n=3

D.n=5
n=3n=2n=4n=6

考点:计算机等级考试C++二级C++笔试
题型:单项选择题

DIY, which means Do It Yourself, is quite popular in UK. Lots of stores and supermarkets sell DIY things. TV proprammes show people how to DIY.

English people like DIY. There is a saying in UK –“An Englishman’s home is his castle”. Huge numbers of people spend their holidays making their homes beautiful “castles”. If there is anything that needs fixing around their houses, such as painting the walls or putting in a new shower, they will do the jobs themselves. They share DIY experiences with their friends. More and more people have discovered the joy of DIY. Sometimes people also DIY for saving money. With the economic downturn at present, many people can not afford to buy a bigger house. They are looking at how they can make their house better without spending a lot of money. It is not surprising that DIY is so popular.

DIY can be difficult. There is a huge market for DIY furniture which people need to put together themselves with a few basic tools. However, people often find it not easy to build a piece of furniture because they can’t understand the instructions. Sometimes the instructions are simple and clear, but the furniture itself is difficult to build. One thing is for sure, though most DIY projects are started with the best intentions, many of them may not get finished. DIY can also be dangerous. For example, anything electrical should be done by a professional worker. Unluckily, many people don’t care about this warning and put themselves in danger. It is reported that in just one year over 230,000 people were hurt while doing DIY in UK, including 41,000 who fell off ladders.

Therefore, DIY can bring us fun and help us save money, but it is not always as easy as it is thought to be if we bite off more than we can chew. Maybe factories should make products that are easier and safer for us to DIY.

小题1:How do many English people spend their holidays according to the passage?

A.    Making their homes beautiful.   B. Visiting their friends.

B.    Travelling all over the world.   D. Making a lot of money.

小题2:Why do English people like DIY?

A.Many stores sell DIY things.

B.DIY can bring them fun.

C.TV programmes teach them to DIY

D.All DIY projects are easy.小题3:What can we learn from the passage?

A.    DIY is a waste of money.   B. It is always difficult to DIY.

B.    We should be careful while doing DIY.   D. It’s very safe for us to DIY

小题4:In the passage, “we bite off more than we can chew” probably means ___________.

A.we can eat everything we like

B.we should do something difficult

C.we do something that is too difficult

D.we eat too much food that is not safe

题型:单项选择题

阅读材料,回答下列问题

材料一

日期国内生产总值同比增长对经济增长的贡献率
消费投资出口
2012年上半年7.8%57.7%49.4%-7.1%
2013年上半年7.6%45.2%45.2%0.9%
材料二 我国已经进入“个位数增速”新发展阶段,且存在诸多不得因素,比如,发达经济体和发展中经济体面临不同的经济增长内生动力问题,外需持续低迷;劳动力成本不断上涨;人民币持续升值;企业经营成本高,贸易保护主义盛行,外贸环境日趋复杂等。

概括表中的经济信息(4分),并运用经济生活知识,结合材料二,就表中所反映的问题提出应对策略。(8分)

题型:单项选择题

某少数民族犯罪嫌疑人阿古拉系某高校在读学生,汉语读写水平很高。他在南京盗窃时被抓获,讯问时,他应当使用当地通用语回答。

题型:单项选择题

不准驾驶安全设备不全、机件失灵或违章装载的车辆。

题型:单项选择题

无焰烧嘴扩散管的角度以()为宜。

A.5°~6°

B.6°~8°

C.7°~10°

更多题库