问题 单项选择题

若某文件系统的目录结构如图所示,假设用户要访问文件f1.java,且当前工作目录为Program,则该文件的全文件名为(1),其相对路径为(2)。空白(1)处应选择()。

A.f1.java

B.\Document\Java-prog\f1.java

C.D:\Program\Java-prog\f1.java

D.\Program\Java-prog\f1.java

答案

参考答案:C

解析:

全文件名即是绝对路径。在树形目录结构中,绝对路径应从树根开始,把全部目录文件名与数据文件名依次用"\"连接起来。而相对路径,则是从当前目录开始,再逐级通过中间的目录文件,最后到达所要访问的数据文件。注意,连接符"\"只用在文件名之间。

阅读理解

阅读理解。

     It's important to learn about protecting our environment. Here is a 5R rule for us:

     1. Reduce

     If you want to reduce waste, you should use things wisely. Millions of trees are being cut down to make

  paper. If everyone uses a little paper carelessly and throw it out, soon we would not have any trees left. 

 Other things are also being wasted, and people don't know what to do with the waste in big cities. So it is

  necessary to reduce the waste

     2. Reuse

     You should always think of reusing the usable things before throwing them out. Give your clothes you

 do not use or the ones which are too small to the poor. With a family, you may pass on such clothes to

 younger brothers or sisters.

     3.  Recycle

     Bottles, cans and paper can easily be recycled. By doing so, we save lots of time and money. For

 example, coke cans are sent to a factory, where they are smashed flat (压平) and melted (融化) and the

  melted things are made for new coke cans.

     4.  Recover

    When you buy a box of apples, there may be a few rotten(腐烂的)apples. You have two choices: one

  is to throw the whole apple away, or you could cut off the rotten parts and eat the good parts. In this

 way, you are recovering the eatable parts of food.

     5.  Repair

    If one of the legs of your table is broken, you can repair it instead of throwing it away. If you want to

 change for better ones, It is better for you to sell the old things or give them to other people who can use

  them after doing some repair. It is true that North America is a "throw-away" society(社会). But the time

  has come to change our way of life so that we can protect our environment. Every one of us should try

 our best.

1. _____ can be recycled.

    A. Only hard things

    B. Many things

    C. Few soft things

    D. All things

2. The "recover" rule mainly requires us _____.

    A. to throw waste things away

    B. to cover waste things with earth    

    C. to get back the useful parts

    D. to throw the whole things away

3. We can infer (推断) that the writer of this passage may live in _____.

    A. China

    B. Japan

    C. Australia

    D. America

4. Which of the following is true?

    A. We will have no resources(资源) of nature unless we can do with the waste.

    B. Recycling is the best way to save resources.

    C. If we waste less, we can save more resources of nature.

    D. More things are wasted in developed countries than in developing ones.

单项选择题