有以下程序: int a=2; int f(int n) static in

题型:单项选择题

问题:

有以下程序:
int a=2;
int f(int n)
static int a=3;
int t=0;
if(n%2)static int a=4; t+=a++; )
else static int a=5;t-=a--;
return t+a++:

main()
int s=a,i;
for(i=0;i<3;i++)s+=f(i);
printf("%d\n",s);

程序运行后输出的结果是( )。

A.6
B.18
C.9
D.4

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

工程监理单位在实施监理过程中,发现存在安全事故隐患且情况严重的,应当______。

A.要求施工单位整改
B.要求施工单位暂时停止施工
C.及时向有关主管部门报告
D.建议撤换承包单位

题型:单项选择题

以常规控制装置为主、计算机为辅的监控方式中,对水电站的控制是由()来完成的。

A.计算机;

B.常规设备;

C.人工操作;

D.常规设备和计算机。

题型:单项选择题

已知蓄电池在充电时作电解池,放电时作原电池。铅蓄电池上有两个接线柱,一个接线柱旁标有“+”,另一个接线柱旁标有“-”。关于标有“+”的接线柱,下列说法中正确的是 [ ]

A.充电时作阳极,放电时作正极

B.充电时作阳极,放电时作负极

C.充电时作阴极,放电时作负极

D.充电时作阴极,放电时作正极

题型:单项选择题

"What does the middleman do but add to the price of goods in the shops " Such remarks are aimed at the intermediate operations between manufacturers and final customers. This practice usually attracts a lot of attention from the public and the press and the operation most talked about is what is often called wholesaling.
The wholesaler buys goods in large quantities from the manufacturers and sells them in smaller parcels to retailers, and for this service his selling price to the retailer is raised several percent higher. But his job is made more difficult by retail demand not necessarily running level with manufacturers’ production. Because he adjusts or regulates the flow of goods by holding stock Until required, he frees the manufacturer, to some extent, from the effect on production of changing demand and having to bear the whole risk.
The manufacturer can then keep up a steady production flow, and the retailer has no need to hold heavy stocks, who can call on the wholesaler for supplies any time. This wholesale function is like that of a valve in a water pipe. The middleman also bears part of the risk that would otherwise fall on the manufacturer and also the retailer.
The wholesaler provides a purely commercial service, for which he is too well rewarded. But the point that is missed by many people is that the wholesaler is not just someone adding to the cost of goods. It is true one could eliminate the wholesaler but one would still be left with his function: that of making sure that goods find their way to the people who want them.

The middleman relieves the producer of ______.

A.fluctuating market demand and staying at risk

B.the production of commodities for the retail market

C.some extent of production of changing demand

D.storing goods in a warehouse until they are needed

题型:单项选择题

使用缺省的子网掩码,IP地址201、100、200、1的网络号和主机号分别是()

A、201、0、0、0和100、200、1

B、201、100、0、0和200、1

C、201、100、200、0和1

D、201、100、200、1和0

更多题库