问题 填空题

请完成下列语句中应填的内容:
File pathName=new File(args[0]);
String[]fileNames=pathName. 【13】

答案

参考答案:getPath

解析: 该题考查的是怎样创建文件。下面语句用来创建一个文件:其中构造方法的参数,可以是路径文件名,也可以是路径和文件名。
File pathname=new File(args[0]);//以路径文件名类建立文件对象
File f=new File(pathnamegetPath,file Names [i])//(路径,文件名)而方法public String getPath()返回文件路径名字符串,即路径文件名。所以本题应该填getPath。

完形填空
We often talk about ourselves as if we have permanent genetic defects(缺陷) that can never be changed. “I’m impatient.” “I’m always behind.” “I always put things     !” You’ve surely heard them. Maybe you’ve used them to describe     .
These comments may come from stories about us that have been      for years—often from    childhood. These stories may have no     in fact. But they can set low expectations for us. As a child, my mother said to me, “Marshall, you have no mechanical (操作机械的) skills, and you will never have any mechanical skills for the rest of your life. ” How did these expectations      my development? I was never      to work on cars or be around     . When I was 18, I took the US Army’s Mechanical Aptitude Test. My scores were in the bottom for the entire nation!
Six years later,    , I was at California University, working on my doctor’s degree. One of my professors, Dr. Bob Tannbaum, asked me to write down things I did well and things I couldn’t do. For my strong points, I      down, “research, writing, analysis, and speaking. ” For the      , I wrote, “I have no mechanical skills. ”
Bob asked me how I knew I had no mechanical skills. I explained my life      and told him about my      performance on the Army test. Bob then asked, “     is it that you can solve       mathematical problems, but you can’t solve easy mechanical problems?”
Suddenly I realized that I didn’t      from some sort of genetic defect. I was just living out expectations that I had chosen to     . At that point, it wasn’t just my family and friends who had been      my belief that I was mechanically hopeless. And it wasn’t just the Army test, either. I was the one who kept telling myself, “You can’t do this!” I realized that as long as I kept saying that, it was going to remain true.     , if we don’t treat ourselves as if we have genetic defects that we can never get over, we can do well in almost      we choose.
小题1:
A.away B.offC.up D.down
小题2:
A.themB.myselfC.yourselfD.others
小题3:
A.saidB.spokenC.spreadD.repeated
小题4:
A.as long asB.as far back asC.as well asD.as much as
小题5:
A.evidenceB.wisdomC.causeD.meaning
小题6:
A.leadB.improveC.affectD.change
小题7:
A.encouragedB.demandedC.hopedD.agreed
小题8:
A.meansB.toolsC.facilitiesD.hammers
小题9:
A.thereforeB.somehowC.insteadD.however
小题10:
A.settledB.turnedC.tookD.got
小题11:
A.shortB.otherC.weakD.latter
小题12:
A.experiencesB.tripsC.roadsD.paths
小题13:
A.unexpectedB.poorC.excellentD.average
小题14:
A.WhenB.WhatC.HowD.Why
小题15:
A.challengingB.advancedC.common D.normal
小题16:
A.handleB.separateC.sufferD.come
小题17:
A.believeB.doubtC.adoptD.receive
小题18:
A.weakeningB.strengtheningC.questioningD.accepting
小题19:
A.As a resultB.At the same timeC.In additionD.Instead
小题20:
A.everything B.somethingC.nothingD.none
单项选择题