问题 单项选择题

关于数组的叙述中,下列说法不正确的是( )。

A. 数组是最简单的复合数据类型,是有限元素的有序集合

B. 数组的元素可以是值(基本数据类型)、对象或其他数组

C. 定义数组时,必须分配内存

D. 一个数组中的元素都必须是相同的类型

答案

参考答案:C

解析:定义数组时,并不分配内存,所以对数组的定义并不要求给出其元素的个数。注意:数组分配内存是通过new操作符或静态初始化来实现的。

单项选择题 案例分析题

Logistics System A logistics system consists of different functions and activities,such as the following: 1.Customer service is a core function in the logistics process.Each business entity should have a customer service department to handle complaints,special orders,loss and damage claims,returns,bills problem,and etc.This function becomes crucial because any dissatisfaction can lead to failure to retain customers. 2.Inventory management is to maintain the stock of raw materials and half-finished products.In order to satisfy the customers'demand and minimize costs,a company should establish an optimal level of inventory to meet the market demand that exceeds our expecta-tions,and at the same time,minimize your inventory holding costs and inventory write-down costs. 3.Transportation has taken a great role in many logistics systems for two reasons.First of all,globalization and importing-exporting activities make most products necessary to be transferred from one country to another.Secondly,information revolution has propelled the manufacturing process and consumer behaviors to be changed drastically.Traditional trans-portation methods need to be upgraded to accommodate modern transportation demand,therefore,containerization and usage of information sharing system emerge. 4.Storage is needed to manage the materials and store ready-for-market products in warehouses.There is new technology applied in the storage,for example,automatic ware-house.Old-fashioned warehouse has become the distribution center where container trucks deliver and pick up the goods. 5.Information system links all logistics processes and integrates all information to en-sure all the handling of large quantity of goods are delivered in an efficient,cost-effective and accurate manner. Questions:

What is the optimal level of inventory?()

A.The amount that you can sell as much as possible.

B.The amount that you can barely meet market expectation.

C.The amount to meet market demand with minimizing your current and potential inventory costs.

D.The amount that you can get the most profits.

判断题