工学

单选题数组pins的定义如下: int[]pins=newint[4]{9,2,3,1}; 则pins[1]=()A 1B 2C 3D 9

题目
单选题
数组pins的定义如下: int[]pins=newint[4]{9,2,3,1}; 则pins[1]=()
A

1

B

2

C

3

D

9

如果没有搜索结果,请直接 联系老师 获取答案。
如果没有搜索结果,请直接 联系老师 获取答案。
相似问题和答案

第1题:

定义p并使p指向动态空间中的包含30个整数的数组所使用的定义语句为()。

A、int*p=newint[30];

B、int*p=newint(30);

C、int*p=new[30];

D、*p=newint[30];


参考答案:A

第2题:

在C#中,()正确定义了一个具有10个int类型的数组。

A、intiArray=newint[10];

B、int[]iArray=newint;

C、int[]iArray=newint(10);

D、int[]iArray=newint[10];


参考答案:D

第3题:

Adam Smith, a writer in the 1770s, was the first person to see the importance of the division of labor and to explain part of its advantages. He gives as an example the process by which pins were made in England.

"One man draws out the wire, another strengthens it, a third cuts it, a fourth points it, a fifth grinds it at the top to prepare it to receive the head. To make the head requires two or three distinct operations. To put it on is a separate operation, to polish the pins is another. And the important business of making pins is, in this manner, divided into about eighteen distinct operations, which in some factories are all performed by different people, though in others the same man will sometimes perform. two or three of them."

Ten men, Smith said, in this way, turned out twelve pounds of pins a day or about 4 800 pins a piece. But if all of them had worked separately and independently without division of labor, they certainly could not turn out any pin, each of them have made twenty pins in a day and perhaps not even one.

There can be no doubt that division of labor is an efficient way of organizing work. Fewer people can make more pins. Adam Smith saw this but he also took it for granted that division of labor is in itself responsible for economic growth and development and that it accounts for the difference between expanding economies and those that stand still. But division of labor adds nothing new; it only enables people to produce, more of what they already have.

According to the passage, Adam Smith was the first person to______.

A.take advantage of the division of labor

B.explain the causes of the division of labor

C.understand the effects of the division of labor

D.introduce the division of labor into England


正确答案:C
解析:文中第一句指出亚当·斯密是第一个注意到分工重要性的人。与C选项的意思最为接近。

第4题:

A technician is installing a new power supply into a computer. One of the power supply connectors that the technician needs to connect to the motherboard is square and contains 4-pins. This connector is known as which of the following?()

A.SATA

B.FDD

C.IDE

D.ATX


参考答案:D

第5题:

若数组a定义为int[][]a=newint[3][4],则a是

A.一维数组

B.二维数组

C.三维数组

D.四维数组


正确答案:B
解析:题目中定义了一个三行四列的二维数组。

第6题:

下列的数组定义语句,不正确的是()

A、inta[]=newint[5]{1,2,3,4,5}

B、int[,]a=newinta[3][4]

C、int[][]a=newint[][4];

D、int[]a={1,2,3,4};


参考答案:AC

第7题:

下列数组的初始化正确的是_________。

A.int[]score=newint[5]{1,2,3,4,5};

B.int[5]score=newint[]{1,2,3,4,5};

C.intscore={1,2,3,4,5};

D.int[]score=newint[5];


正确答案:D

第8题:

Adam Smith saw that the division of labor ______.

A.enabled each worker to make pins more quickly and more cheaply

B.increased the number of people employed in factories

C.increased the possible output per worker

D.improved the quality of pins produced


正确答案:C
解析:劳动分工提高了效率,增加了总产量,也就增加了每个工人的产出。A选项错是因为分工后,工人并不负责生产的所有工序,也就无法认为工人生产的速度比从前快了。文中也没有提到生产变得更为便宜。B、D选项文中也没有提到。

第9题:

下面不符合Java语言标识符规范的是( )。

A.$myvariable

B.MYVARIABLE

C.myVariable

D._9pins

E.9pins


正确答案:E

第10题:

数组pins的定义如下: int[]pins=newint[4]{9,2,3,1}; 则pins[1]=()

  • A、1
  • B、2
  • C、3
  • D、9

正确答案:B

更多相关问题