SCJP Exam 2_答案1-15

合集下载

SCJP题库 带达内考点分析②

SCJP题库 带达内考点分析②

Module2-类、接口以及枚举一、选择题:Question1Given:11.public interface Status{12./*insert code here*/int MY_V ALUE=10;13.}Which three are valid on line12?(Choose three.)A.finalB.staticC.nativeD.publicE.privateF.abstractG.protectedQuestion2Given:10.class Foo{11.static void alpha(){/*more code here*/}12.void beta(){/*more code here*/}13.}Which two are true?(Choose two.)A.Foo.beta()is a valid invocation of beta().B.Foo.alpha()is a valid invocation of alpha().C.Method beta()can directly call method alpha().D.Method alpha()can directly call method beta().Question3Click the Exhibit button.11.class Payload{12.private int weight;13.public Payload(int wt){weight=wt;}14.public Payload(){}15.public void setWeight(mt w){weight=w;}16.public String toString{return Integer.toString(weight);}17.}18.19.public class TestPayload{20.static void changePayload(Payload p){21./*insert code here*/22.}23.24.public static void main(String[]args){25.Payload p=new Payload();26.p.setWeight(1024);27.changePayload(p);28.System.out.println("The value of p is"+p);29.}30.}Which statement,placed at line21,causes the code to print“The value of p is420.”?A.p.setWeight(420);B.p.changePayload(420);C.p=new Payload(420);D.Payload.setWeight(420);E.p=Payload.setWeight(420);F.p=new Payload();p.setWeight(420);Question4Click the Exhibit button.1.public class Item{2.private String desc;3.public String getDescription(){return desc;}4.public void setDescription(String d){desc=d;}5.6.public static void modifyDesc(Item item,String desc){7.item=new Item();8.item.setDescription(desc);9.}10.public static void main(String[]args){11.Item it=new Item();12.it.setDescription("Gobstopper");13.Item it2=new Item();14.it2.setDescription("Fizzylifting");15.modifyDesc(it,"Scrumdiddlyumptious");16.System.out.println(it.getDescription());17.System.out.println(it2.getDescription());18.}19.}What is the outcome of the code?pilation fails.B.GobstopperFizzyliftingC.GobstopperScrumdiddlyumptiousD.ScrumdiddlyumptiousFizzylifltngE.ScrumdiddlyumptiousScrumdiddlyumptiousQuestion5Given:11.public class ItemTest{12.private final in t id;13.public ItemTest(int id){this.id=id;}14.public void updateId(int newId){id=newId;}15.16.public static void main(String[]args){17.ItemTest fa=new ItemTest(42);18.fa.updateId(69);19.System.out.println(fa.id);20.}21.}What is the result?pilation fails.B.An exception is thrown at runtime.C.The attribute id in the Item object remains unchanged.D.The attribute id in the Item object is modified to the new value.E.A new Item object is created with the preferred value in the id attribute.Question6Click the Exhibit button.10.class Inner{11.private int x;12.public void setX(int x){this.x=x;}13.public int getX(){return x;}14.}15.16.class Outer{17.private Inner y;18.public void setY(Inner y){this.y=y;}19.public Inner getY(){return y;}20.}21.22.public class Gamma{23.public static void main(String[]args){24.Outer o=new Outer();25.Inner i=new Inner();26.int n=10;27.i.setX(n);28.o.setY(i);29.//insert code here30.System.out.println(o.getY().getX());31.}32.}Which three code fragments,added individually at line29,produce the output100?(Choose three.)A.n=100;B.i.setX(100);C.o.getY().setX(100);D.i=new Inner();i.setX(100);E.o.setY(i);i=new Inner();i.setX(100);F.i=new Inner();i.setX(100);o.setY(i);Question7Click the Exhibit button.10.class Foo{11.private int x;12.public Foo(int x){this.x=x;}13.public void setX(int x){this.x=x;}14.public int getX(){return x;}15.}16.17.public class Gamma{18.19.static Foo fooBar(Foo foo){20.foo=new Foo(100);21.return foo;22.}23.24.public static void main(String[]args){25.Foo foo=new Foo(300);26.System.out.print(foo.getX()+"-");27.28.Foo fooFoo=fooBar(foo);29.System.out.print(foo.getX()+"-");30.System.out.print(fooFoo.getX()+"-");31.32.foo=fooBar(fooFoo);33.System.out.print(foo.getX()+"-");34.System.out.prmt(fooFoo.getX());35.}36.}What is the output of this program?A.300-100-100-100-100B.300-300-100-100-100C.300-300-300-100-100D.300-300-300-300-100Question8Given:1.interface DoStuff2{2.float getRange(int low,int high);}3.4.interface DoMore{5.float getAvg(int a,int b,int c);}6.7.abstract class DoAbstract implements DoStuff2,DoMore{} 8.9.class DoStuff implements DoStuff2{10.public float getRange(int x,int y){return3.14f;}}11.12.interface DoAll extends DoMore{13.float getAvg(int a,int b,int c,int d);}What is the result?A.The file will compile without error.pilation fails.Only line7contains an error.pilation fails.Only line12contains an error.pilation fails.Only line13contains an error.pilation fails.Only lines7and12contain errors.pilation fails.Only lines7and13contain errors.pilation fails.Lines7,12,and13contain errors. Question9Click the Exhibit button.1.public class A{2.3.private int counter=0;4.5.public static int getInstanceCount(){6.return counter;7.}8.9.public A(){10.counter++;11.}12.13.}Given this code from Class B:25.A a1=new A();26.A a2=new A();27.A a3=new A();28.System.out.printIn(A.getInstanceCount());What is the result?pilation of class A fails.B.Line28prints the value3to System.out.C.Line28prints the value1to System.out.D.A runtime error occurs when line25executes.pilation fails because of an error on line28.Question10Given:1.public class A{2.public void doit(){3.}4.public String doit(){5.return“a”;6.}7.public double doit(int x){8.return1.0;9.}10.}What is the result?A.An exception is thrown at runtime.pilation fails because of an error in line7.pilation fails because of an error in line4.pilation succeeds and no runtime errors with class A occur. Question11Given:10.class Line{11.public static class Point{}12.}13.14.class Triangle{15.//insert code here16.}Which code,inserted at line15,creates an instance of the Point class defined in Line?A.Point p=new Point();B.Line.Point p=new Line.Point();C.The Point class cannot be instatiated at line15.D.Line1=new Line();1.Point p=new1.Point();Question12Click the Exhibit button.10.interface Foo{11.int bar();12.}13.14.public class Beta{15.16.class A implements Foo{17.public int bar(){return1;}18.}19.20.public int fubar(Foo foo){return foo.bar();}21.22.public void testFoo(){23.24.class A implements Foo{25.public int bar(){return2;}26.}27.28.System.out.println(fubar(new A()));29.}30.31.public static void main(String[]argv){32.new Beta().testFoo();33.}34.}Which three statements are true?(Choose three.)pilation fails.B.The code compiles and the output is2.C.If lines16,17and18were removed,compilation would fail.D.If lines24,25and26were removed,compilation would fail.E.If lines16,17and18were removed,the code would compile and the output would be2.F.If lines24,25and26were removed,the code would compile and the output would be1.Question13Given:1.public interface A{2.String DEFAULT_GREETING=“Hello World”;3.public void method1();4.}A programmer wants to create an interface calledB that has A as its parent.Which interface declaration is correct?A.public interface B extends A{}B.public interface B implements A{}C.public interface B instanceOf A{}D.public interface B inheritsFrom A{}Question14Given:1.class TestA{2.public void start(){System.out.println(”TestA”);}3.}4.public class TestB extends TestA{5.public void start(){System.out.println(”TestB”);}6.public static void main(String[]args){7.((TestA)new TestB()).start();8.}9.}What is the result?A.TestAB.TestBpilation fails.D.An exception is thrown at runtime.Question15Given:11.public abstract class Shape{12.int x;13.int y;14.public abstract void draw();15.public void setAnchor(int x,int y){16.this.x=x;17.this.y=y;18.}19.}and a class Circle that extends and fully implements the Shape class. Which is correct?A.Shape s=new Shape();s.setAnchor(10,10);s.draw();B.Circle c=new Shape();c.setAnchor(10,10);c.draw();C.Shape s=new Circle();s.setAnchor(10,10);s.draw();D.Shape s=new Circle();s->setAnchor(10,10);s->draw();E.Circle c=new Circle();c.Shape.setAnchor(10,10);c.Shape.draw();Question16Given:10.abstract public class Employee{11.protected abstract double getSalesAmount();12.public double getCommision(){13.return getSalesAmount()*0.15;14.}15.}16.class Sales extends Employee{17.//insert method here18.}Which two methods,inserted independently at line17,correctly complete the Sales class?(Choose two.)A.double getSalesAmount(){return1230.45;}B.public double getSalesAmount(){return1230.45;}C.private double getSalesAmount(){return1230.45;}D.protected double getSalesAmount(){return1230.45;} Question17Given:10.interface Data{public void load();}11.abstract class Info{public abstract void load();} Which class correctly uses the Data interface and Info class?A.public class Employee extends Info implements Data{ public void load(){/*do something*/}}B.public class Employee implements Info extends Data{ public void load(){/*do something*/}}C.public class Employee extends Info implements Data{ public void load(){/*do something*/}public void Info.load(){/*do something*/}}D.public class Employee implements Info extends Data{ public void Data.load(){/*d something*/}public void load(){/*do something*/}}E.public class Employee implements Info extends Data{ public void load(){/*do something*/}public void Info.load(){/*do something*/}}F.public class Employee extends Info implements Data{ public void Data.load(){/*do something*/}public void Info.load(){/*do something*/}}Question18Given:11.public abstract class Shape{12.private int x;13.private int y;14.public abstract void draw();15.public void setAnchor(int x,int y){16.this.x=x;17.this.y=y;18.}19.}Which two classes use the Shape class correctly?(Choose two.)A.public class Circle implements Shape{private int radius;}B.public abstract class Circle extends Shape{private int radius;}C.public class Circle extends Shape{private int radius;public void draw();}D.public abstract class Circle implements Shape{private int radius;public void draw();}E.public class Circle extends Shape{private int radius;public void draw(){/*code here*/}}F.public abstract class Circle implements Shape{private int radius;public void draw(){/code here*/}}Question19Which two classes correctly implement both the ng.Runnable and the ng.Clonable interfaces?(Choose two.)A.public class Sessionimplements Runnable,Clonable{public void run();public Object clone();}B.public class Sessionextends Runnable,Clonable{public void run(){/do something*/}public Object clone(){/make a copy*/}}C.public class Sessionimplements Runnable,Clonable{public void run(){/do something*/}public Object clone(){/*make a copy*/}}D.public abstract class Sessionimplements Runnable,Clonable{public void run(){/do something*/}public Object clone(){/*make a copy*/}}E.public class Sessionimplements Runnable,implements Clonable{public void run(){/do something*/}public Object clone(){/make a copy*/}}Question20Given:10.class One{11.public One(){System.out.print(1);}12.}13.class Two extends One{14.public Two(){System.out.print(2);}15.}16.class Three extends Two{17.public Three(){System.out.print(3);}18.}19.public class Numbers{20.public static void main(String[]argv){new Three();}21.}What is the result when this code is executed?A.1B.3D.321E.The code rims with no output.Question21Given classes defined in two different files:1.package packageA;2.public class Message{3.String getText(){return“text”;}4.}and:1.package packageB;2.public class XMLMessage extends packageA.Message{3.String getText(){return“<msg>text</msg>”;}4.public static void main(String[]args){5.System.out.println(new XMLMessage().getText());6.}7.}What is the result of executing XMLMessage.main?A.textB.<msg>text</msg>C.An exception is thrown at runtime.pilation fails because of an error in line2of XMLMessage.pilation fails because of an error in line3of XMLMessage. Question22Given:11.interface DeclareStuff{12.public static final int EASY=3;13.void doStuff(int t);}14.public class TestDeclare implements DeclareStuff{15.public static void main(String[]args){16.int x=5;17.new TestDeclare().doStuff(++x);18.}19.void doStuff(int s){20.s+=EASY+++s;21.System.out.println("s"+s);22.}23.}What is the result?A.s14C.s10pilation fails.E.An exception is thrown at runtime.Question2341.Given:10.class One{11.public One foo(){return this;}12.}13.class Two extends One{14.public One foo(){return this;}15.}16.class Three extends Two{17.//insert method here18.}Which two methods,inserted individually,correctly complete the Three class?(Choose two.)A.public void foo(){}B.public int foo(){return3;}C.public Two foo(){return this;}D.public One foo(){return this;}E.public Object foo(){return this;}Question24Given:10.class One{11.void foo(){}12.}13.class Two extends One{14.//insert method here15.}Which three methods,inserted individually at line14,will correctly complete class Two?(Choose three.)A.int foo(){/*more code here*/}B.void foo(){/*more code here*/}C.public void foo(){/*more code here*/}D.private void foo(){/*more code here*/}E.protected void foo(){/*more code here*/}Question25Click the Exhibit button.1.public interface A{2.public void doSomething(String thing);3.}1.public class AImpl implements A{2.public void doSomething(String msg){}3.}1.public class B{2.public A doit(){3.//more code here4.}5.6.public String execute(){7.//more code here8.}9.}1.public class C extends B{2.public AImpl doit(){3.//more code here4.}5.6.public Object execute(){7.//more code here8.}9.}Which statement is true about the classes and interfaces in the exhibit?pilation will succeed for all classes and interfaces.pilation of class C will fail because of an error in line2.pilation of class C will fail because of an error in line6.pilation of class AImpl will fail because of an error in line2. Question26Click the Exhibit button.11.class Person{12.String name="No name";13.public Person(String nm){name=nm;}14.}15.16.class Employee extends Person{17.String empID=“0000”;18.public Employee(String id){empID=id;}19.}20.21.public class EmployeeTest{22.public static void main(String[]args){23.Employee e=new Employee(”4321”);24.System.out.println(e.empID);25.}26.}What is the result?A.4321B.0000C.An exception is thrown at runtime.pilation fails because of an error in line18.Question27Given:1.public class Plant{2.private String name;3.public Plant(String name){=name;}4.public String getName(){return name;}5.}1.public class Tree extends Plant{2.public void growFruit(){}3.public void dropLeaves(){}4.}Which is true?A.The code will compile without changes.B.The code will compile if public Tree(){Plant();}is added to the Tree class.C.The code will compile if public Plant(){Tree();}is added to the Plant class.D.The code will compile if public Plant(){this(”fern”);}is added to the Plant class.E.The code will compile if public Plant(){Plant(”fern”);}is added to the Plant class.Question28Click the Exhibit button.11.public class Bootchy{12.int bootch;13.String snootch;14.15.public Bootchy(){16.this(”snootchy”);17.System.out.print(”first“);18.}19.20.public Bootchy(String snootch){21.this(420,"snootchy");22.System.out.print("second");23.}24.25.public Bootchy(int bootch,String snootch){26.this.bootch=bootch;27.this.snootch=snootch;28.System.out.print("third");29.}30.31.public static void main(String[]args){32.Bootchy b=new Bootchy();33.System.out.print(b.snootch+""+b.bootch);34.}35.}What is the result?A.snootchy420third second firstB.snootchy420first second thirdC.first second third snootchy420D.third second first siiootchy420E.third first second snootchy420F.first second first third snootchy420 Question29Given:1.interface TestA{String toString();}2.public class Test{3.public static void main(String[]args){4.System.out.println(new TestA(){5.public String toString(){return"test";}6.});7.}8.}What is the result?A.testB.nullC.An exception is thrown at runtime.pilation fails because of an error in line1.pilation fails because of an error in line4.pilation fails because of an error in line5.Question30Given:10.interface Foo{int bar();}11.public class Sprite{12.public int fubar(Foo foo){return foo.bar();}13.public void testFoo(){14.fubar(15.//insert code here16.);17.}18.}Which code,inserted at line15,allows the class Sprite to compile?A.Foo{public int bar(){return1;}}B.new Foo{public int bar(){return1;}}C.new Foo(){public int bar(){return1;}}D.new class Foo{public int bar(){return1;}}Question31Given:10.class Line{11.public class Point{public int x,y;}12.public Point getPoint(){return new Point();}13.}14.class Triangle{15.public Triangle(){16.//insert code here17.}18.}Which code,inserted at line16,correctly retrieves a local instance of a Point object?A.Point p=Line.getPoint();B.Line.Point p=Line.getPoint();C.Point p=(new Line()).getPoint();D.Line.Point p=(new Line()).getPoint();Question32A JavaBeans component has the following field:11.private boolean enabled;Which two pairs of method declarations follow the JavaBeans standard for accessing this field?(Choose two.)A.public void setEnabled(boolean enabled)public boolean getEnabled()B.public void setEnabled(boolean enabled)public void isEnabled()C.public void setEnabled(boolean enabled)public boolean isEnabled()D.public boolean setEnabled(boolean enabled)public boolean getEnabled()Question33A programmer is designing a class to encapsulate the information about an inventory item.A JavaBeans component is needed todo this.The Inventoryltem class has private instance variables to store the item information:10.private int itemId;11.private String name;12.private String description;Which method signature follows the JavaBeans naming standards for modifying the itemld instance variable?A.itemID(int itemId)B.update(int itemId)C.setItemId(int itemId)D.mutateItemId(int itemId)E.updateItemID(int itemId)Question34Given:10.class Nav{11.public enum Direction{NORTH,SOUTH,EAST,WEST}12.}13.public class Sprite{14.//insert code here15.}Which code,inserted at line14,allows the Sprite class to compile?A.Direction d=NORTH;B.Nav.Direction d=NORTH;C.Direction d=Direction.NORTH;D.Nav.Direction d=Nav.Direction.NORTH;Question35Given:1.package sun.scjp;2.public enum Color{RED,GREEN,BLUE}1.package sun.beta;2.//insert code here3.public class Beta{4.Color g=GREEN;5.public static void main(String[]argv)6.{System.out.println(GREEN);}7.}The class Beta and the enum Color are in different packages. Which two code fragments,inserted individually at line2of the Beta declaration,will allow this code to compile?(Choose two.)A.import sun.scjp.Color.*;B.import static sun.scjp.Color.*;C.import sun.scjp.Color;import static sun.scjp.Color.*;D.import sun.scjp.*;import static sun.scjp.Color.*;E.import sun.scjp.Color;import static sun.scjp.Color.GREEN; Question36Given:11.public class Ball{12.public enum Color{RED,GREEN,BLUE};13.public void foo(){14.//insert code here15.{System.out.println(c);}16.}17.}Which code inserted at line14causes the foo method to print RED, GREEN,and BLUE?A.for(Color c:Color.values())B.for(Color c=RED;c<=BLUE;c++)C.for(Color c;c.hasNext();c.next())D.for(Color c=Color[0];c<=Color[2];c++)E.for(Color c=Color.RED;c<=Color.BLUE;c++)Question37Given:11.public enum Title{12.MR("Mr."),MRS("Mrs."),MS("Ms.");13.private final String title;14.private Title(String t){title=t;}15.public String format(String last,String first){16.return title+""+first+""+last;17.}18.}19.public static void main(String[]args){20.System.out.println(Title.MR.format("Doe","John"));21.}What is the result?A.Mr.John DoeB.An exception is thrown at runtime.pilation fails because of an error in line12.pilation fails because of an error in line15.pilation fails because of an error in line20.Question38Given:10.public class Fabric11.public enum Color{12.RED(0xff0000),GREEN(0x00ff00),BLUE(0x0000ff);13.private final int rgb;14.Color(int rgb){this.rgb=rgb;}15.public int getRGB(){return rgb;}16.};17.public static void main(String[]argv){18.//insert code here19.}20.}Which two code fragments,inserted independently at line18,allow the Fabric class to compile?(Choose two.)A.Color skyColor=BLUE;B.Color treeColor=Color.GREEN;C.Color purple=new Color(0xff00ff);D.if(RED.getRGB()<BLUE.getRGB()){}E.Color purple=Color.BLUE+Color.RED;F.if(Color.RED.ordinal()<Color.BLUE.ordinal()){} Question39Given:11.public class Test{12.public enum Dogs{collie,harrier,shepherd};13.public static void main(String[]args){14.Dogs myDog=Dogs.shepherd;15.switch(myDog){16.case collie:17.System.out.print("collie");18.case default:19.System.out.print("retriever");20.case harrier:21.System.out.print("harrier");22.}23.}24.}What is the result?A.harrierB.shepherdC.retrieverpilation fails.E.retriever harrierF.An exception is thrown at runtime.Question40Given:12.public class Test{13.public enum Dogs{collie,harrier};14.public static void main(String[]args){15.Dogs myDog=Dogs.collie;16.switch(myDog){17.case collie:18.System.out.print("collie");19.case harrier:20.System.out.print("harrier");21.}22.}23.}What is the result?A.collieB.harrierpilation fails.D.collie harrierE.An exception is thrown at runtime.二、拖拽题:Question1:。

最新四川省届高三第二次诊断考试英语试题含答案.doc

最新四川省届高三第二次诊断考试英语试题含答案.doc

第Ⅰ卷第一部分听力(共两节,满分30分)第一节(共5小题;每小题1.5分,满分7.5分)听下面5段对话。

每段对话后有一个小题,从题中所给的A、B、C三个选项中选出最佳选项,并标在试卷的相应位置。

听完每段对话后,你都有10秒钟的时间来回答有关小题和阅读下一小题。

每段对话仅读一遍。

例:How much is the shirt?A.£19.15.B.£9.18.C.£9.15.1.What does Bob needA.A sleep.B.A leaveC.A rest.2.How did Helen travel in the USAA.By car.B.By bus.C.By train.3.Where does this conversation probably take place?A.At a gas stationB.At a railway station.C.In an airport.4.How does the man feel about the interview?A.Upset.B.Confident.C.Confused.5.Why does the woman talk about her dinner guests?A.To suggest the man have dinner together.B.To remind indirectly the man to go off now.C.To invite the man to drink more coffee with them.第二节(共15小题;每小题1.5分,满分22.5分)听下面5段对话或对白,每段对话或独白后有几个小题,从题中所给的A、B、C三个选项中选出最佳选项,并标在试卷的相应位置,听每段对话或独白前,你将有时间阅读各个小题。

每小题5秒钟;听完后,各小题给出5秒钟的作答时间。

每段对话或独白读两遍。

四川省计算机二级c历年真题答案

四川省计算机二级c历年真题答案

计算机二级历年真题及答案第一部分软件技术基础一、是非判断题(正确选填A,错误选填B)(每小题1分,共10分)1~10:ABABB ABABB二、单项选择题:(每小题1分,共5分)1~5 :DACDC第二部分C与C++语言程序设计一、单项选择题(每小题1分,共10分)1、A2、B3、C4、C5、A6、D7、A8、C9、C 10、D二、读程序题(每个选择3分,共45分)1、(1)B (2)D2、(1)A (2)C3、(1)C (2)A (3)D4、(1)A (2)D5、D6、(1)C (2)B7、(1)A (2)B 8、B三、程序填空题(每空2分,共30分)1、①num=0 ②i < len-1 ③str++2、①symm(m)&&symm(m*m)&&symm(m*m*m)②i!=0 ③m=m*10+i%103、①head ②p->data ③p->next4、①(fp=fopen("data.txt", "r"))==NULL②ch=fgetc(fp) ③ch-'A'5、①while(*s++=*t++ ) ②*t='\0' ③else p=NULL??真题三第二十一次等级考试第一部分软件技术基础一、是非判断题(正确选填A,错误选填B)(每小题1分,共10分)1~10:BBABB ABBAB二、单项选择题:(每小题1分,共5分)1~5 :CCDDB第二部分C与C++语言程序设计一、单项选择题(每小题1分,共10分)1、C2、B3、B4、B5、C6、A7、A8、C9、D 10、D二、读程序题(每个选择3分,共45分)1、D2、A3、A4、B5、B6、C7 、(1)C (2)B 8、(1)A (2)B 9、(1)C (2)D10、(1)D (2)A (3)D三、程序填空题(每空2分,共30分)1、①struct student *next ②p2->next=p1 ③p=p->next2、①q=p ②p>str ③*p=max3、①aver+=score[i] ②below[k]=score[i] ③fun(score,9,below)4、①i==j ②j=2 ③j>=05、①"wb" ②&em ③1??真题四第二十二次等级考试第一部分软件技术基础一、是非判断题(正确选填A,错误选填B)(每小题1分,共10分)1~10:AABBA BBBAA二、单项选择题:(每小题1分,共5分)1~5 :DCDCA第二部分C与C++语言程序设计一、单项选择题(每小题1分,共10分)1、B2、A3、B4、A5、D6、C7、D8、C9、D 10、C二、读程序题(每个选择3分,共45分)1、D2、(1)A (2)C3、(1)A (2)D4、C5、A6、B7、B 8、(1)D (2)A 9、(1)C (2)B10、(1)B (2)D三、程序填空题(每空2分,共30分)1、①p[i]>p[j] ②fscanf(fp,"%d",&a[i] ) ③sort(a,10)2、①func(n) ②long m ③func(m/10)3、①(bott+top)/2 ②top=mid-1 ③bott>top4、①str1[i]!= '\0'&&str2[i]!= '\0'②strlen(str1)>strlen(str2) ③strcat(str3,p2+i )5、①k>0 ②k/10 ③continue??真题五第二十三次等级考试第一部分软件技术基础一、是非判断题(每小题1分,共10分)1~10:AABAB ABBBB二、选择题(每小题1分,共5分)1~5 :CDADA第二部分C与C++语言程序设计一、单项选择题(每小题1分,共10分)1、B2、A3、A4、D5、B6、A7、C8、A/B9、D 10、C二、读程序回答问题(每个选择3分,共45分)1、B2、A3、D4、B B5、D A6、B A7、D8、C C9、A C 10、C三、程序填空( 每空2分,共30分)1、①n%base ②c[i] ③b[d]2、①j/10 ②ch[0]==ch[4] && ch[1]==ch[3] ③i3、①i%3==0&&i%7!=0 ②p[num++]=i ③fun ( M,a,&n )4、①s,t ②*(p1+i)==*p2 ③p1+i ,p1+i+15、①fopen ("stu.txt","r+" ) ②fp,"%f",&y ③fprintf ( fp,"%f",x )??真题六第二十四次等级考试第一部分软件技术基础一、是非判断题(每小题1分,共10分)1~10:BABAB BABAB二、选择题(每小题1分,共5分)1~5 :BDBDB第二部分C与C++语言程序设计一、单项选择题(每小题1分,共10分)1、C2、B3、A4、A5、D6、C7、C8、B9、D 10、B二、读程序回答问题(每个选择3分,共45分)1、D2、B D3、A4、A B5、A6、C7、C D8、D B9、C 10、C B三、程序填空( 每空2分,共30分)1、①int *p 或int p[] ②p[j+1]=p[j] ③insert(a,wz,x)2、①int i ②i<=y ③return z3、①x>=0 ②x<min ③&x4、①i-1 ②a[j+1]=a[j] ③a[j+1]=t5、①FILE *f ②sizeof(stract rec) ③r.num, r.total??真题七第二十五次等级考试第一部分软件技术基础一、是非判断题(每小题1分,共10分)1~10:BAAAB ABAAB二、选择题(每小题1分,共5分)1~5 :ADDAC第二部分C与C++语言程序设计一、单项选择题(每小题1分,共10分)1、A2、D3、B4、C5、B6、A7、D8、B9、D 10、A二、读程序回答问题(每个选择3分,共45分)1、C2、A3、B C4、A C5、D D6、A C7、A D8、B D9、B三、程序填空( 每空2分,共30分)1、①a=a*x ②b=b*i ③s=sum(x,n)2、①s<t ②s++ ③t--3、①filename ②c-‘a’③ch+i4、①*max=i ②*min=i ③fun(a,10,&max,&min)5、①c[k]=a[i++] ②c[k]=b[j++] ③*(b+j)!=’\0’??真题八第二十六次等级考试第一部分软件技术基础一、是非判断题(每小题1分,共10分)1~10:BABAB BBABB二、选择题(每小题1分,共5分)1~5 :BCCCA第二部分C与C++语言程序设计一、单项选择题(每小题1分,共10分)1、A2、B3、C4、B5、D6、C7、A8、D9、C 10、B二、读程序回答问题(每个选择3分,共45分)1、A C2、D3、B4、A B5、A6、B C7、D C8、D9、A D 10、B三、程序填空( 每空2分,共30分)1、①char ch ②“r”③ch2、①p=i ②i>=p ③a[p]=x3、①word++ ②max<word ③word=04、①a[k][i] ②*sum ③x,&s5、①a[k] ②a[k] ③“%4\n”??真题九第二十七次等级考试第一部分软件技术基础一、是非判断题(正确选填A,错误选填B)(每小题1分,共10分)1~10:AAAAA ABBBA二、单项选择题:(每小题1分,共5分)1~5 :ADBCA第二部分C与C++语言程序设计一、单项选择题(每小题1分,共10分)1、A2、B3、D4、D5、C6、C7、B8、D9、A 10、D二、读程序题(每个选择3分,共45分)1、B2、A3、A4、C5、C6、B7、D8、D A B9、B D 10、C A11、C三、程序填空题(每空2分,共30分)1、①char m ②i<=j ③str[j-1]2、①argv[1] ②ch=fgetc(fp2) ③fputc(ch,fp1)3、①i+2 ②a[j]!=0&&a[i]!=0&&a[j]%a[i]==0 ③count%10==04、①-sign ②num* ③%ld5、①i=0 ②s[i]!=’\0’③i%2==0??真题十第二十八次等级考试第一部分软件技术基础一、是非判断题(正确选填A,错误选填B)(每小题1分,共10分)1~10:AABAB AABBB二、单项选择题:(每小题1分,共5分)1~5 :DBAAC第二部分C与C++语言程序设计一、单项选择题(每小题1分,共10分)1、D2、B3、A4、C5、B6、D7、C8、A9、B 10、D二、读程序题(每个选择3分,共45分)1、B2、A C3、D4、A5、B6、A7、A C8、D9、B 10、B C11、C 12、D三、程序填空题(每空2分,共30分)1、①*(s+i)或*(s+i)!='\0' ②return cnt; ③fun(str,ch)2、①-1 ②(2*i+1) ③*s=t;3、①b[i]=0 ②b[i]+ ③x[i][j]4、①i++ ②line=j ③fclose(fp)5、①k++ ②2 ③k-1??真题十一第二十九次等级考试第一部分软件技术基础一、是非判断题(正确选填A,错误选填B)(每小题1分,共10分)1~10:BAAAB ABABA二、单项选择题:(每小题1分,共5分)1~5 :AABDC第二部分C与C++语言程序设计一、单项选择题(每小题1分,共10分)1、C2、B3、A4、D5、B6、C7、B8、D9、A 10、D二、读程序题(每个选择3分,共45分)1、(1)D (2)C2、(1)B (2)A3、(1)C (2)D4、A5、B6、(1)D (2)C7、C 8、(1)B (2)C 9、B 10、A三、程序填空题(每空2分,共30分)1、①a[r][c] ②*row=r ③return a[r][c]2、①s+x/y ②x ③x+y3、①“score.dat”②scanf(“%f”,&score) ③fclose(fp)4、①char *sp ②strlen(sp) < strlen(sq[i]) ③fun(str)5、①n=0 ②a[j]=0 ③count<25??真题十二第三十次等级考试第一部分软件技术基础一、是非判断题(正确选填A,错误选填B)(每小题1分,共10分)1~10:二、单项选择题:(每小题1分,共5分)1~5 :第二部分C与C++语言程序设计一、单项选择题(每小题1分,共10分)1、D2、C3、B4、B5、A6、D7、B8、A9、D 10、C二、读程序题(每个选择3分,共45分)1、A C2、C A3、B B4、D B5、D B6、B7、A A8、C C三、程序填空题(每空2分,共30分)1、①n%base ②i>=0 ③a[d]2、①*d ②word ③result3、①3 ②"r" ③fgetc(fp1)4、①struct p t[100] ②&t[i].code ③t[i].code5、①n%i ②return 1 ③fun ( a[i] )??真题十三第三十一次等级考试第一部分软件技术基础一、是非判断题(每小题1分,共10分)1~10:ABABB ABBAA二、选择题(每小题1分,共5分)1~5 :CABDA第二部分C与C++语言程序设计一、单项选择题(每小题1分,共10分)1、A2、D3、B4、B5、D6、D7、D8、C9、B 10、B二、读程序题(每个选择3分,共45分)1、D C2、D3、D4、B5、D6、C A7、C B8、D A9、D C 10、C三、程序填空题(每空2分,共30分)1、①i ②w ③"\n"2、①5 ②m=m*10+t%10 ③t=t/103、①i+=3 ②j+=3 ③a[i]>a[j]4、①int a[] ②a[i]%j ③a[k]5、①i ②t*k ③-k机试真题答案??真题一一、程序调试题(文件名为test1-1.c)( 40 分)#include <stdio.h>#include <string.h>#include <stdlib.h>#define N 80void main(){ char str1[N],str2[N];int i,j,locat[10];int fun(char *,char *,int *);FILE *fp;if((fp=fopen("test1-1.dat","r"))=NULL) /* 改为:== */{ printf("Cannot open the file.\n");exit(0);}fgets(str1,fp); /* 改为:str1,N-1,fp */fgets(str2,N-1,fp);printf("str1:%s\nstr2:%s\n",str1,str2);fclose(fp);fun(str1,str2,locat); /* 改为:i= fun(str1,str2,locat); */ printf("arisen times: %d\n,start place:",i);for(j=0;j<i;j++)printf("%d, ",locat[j]);printf("\n");}int fun(char *p,char *q,int locat[]){ int len,i=0,posit=0;char *str;str=q;len=strlen(q);do{ if(*p=*q) /* 改为:*p != *q */{ p++;posit++;}else{while((*q!='\0')||(*q==*p)) /* 改为:&& */{ q++;p++;posit++;}if(*q=='\0'){locat[i]=posit-len;i++;}}q=str;}while(*p!='\0');return i;}评分标准:每改对一处得8分二、编程题(程序文件取名为test1-2.c)(60分)评分标准:1.fun函数编写40分:2. main函数编写20分:1)函数定义、形参书写正确(10分) 1)正确定义变量,并能正确的输出(10分) 2)算法正确(20分) 2)能正确调用fun函数(10分)3)返回值正确(10分)参考程序:# include <stdio.h>int fun(int *a){int i,j=0,qw,bw,sw,gw,s,t;for(i=1000;i<=9999;i++){qw=i/1000;bw=i/100%10;sw=i/10%10;gw=i%10;s=qw*10+sw;t=bw*10+gw;if( (s==5*t) &&(bw!=0) ){a[j]=i;j++;}}return j;}void main(){int a[100],i,j;j=fun(a);for(i=0;i<j;i++){printf("%6d",a[i]);if((i+1)%5==0)printf("\n");}}??真题二一、程序调试题(文件名为test2-1.c)( 40 分)#include <stdio.h>#include <string.h>#include <stdlib.h>#define N 5int fun(char s) /* 改为:*s */{ int i,j;j=strlen(s);for(i=0,j--;i<j;i++,j++) /* 改为:j-- */if(s[i]=s[j]) return 0; /* 改为:!= */return 1;}void main( ){ char s[20];FILE *fp;int i=0,j=0;if((*fp=fopen("test2-1.dat","r"))==NULL) /* 改为:fp */{ printf("Cannot open the file.\n");exit(0);}for(i=0;i<N;i++){ if(fun()) /* 改为:fun(s) */{printf("%s\n",s);j++;}}printf("\nnumber=%d\n",j);fclose(fp);}评分标准:每改对一处得8分二、编程题(程序文件取名为test2-2.c)(60分)评分标准:1.fun函数编写30分:2. main函数编写30分:1)函数定义、形参书写正确(10分) 1)数组定义及初始化正确(10分) 2)算法正确(20分) 2)能正确调用fun函数(5分) 3)能正确输出(15分)参考程序:# include <stdio.h># define N 4void fun(int a[][N]){int i,j;for(i=0;i<N;i++)for(j=0;j<i;j++)if(a[i][j]>a[j][i])a[j][i]=a[i][j];}void main(){int d[N][N]={{0,1,2,3},{7,6,4,5},{11,16,9,10},{15,22,33,8}}; int i,j;for(i=0;i<N;i++){ for(j=0;j<N;j++)printf("%6d",d[i][j]);printf("\n");}fun(d);for(i=0;i<N;i++){ printf("\n");for(j=0;j<N;j++)if(j>=i)printf("%6d",d[i][j]);elseprintf("%6c",' ');}}??真题三一、程序调试题(文件名为test3-1.c)( 40 分)#define N 20#include <stdlib.h>#include <stdio.h>void fun(int *a) /* 改为:int */{ int i,cnt=0;for(i=0;i<N;i++)if(a[i]>0) cnt++; /* 改为:< */ return cnt;}void main( ){ FILE *fp;int a[],i,cnt; /* 改为:a[N] */if((fp=fopen("test3-1.dat","r"))==NULL){ printf("Cannot open the file.\n");exit(0);}for(i=0;i<N;i++)fscanf(fp,"%d",a[i]); /* 改为:a+i */fclose(fp);fun(a); /* 改为:cnt=fun(a) */ printf("positive = %d\n",N-cnt);printf("negative = %d\n",cnt);}评分标准:每改对一处得8分二、编程题(程序文件取名为test3-2.c)(60分)评分标准:1.fun函数编写40分:2.main函数编写20分:1) 函数定义、形参书写正确10分1) 变量定义及输入正确10分2) 算法正确30分2) 能正确调用fun函数5分3) 输出结果正确5分参考程序:# define N 10# include <stdio.h>void fun(int a[],int where,int amount){int *p1,*p2,temp;p1=&a[where-1];p2=&a[where-2+amount];while( p1 <&a[where-1]+amount/2 ){temp=*p1;*p1=*p2;*p2=temp;p1++;p2--;}}void main(){int num[N],where,amount,i;printf("Input 10 number:\n");for(i=0;i<N;i++)scanf("%d",&num[i]);printf("\n");printf("How many numbers do you want to sort:");scanf("%d",&amount);printf("\nWhere do you want to start:");scanf("%d",&where);printf("\n");fun(num,where,amount);printf("\nresorted array as follow:\n");for(i=0;i<N;i++)printf("%d,",num[i]);printf("\n");}??真题四一、程序调试题(文件名为test4-1.c)( 40 分)#define N 20#include <stdlib.h>#include <stdio.h>int fun(int *a,int *even,int *odd) /* 改为:void */{int i,cnt=0;for(i=0;i<N;i++)if(a[j]%2==0) /* 改为:a[i] */*even++; /* 改为:(*even) */else(*odd)++;}void main( ){FILE *fp;int a[N],i,cnt,even=0,odd=0;if((fp=fopen("test4-1.dat","r"))==NULL){printf("Cannot open the file.\n");exit(0);}for(i=0;i<N;i++)fscanf("%d",a+i); /* 改为:fp,"%d",a+i */fclose(fp);fun(a,&even,odd); /* 改为:&odd */printf("even = %d\n",even);printf("odd = %d\n",odd);}评分标准:每改对一处得8分二、编程题(程序文件取名为test4-2.c)(60分)评分标准:1.fun函数编写40分:2.main函数编写20分:1) 函数定义、形参书写正确10分1) 变量定义及输入正确10分2) 算法正确30分2) 能正确调用fun函数5分3) 输出结果正确5分参考程序:# include <stdio.h># define N 5void main(){int i,a[N],b[N],cnt=0;int fun(int a[],int b[]);printf("Enter %d number: ",N);for(i=0;i<N;i++)scanf("%d",&a[i]);printf("cnt=%d\n",cnt);for(i=0;i<cnt;i++)printf("%6d",b[i]);}int fun(int a[],int b[]){int bb[4],cnt=0,i,j,k,flag;for(i=0;i<N;i++){bb[0]=a[i]/1000;bb[1]=a[i]/100%10;bb[2]=a[i]/10%10;bb[3]=a[i]%10;for(j=0;j<4;j++){if(bb[j]%2==0)flag=1;else{flag=0;break;}}if(flag==1)b[cnt++]=a[i];}return cnt;}??真题五一、程序调试题(文件名为test5-1.c)( 40 分)#define N 80#include <stdlib.h>#include <stdio.h>#include <string.h>void fun(char str[],char *cap,char *lower){ int i=0,j=0,k=0;while(str[j]!='\0') /* 改为:str[i] */ { if(str[i]>='a'&str[i]<='z') /* 改为:&& */ lower[j]=str[i]; /* 改为:j++ */ else if(str[i]>='A'&&str[i]<='Z')cap[k++]=str[i];i++;}cap[k]='\0';}void main( ){ FILE *fp;int str[N],cap[N],lower[N];if((fp=fopen("test5-1.dat","r"))==NULL){ printf("Cannot open the file.\n");exit(0);}fgets(str,0,fp); /* 改为:N */fclose(fp);fun(str,cap); /* 改为:str,cap,lower */printf(" %d capitalization : %s\n",strlen(cap),cap);printf(" %d lowercase : %s\n",strlen(lower),lower);}评分标准:每改对一处得8分二、编程题(程序文件取名为test5-2.c)(60分)评分标准:1.fun函数编写40分:2.main函数编写20分:1) 函数定义、形参书写正确10分1) 变量定义及输入正确10分2) 算法正确20分2) 能正确调用fun函数5分3) 返回正确10分3)输出结果正确5分参考程序:# include <stdio.h># define M 3# define N 4void main(){int matrix[3][4];int i,j,n;int fun(int a[M][N]);printf("Please input the elements of the matrix(3*4) row by row :\n");for(i=0;i<M;i++)for(j=0;j<N;j++)scanf("%d",&matrix[i][j]);n=fun(matrix);printf("result=%d\n", n);}int fun(int a[][N]){int i,j,max[M],min;for(i=0;i<M;i++){for(j=1;j<N;j++)if(max[i]<a[i][j])max[i]=a[i][j];}min=max[0];for(i=1;i<M;i++)if(min>max[i])min=max[i];return(min);}??真题六一、程序调试题(文件名为test6-1.c)( 40 分)#define N 10void printf(int n,int fac[],int x) /* 改为:myprintf */ {int j;printf("%3d its factors: ", x);for(j=0;j<n;j++)printf("%d ", fac[j]);printf("\n");}void find( int a[] , int fac[] ){int i, count,s,j;for(i=0;i<N;i++){count=0;for(j=0;j<a[i];j++) /* 改为:j=1 */if(a[i]%j==0)fac[count++]=j;s=0;for(j=0;j<count;j++)s=fac[j]; /* 改为:+= */if(s==a[i])myprintf(count,fac,s);}}void main( ){int i,a[N],fac[N];FILE *fp;fp=fopen("test6-1.dat","r");if(fp=NULL) /* 改为:== */{printf("Can not open file!\n");exit(0);}for(i=0;i<N;i++)fscanf(fp,"%d",&a[i]);fclose(fp);find(a);}评分标准:每改对一处得8分二、编程题(程序文件取名为test6-2.c)(60分)评分标准:1.fun函数编写40分:2.main函数编写20分:1) 函数定义、形参书写正确10分1) 变量定义及输入输出正确15分2) 算法正确20分2) 能正确调用fun函数5分3) 返回正确10分参考程序:# include <stdio.h># define N 10void main(){int x[N],i,n;int fun(int *);for(i=0;i<N;i++)scanf("%d",x+i);n=fun(x);printf("index=%d,max=%d\n",n,x[n]);}int fun(int x[]){int i,max,k=0;max=x[0];for(i=1;i<N;i++)if(x[i]>max){max=x[i];k=i;}return k;}。

国家电网公司专业技术人员电力英语水平考试题库答案第二版完整

国家电网公司专业技术人员电力英语水平考试题库答案第二版完整

国家电网公司专业技术人员电力英语水平考试题库答案(第二版)单项选择Section11.The orange is too high onthe tree . It’s out of myreach(伸出手).I needsomeone to help me.2.The city is named afterfamous president. (这个城市是着名的总统名字命名的) named after短语”命名”3.It took millions of peopleseveral years to build theGreat Wall.4.I have alwaysconsidered(考虑过的/认为) you my best friend.5.If I take this medicinetwice a day, it should cure(治愈)my cold.. 如果我服用此药,一天两次,就应该治愈我的感冒6.It is considerate of youto turn down the radiowhile your sister is stillill in bed. 这是体贴你调低收音机,你的妹妹还在床上生病。

7.It’s not quite certain肯定that he will bepresent at the meeting. 这不是肯定的是,他将出席会议8.It was natural (自然)thathe count(计算)the daysbefore going home.9.when she saw the clouds(乌去密布) she went back tohouse to fetch(取) herumbrella(伞).10.The metals which we find inthe earth include(包括)iron , lead and copper. 在我们地球上发现金属包括有铁,铅和铜11.Your hair needs to becut(剪) ;would you like meto do it for you..12.It was difficult难toguess猜测what herreaction反应 to the news消息 would be.13.Contrary相反to yourprediction预言, theylost the game..14.We say that a person hasgood manners if he or sheis polite , kind andhelpful to others. 我们说一个人具有良好的风度,如果他或她是有礼貌,善良和乐于助人。

四川省计算机二级c语言考试试题及答案及解析

四川省计算机二级c语言考试试题及答案及解析

四川省计算机二级c语言考试试题及答案及解析一、选择题(每题2分,共20分)1. C语言中,用于定义变量的关键字是()。

A. structB. intC. charD. float答案:B解析:在C语言中,定义变量时需要使用关键字,其中用于定义整型变量的关键字是int。

2. 下列哪个选项是合法的C语言标识符?()A. 2variableB. variable2C. _variableD. variable!答案:C解析:C语言中标识符可以由字母、数字、下划线组成,但不能以数字开头。

3. C语言中,用于表示逻辑“与”操作的运算符是()。

A. &&B. ||C. ==D. =答案:A解析:在C语言中,逻辑“与”操作符是&&,用于比较两个表达式是否都为真。

4. 下列哪个选项不是C语言中的控制语句?()A. ifB. switchC. forD. goto答案:D解析:goto语句虽然在C语言中存在,但它不是控制语句,而是一种跳转语句。

5. 在C语言中,用于定义一个结构体的关键字是()。

A. structB. unionC. enumD. typedef答案:A解析:struct关键字用于定义一个结构体类型。

6. 下列哪个选项是C语言中的预处理指令?()A. #includeB. #defineC. #ifD. All of the above答案:D解析:#include、#define和#if都是C语言中的预处理指令。

7. C语言中,用于表示逻辑“或”操作的运算符是()。

A. &&B. ||C. ==D. =答案:B解析:逻辑“或”操作符是||,用于比较两个表达式是否至少有一个为真。

8. C语言中,用于表示逻辑“非”操作的运算符是()。

A. !B. &&C. ||D. =答案:A解析:逻辑“非”操作符是!,用于取反一个表达式的逻辑值。

9. 在C语言中,用于定义一个数组的关键字是()。

2015四川省计算机等级考试二级试题及答案

2015四川省计算机等级考试二级试题及答案

1、软件需求分析阶段的工作,可以分为四个方面:需求获取、需求分析、编写需求规格说明书以及(B)A. 阶段性报告B. 需求评审C. 总结D. 都不正确2、在关系数据库中,用来表示实体之间联系的是(D)A. 树结构B. 网结构C. 线性表D. 二维表3、在软件生命周期中,能准确地确定软件系统必须做什么和必须具备哪些功能的阶段是(D)A. 概要设计B. 详细设计C. 可行性分析D. 需求分析4、对长度为N的线性表进行顺序查找,在最坏情况下所需要的比较次数为(B) 注:要牢记A. N+1B. NC. (N+1)/2D. N/25、数据的存储结构是指(B)A. 数据所占的存储空间量B. 数据的逻辑结构在计算机中的表示C. 数据在计算机中的顺序存储方式D. 存储在外存中的数据6、对长度为N的线性表进行顺序查找,在最坏情况下所需要的比较次数为(B) 注:要牢记A. N+1B. NC. (N+1)/2D. N/27、数据库系统的核心是(B)A. 数据模型B. 数据库管理系统C. 软件工具D. 数据库8、在深度为5的满二叉树中,叶子结点的个数为(C)A. 32B. 31C. 16D. 159、软件需求分析阶段的工作,可以分为四个方面:需求获取、需求分析、编写需求规格说明书以及(B)A. 阶段性报告B. 需求评审C. 总结D. 都不正确10、数据流图用于抽象描述一个软件的逻辑模型,数据流图由一些特定的图符构成。

下列图符名标识的图符不属于数据流图合法图符的是(A)A. 控制流B. 加工C. 数据存储D. 源和潭11、希尔排序法属于哪一种类型的排序法(B)A.交换类排序法B.插入类排序法C.选择类排序法D.建堆排序法12、下列模式中,能够给出数据库物理存储结构与物理存取方法的是(A)A. 内模式B. 外模式C. 概念模式D. 逻辑模式13、在下列选项中,哪个不是一个算法一般应该具有的基本特征(C)A. 确定性B. 可行性C. 无穷性D. 拥有足够的情报14、关系数据库管理系统能实现的专门关系运算包括(B)A. 排序、索引、统计B. 选择、投影、连接C. 关联、更新、排序D.显示、打印、制表15、对建立良好的程序设计风格,下面描述正确的是(A)A. 程序应简单、清晰、可读性好B. 符号名的命名要符合语法C. 充分考虑程序的执行效率D. 程序的注释可有可无16、设有下列二叉树:图见书P46对此二叉树中序遍历的结果为(B)A. ABCDEFB. DBEAFCC. ABDECFD. DEBFCA17、下面不属于软件工程的3个要素的是(D)A. 工具B. 过程C. 方法D. 环境18、用树形结构来表示实体之间联系的模型称为(B)A. 关系模型B. 层次模型C. 网状模型D. 数据模型19、设一棵完全二叉树共有699个结点,则在该二叉树中的叶子结点数为(B) 注:利用公式n=n0+n1+n2、n0=n2+1和完全二叉数的特点可求出A. 349B. 350C. 255D. 351。

四川省第31次计算机二级(VF)考试笔试+答案

四川省第31次计算机二级(VF)考试笔试+答案

四川省普通高等学校计算机应用知识和能力第三十一次等级考试二级(数据库)笔试试卷第二部分数据库语言(Visual FoxPro)程序设计(共85分)一、单项选择题(每小题1分,共15分)3.在Visual Foxpro中进行参照完整性设置时,如果设置成:当更改父表中的主关键字段或7.多表操作中,已经在2、3、5号工作区上打开了多个表,此时执行select 0,选择的当前14.将文本框的PASSWORDCHAR属性值设置为星号“*”,那么,当在文本框中办理入“计算机”,文本框中显示的是()1. 阅读下面程序STORE O TO X,YDO WHILE .T.X=X+1Y=Y+XIF X>15EXITENDIFENDDO?"Y="+STR(Y,4)RETURN2. 阅读下面程序3. 阅读下面程序数据库“等级考试.DBC”中有“学生”和“成绩”两个数据表:学生(考号C(6),姓名C(2),性别C(2),党团员L)成绩(考号C(6) ,笔试成绩N(3),设计成绩N(3),总分N(5,1))程序如下:SELECT TOP 3 学生.考号,学生.姓名,学生.性别,成绩.总分;FROM 等级考试!学生,成绩;ORDER BY 总分;WHERE 学生.考号=成绩.考号4. 阅读下面程序段在表单设计器中设计了一个表单,包含1个标签Label1、1个命令按钮Command1和4个文本框Text1—Text4,如下图所示:命令按钮Command1的Click事件代码如下:A=thisform.text1.valueB=thisform.text2.valueC=thisform.text3.valueIf max(a,b)<cThisform.text4.value=max(a,b)ElseIf min(a,b)<cThisform.text4.value=cElseThisform.text4.value=min(a,b)EndifThisform.text11.setfocus(1)该表单实现的功能是()三、程序填空题(每空2分,共40分)1. 在关系数据库的基本操作中,从关系中制取满足条件的元组的操作为。

SCJP认证试题及答案

SCJP认证试题及答案

转载对题目和答案谨做参考Q1A method is ...1) an implementation of an abstraction.2) an attribute defining the property of a particular abstraction.3) a category of objects.4) an operation defining the behavior for a particular abstraction.5) a blueprint for making operations.Q2An object is ...1) what classes are instantiated from.2) an instance of a class.3) a blueprint for creating concrete realization of abstractions.4) a reference to an attribute.5) a variable.Q3Which line contains a constructor in this class definition?public class Counter { // (1)int current, step;public Counter(int startValue, int stepValue) { // (2)set(startValue);setStepValue(stepValue);}public int get() { return current; } // (3)public void set(int value) { current = value; } // (4)public void setStepValue(int stepValue) { step = stepValue; } // (5) }1) Code marked with (1) is a constructor2) Code marked with (2) is a constructor3) Code marked with (3) is a constructor4) Code marked with (4) is a constructor5) Code marked with (5) is a ConstructorQ4Given that Thing is a class, how many objects and reference variables are created by the following code?Thing item, stuff;item = new Thing();Thing entity = new Thing();1) One object is created2) Two objects are created3) Three objects are created4) One reference variable is created5) Two reference variables are created6) Three reference variables are created.Q5An instance member…1) is also called a static member2) is always a variable3) is never a method4) belongs to a single instance, not to the class as a whole5) always represents an operationQ6How do objects pass messages in Java?1) They pass messages by modifying each other's member variables2) They pass messages by modifying the static member variables of each other's classes3) They pass messages by calling each other's instance member methods4) They pass messages by calling static member methods of each other's classes.Q7Given the following code, which statements are true?class A {int value1;}class B extends A {int value2;}1) Class A extends class B.2) Class B is the superclass of class A.3) Class A inherits from class B.4) Class B is a subclass of class A.5) Objects of class A have a member variable named value2.Q8If this source code is contained in a file called SmallProg.java, what command should be used to compile it using the JDK?public class SmallProg {public static void main(String args[]) { System.out.println("Good luck!"); }}1) java SmallProg2) avac SmallProg3) java SmallProg.java4) javac SmallProg.java5) java SmallProg mainQ9Given the following class, which statements can be inserted at position 1 without causing the code to fail compilation?public class Q6db8 {int a;int b = 0;static int c;public void m() {int d;int e = 0;// Position 1}}1) a++;2) b++;3) c++;4) d++;5) e++;Q10Which statements are true concerning the effect of the >> and >>> operators?1) For non-negative values of the left operand, the >> and >>> operators will have the same effect.2) The result of (-1 >> 1) is 0.3) The result of (-1 >>> 1) is -1.4) The value returned by >>> will never be negative as long as the value of the right operand is equal to or greater than 1.5) When using the >> operator, the leftmost bit of the bit representation of the resulting value will always be the same bit value as the leftmost bit of the bit representation of the left operand.Q11What is wrong with the following code?class MyException extends Exception {}public class Qb4ab {public void foo() {try {bar();} finally {baz();} catch (MyException e) {}}public void bar() throws MyException {throw new MyException();}public void baz() throws RuntimeException {throw new RuntimeException();}}1) Since the method foo() does not catch the exception generated by the method baz(), it must declare the RuntimeException in its throws clause.2) A try block cannot be followed by both a catch and a finally block.3) An empty catch block is not allowed.4) A catch block cannot follow a finally block.5) A finally block must always follow one or more catch blocks.Q12What will be written to the standard output when the following program is run?public class Qd803 {public static void main(String args[]) {String word = "restructure";System.out.println(word.substring(2, 3));}}1) est2) es3) str4) st5) sQ13Given that a static method doIt() in a class Work represents work to be done, what block of code will succeed in starting a new thread that will do the work?CODE BLOCK A:Runnable r = new Runnable() { public void run() {Work.doIt();}};Thread t = new Thread(r);t.start();CODE BLOCK B:Thread t = new Thread() {public void start() {Work.doIt();}};t.start();CODE BLOCK C:Runnable r = new Runnable() { public void run() {Work.doIt();}};r.start();CODE BLOCK D:Thread t = new Thread(new Work()); t.start();CODE BLOCK E:Runnable t = new Runnable() { public void run() {Work.doIt();}};t.run();1) Code block A.2) Code block B.3) Code block C.4) Code block D.5) Code block E.Q14Write a line of code that declares a variable named layout of type LayoutManager and initializes it with a new object, which when used with a container can lay out components in a rectangular grid of equal-sized rectangles, 3 components wide and 2 components high.Q15public class Q275d {static int a;int b;public Q275d() {int c;c = a;a++;b += c;}public static void main(String args[]) {new Q275d();}}1) The code will fail to compile, since the constructor is trying to access static members.2) The code will fail to compile, since the constructor is trying to use static member variable a before it has been initialized.3) The code will fail to compile, since the constructor is trying to use member variable b before it has been initialized.4) The code will fail to compile, since the constructor is trying to use local variable c before it has been initialized.5) The code will compile and run without any problems.Q16What will be written to the standard output when the following program is run?public class Q63e3 {public static void main(String args[]) {System.out.println(9 ^ 2);}}1) 812) 73) 114) 05) falseQ17Which statements are true concerning the default layout manager for containers in the java.awt package?1) Objects instantiated from Panel do not have a default layout manager.2) Objects instantiated from Panel have FlowLayout as default layout manager.3) Objects instantiated from Applet have BorderLayout as default layout manager.4) Objects instantiated from Dialog have BorderLayout as default layout manager.5) Objects instantiated from Window have the same default layout manager as instances of Applet.Q18Which declarations will allow a class to be started as a standalone program?1) public void main(String args[])2) public void static main(String args[])3) public static main(String[] argv)4) final public static void main(String [] array)5) public static void main(String args[])Q19Under which circumstances will a thread stop?1) The method waitforId() in class MediaTracker is called.2) The run() method that the thread is executing ends.3) The call to the start() method of the Thread object returns.4) The suspend() method is called on the Thread object.5) The wait() method is called on the Thread object.Q20When creating a class that associates a set of keys with a set of values, which of these interfaces is most applicable?1) Collection2) Set3) SortedSet4) MapQ21What does the value returned by the method getID() found in class java.awt.AWTEvent uniquely identify?1) The particular event instance.2) The source of the event.3) The set of events that were triggered by the same action.4) The type of event.5) The type of component from which the event originated.Q22What will be written to the standard output when the following program is run?class Base {int i;Base() {add(1);}void add(int v) {i += v;}void print() {System.out.println(i);}}class Extension extends Base {Extension() {add(2);}void add(int v) {i += v*2;}}public class Qd073 {public static void main(String args[]) {bogo(new Extension());}static void bogo(Base b) {b.add(8);b.print();}}1) 92) 183) 204) 215) 22Q23Which lines of code are valid declarations of a native method when occurring within the declaration of the following class?public class Qf575 {// insert declaration of a native method here}1) native public void setTemperature(int kelvin);2) private native void setTemperature(int kelvin);3) protected int native getTemperature();4) public abstract native void setTemperature(int kelvin);5) native int setTemperature(int kelvin) {}Q24How does the weighty property of the GridBagConstraints objects used in grid bag layout affect the layout of the components?1) It affects which grid cell the components end up in.2) It affects how the extra vertical space is distributed.3) It affects the alignment of each component.4) It affects whether the components completely fill their allotted display area vertically.Q25Which statements can be inserted at the indicated position in the following code to make the program write 1 on the standard output when run?public class Q4a39 {int a = 1;int b = 1;int c = 1;class Inner {int a = 2;int get() {int c = 3;// insert statement herereturn c;}}Q4a39() {Inner i = new Inner();System.out.println(i.get());}public static void main(String args[]) {new Q4a39();}}1) c = b;2) c = this.a;3) c = this.b;4) c = Q4a39.this.a;5) c = c;Q26Which is the earliest line in the following code after which the object created on the line marked (0) will be a candidate for being garbage collected, assuming no compiler optimizations are done?public class Q76a9 {static String f() {String a = "hello";String b = "bye"; // (0)String c = b + "!"; // (1)String d = b;b = a; // (2)d = a; // (3)return c; // (4)}public static void main(String args[]) {String msg = f();System.out.println(msg); // (5)}}1) The line marked (1).2) The line marked (2).3) The line marked (3).4) The line marked (4).5) The line marked (5).Q27Which methods from the String and StringBuffer classes modify the object on which they are called?1) The charAt() method of the String class.2) The toUpperCase() method of the String class.3) The replace() method of the String class.4) The reverse() method of the StringBuffer class.5) The length() method of the StringBuffer class.Q28Which statements, when inserted at the indicated position in the following code, will cause a runtime exception when attempting to run the program?class A {}class B extends A {}class C extends A {}public class Q3ae4 {public static void main(String args[]) {A x = new A();B y = new B();C z = new C();// insert statement here}}1) x = y;2) z = x;3) y = (B) x;4) z = (C) y;5) y = (A) y;Q29Which of these are keywords in Java?1) default2) NULL3) String4) throws5) longQ30It is desirable that a certain method within a certain class can only be accessed by classes that are defined within the same package as the class of the method. How can such restrictions be enforced?1) Mark the method with the keyword public.2) Mark the method with the keyword protected.3) Mark the method with the keyword private.4) Mark the method with the keyword package.5) Do not mark the method with any accessibility modifiers.Q31Which code fragments will succeed in initializing a two-dimensional array named tab with a size that will cause the expression tab[3][2] to access a valid element?CODE FRAGMENT A:int[][] tab = {{ 0, 0, 0 },{ 0, 0, 0 }};CODE FRAGMENT B:int tab[][] = new int[4][];for (int i=0; iCODE FRAGMENT C:int tab[][] = {0, 0, 0, 0,0, 0, 0, 0,0, 0, 0, 0,0, 0, 0, 0};CODE FRAGMENT D:int tab[3][2];CODE FRAGMENT E:int[] tab[] = { {0, 0, 0}, {0, 0, 0}, {0, 0, 0}, {0, 0, 0} };1) Code fragment A.2) Code fragment B.3) Code fragment C.4) Code fragment D.5) Code fragment E.Q32What will be the result of attempting to run the following program?public class Qaa75 {public static void main(String args[]) {String[][][] arr = {{ {}, null },{ { "1", "2" }, { "1", null, "3" } },{},{ { "1", null } }};System.out.println(arr.length + arr[1][2].length);}}1) The program will terminate with an ArrayIndexOutOfBoundsException.2) The program will terminate with a NullPointerException.3) 4 will be written to standard output.4) 6 will be written to standard output.5) 7 will be written to standard output.Q33Which expressions will evaluate to true if preceded by the following code? String a = "hello";String b = new String(a);String c = a;char[] d = { 'h', 'e', 'l', 'l', 'o' };1) (a == "Hello")2) (a == b)3) (a == c)4) a.equals(b)5) a.equals(d)Q34Which statements concerning the following code are true?class A {public A() {}public A(int i) { this(); }}class B extends A {public boolean B(String msg) { return false; }}class C extends B {private C() { super(); }public C(String msg) { this(); }public C(int i) {}}1) The code will fail to compile.2) The constructor in A that takes an int as an argument will never be called as a result of constructing an object of class B or C.3) Class C has three constructors.4) Objects of class B cannot be constructed.5) At most one of the constructors of each class is called as a result of constructing an object of class C.Q35Given two collection objects referenced by col1 and col2, which of these statements are true?1) The operation col1.retainAll(col2) will not modify the col1 object.2) The operation col1.removeAll(col2) will not modify the col2 object.3) The operation col1.addAll(col2) will return a new collection object,containing elements from both col1 and col2.4) The operation col1.containsAll(Col2) will not modify the col1 object.Q36Which statements concerning the relationships between the following classes are true?class Foo {int num;Baz comp = new Baz();}class Bar {boolean flag;}class Baz extends Foo {Bar thing = new Bar();double limit;}1) A Bar is a Baz.2) A Foo has a Bar.3) A Baz is a Foo.4) A Foo is a Baz.5) A Baz has a Bar.Q37Which statements concerning the value of a member variable are true, when no explicit assignments have been made?1) The value of an int is undetermined.2) The value of all numeric types is zero.3) The compiler may issue an error if the variable is used before it is initialized.4) The value of a String variable is "" (empty string).5) The value of all object variables is null.Q38Which statements describe guaranteed behavior of the garbage collection and finalization mechanisms?1) Objects are deleted when they can no longer be accessed through any reference.2) The finalize() method will eventually be called on every object.3) The finalize() method will never be called more than once on an object.4) An object will not be garbage collected as long as it is possible for an active part of the program to access it through a reference.5) The garbage collector will use a mark and sweep algorithm.Q39Which code fragments will succeed in printing the last argument given on the command line to the standard output, and exit gracefully with no output if no arguments are given?CODE FRAGMENT A:public static void main(String args[]) {if (args.length != 0)System.out.println(args[args.length-1]);}CODE FRAGMENT B:public static void main(String args[]) {try { System.out.println(args[args.length]); }catch (ArrayIndexOutOfBoundsException e) {}}CODE FRAGMENT C:public static void main(String args[]) {int ix = args.length;String last = args[ix];if (ix != 0) System.out.println(last);}CODE FRAGMENT D:public static void main(String args[]) {int ix = args.length-1;if (ix > 0) System.out.println(args[ix]);}CODE FRAGMENT E:public static void main(String args[]) {try { System.out.println(args[args.length-1]); }catch (NullPointerException e) {}}1) Code fragment A.2) Code fragment B.3) Code fragment C.4) Code fragment D.5) Code fragment E.Q40Which of these statements concerning the collection interfaces are true?1) Set extends Collection.2) All methods defined in Set are also defined in Collection.3) List extends Collection.4) All methods defined in List are also defined in Collection.5) Map extends Collection.Q41What is the name of the method that threads can use to pause their execution until signalled to continue by another thread?Fill in the name of the method (do not include a parameter list).Q42Given the following class definitions, which expression identifies whether the object referred to by obj was created by instantiating class B rather than classes A, C and D?class A {}class B extends A {}class C extends B {}class D extends A {}1) obj instanceof B2) obj instanceof A && ! (obj instanceof C)3) obj instanceof B && ! (obj instanceof C)4) obj instanceof C || obj instanceof D5) (obj instanceof A) && ! (obj instanceof C) && ! (obj instanceof D)Q43What will be written to the standard output when the following program is run?public class Q8499 {public static void main(String args[]) {double d = -2.9;int i = (int) d;i *= (int) Math.ceil(d);i *= (int) Math.abs(d);System.out.println(i);}}1) 122) 183) 84) 125) 27Q44What will be written to the standard output when the following program is run?public class Qcb90 {int a;int b;public void f() {a = 0;b = 0;int[] c = { 0 };g(b, c);System.out.println(a + " " + b + " " + c[0] + " ");}public void g(int b, int[] c) {a = 1;b = 1;c[0] = 1;}public static void main(String args[]) {Qcb90 obj = new Qcb90();obj.f();}}1) 0 0 02) 0 0 13) 0 1 04) 1 0 05) 1 0 1Q45Which statements concerning the effect of the statement gfx.drawRect(5, 5, 10, 10) are true, given that gfx is a reference to a valid Graphics object?1) The rectangle drawn will have a total width of 5 pixels.2) The rectangle drawn will have a total height of 6 pixels.3) The rectangle drawn will have a total width of 10 pixels.4) The rectangle drawn will have a total height of 11 pixels.Q46Given the following code, which code fragments, when inserted at the indicated location, will succeed in making the program display a button spanning the whole window area?import java.awt.*;public class Q1e65 {public static void main(String args[]) {Window win = new Frame();Button but = new Button("button");// insert code fragment herewin.setSize(200, 200);win.setVisible(true);}}1) win.setLayout(new BorderLayout()); win.add(but);2) win.setLayout(new GridLayout(1, 1)); win.add(but);3) win.setLayout(new BorderLayout()); win.add(but, BorderLayout.CENTER);4) win.add(but);5) win.setLayout(new FlowLayout()); win.add(but);Q47Which method implementations will write the given string to a file named "file", using UTF8 encoding?IMPLEMENTATION A:public void write(String msg) throws IOException {FileWriter fw = new FileWriter(new File("file"));fw.write(msg);fw.close();}IMPLEMENTATION B:public void write(String msg) throws IOException {OutputStreamWriter osw =new OutputStreamWriter(new FileOutputStream("file"), "UTF8");osw.write(msg);osw.close();}IMPLEMENTATION C:public void write(String msg) throws IOException { FileWriter fw = new FileWriter(new File("file"));fw.setEncoding("UTF8");fw.write(msg);fw.close();}IMPLEMENTATION D:public void write(String msg) throws IOException { FilterWriter fw = FilterWriter(new FileWriter("file"), "UTF8"); fw.write(msg);fw.close();}IMPLEMENTATION E:public void write(String msg) throws IOException { OutputStreamWriter osw = new OutputStreamWriter(new OutputStream(new File("file")), "UTF8");osw.write(msg);osw.close();}1) Implementation A.2) Implementation B.3) Implementation C.4) Implementation D.5) Implementation E.Q48Which are valid identifiers?1) _class2) $value$3) zer@4) ¥ngstr5) 2muchuqQ49What will be the result of attempting to compile and run the following program?public class Q28fd {public static void main(String args[]) {int counter = 0;l1:for (int i=10; i<0; i--) {l2:int j = 0;while (j < 10) {if (j > i) break l2;if (i == j) {counter++;continue l1;}}counter--;}System.out.println(counter);}}1) The program will fail to compile.2) The program will not terminate normally.3) The program will write 10 to the standard output.4) The program will write 0 to the standard output.5) The program will write 9 to the standard output.Q50Given the following interface definition, which definitions are valid?interface I {void setValue(int val);int getValue();}DEFINITION A:(a) class A extends I {int value;void setValue(int val) { value = val; }int getValue() { return value; }}DEFINITION B:(b) interface B extends I {void increment();}DEFINITION C:(c) abstract class C implements I {int getValue() { return 0; }abstract void increment();}DEFINITION D:(d) interface D implements I {void increment();}DEFINITION E:(e) class E implements I {int value;public void setValue(int val) { value = val; } }1) Definition A.2) Definition B.3) Definition C.4) Definition D.5) Definition E.Q51Which statements concerning the methods notify() and notifyAll() are true?1) Instances of class Thread have a method called notify().2) A call to the method notify() will wake the thread that currently owns the monitor of the object.3) The method notify() is synchronized.4) The method notifyAll() is defined in class Thread.5) When there is more than one thread waiting to obtain the monitor of an object, there is no way to be sure which thread will be notified by the notify() method.Q52Which statements concerning the correlation between the inner and outer instances of non-static inner classes are true?1) Member variables of the outer instance are always accessible to inner instances, regardless of their accessibility modifiers.2) Member variables of the outer instance can never be referred to using only the variable name within the inner instance.3) More than one inner instance can be associated with the same outer instance.4) All variables from the outer instance that should be accessible in the inner instance must be declared final.5) A class that is declared final cannot have any inner classes.Q53What will be the result of attempting to compile and run the following code?public class Q6b0c {public static void main(String args[]) {int i = 4;float f = 4.3;double d = 1.8;int c = 0;if (i == f) c++;if (((int) (f + d)) == ((int) f + (int) d)) c += 2;System.out.println(c);}}1) The code will fail to compile.2) 0 will be written to the standard output.3) 1 will be written to the standard output.4) 2 will be written to the standard output.5) 3 will be written to the standard output.Q54Which operators will always evaluate all the operands?1) ||2) +3) &&4) ? :5) %Q55Which statements concerning the switch construct are true?1) All switch statements must have a default label.2) There must be exactly one label for each code segment in a switch statement.3) The keyword continue can never occur within the body of a switch statement.4) No case label may follow a default label within a single switch statement.5) A character literal can be used as a value for a case label.Q56Which modifiers and return types would be valid in the declaration of a working main() method for a Java standalone application?1) private2) final3) static4) int5) abstractQ57What will be the appearance of an applet with the following init() method?public void init() {add(new Button("hello"));}1) Nothing appears in the applet.2) A button will cover the whole area of the applet.3) A button will appear in the top left corner of the applet.4) A button will appear, centered in the top region of the applet.5) A button will appear in the center of the applet.Q58Which statements concerning the event model of the AWT are true?1) At most one listener of each type can be registered with a component.2) Mouse motion listeners can be registered on a List instance.3) There exists a class named ContainerEvent in package java.awt.event.4) There exists a class named MouseMotionEvent in package java.awt.event.5) There exists a class named ActionAdapter in package java.awt.event.Q59Which statements are true, given the code new FileOutputStream("data", true) for creating an object of class FileOutputStream?1) FileOutputStream has no constructors matching the given arguments.2) An IOExeception will be thrown if a file named "data" already exists.3) An IOExeception will be thrown if a file named "data" does not already exist.4) If a file named "data" exists, its contents will be reset and overwritten.5) If a file named "data" exists, output will be appended to its current contents.Q60Given the following code, write a line of code that, when inserted at the indicated location, will make theoverriding method in Extension invoke the overridden method in class Base on the current object.class Base {public void print() {System.out.println("base");}}class Extention extends Base {public void print() {System.out.println("extension");// insert line of implementation here}}public class Q294d {public static void main(String args[]) {Extention ext = new Extention();ext.print();}}Fill in a single line of implementation.Q61Given that file is a reference to a File object that represents a directory, which code fragments will succeed in obtaining a list of the entries in the directory?1) Vector filelist = ((Directory) file).getList();2) String[] filelist = file.directory();3) Enumeration filelist = file.contents();4) String[] filelist = file.list();5) Vector filelist = (new Directory(file)).files();Q62What will be written to the standard output when the following program is run?。

四川对口高考第二次信息技术二类-答案

四川对口高考第二次信息技术二类-答案

2018年四川省对口升学考试研究联合体第二次联合考试信息技术二类专业综合试卷参考答案一㊁单项选择题(共25小题,每小题4分,共100分)1.B2.D3.D4.A5.B6.C7.D8.B9.C10.C11.C12.D 13.D 14.B 15.C16.A 17.C18.D 19.A 20.D 21.C22.A 23.D 24.B25.C二㊁判断题(共25小题,每小题2分,共50分)26.B27.B28.B29.A 30.B31.A 32.A 33.A 34.B35.A 36.A 37.B 38.B39.B40.A 41.B 42.B 43.B 44.A 45.A 46.A 47.A 48.B 49.A 50.B三㊁填空题(共25小题,每小题4分,共100分)51.-2f h52.0.4ˑ10-2500053.0.554.10s i n(10πt+π2)A 55.2056.1000.5 57.不能58.单向导电性59.正常的60.零点漂移61.输出级变压器耦合62.小63.Y=A+E+C D64.相同为 1 ,相异为 0 65.M=2N66.167.多谐振荡器68.低69.单(或1)70.0F D H 71.L C A L L000B H 72.1228873.45H 74.1000H 10F F H 75.P C3~P C7四㊁分析计算题(共4小题,每小题10分,共40分)76.(1)W=10J(2)v=17.3m/s77.|Z|=10Ω,R=52Ω,L=22.5mH78.(1)真值表A B Y3Y2Y1Y0000001010010100100111000(2)Y0= A BY1= A BY2=A BY3=A B(3)逻辑功能为:2~4线译码器79.证明:ȵV AM =V OM =V C C -V C E S ʈV C CV O =V C C2ʑP OM =U 2R =V 2O R L =V C C 2æèçöø÷2R L =V 2C C2R L五㊁综合题(共4小题,每小题15分,共60分)80.(1)通过R 上电流方向为:DңC (2)安培力方向水平向左(3)v M =10m /s (4)P R =8W(5)U A B =18V ,A 点电位高81.R 3=0.6Ω82.A ㊁B ㊁C 表示红㊁黄㊁绿三灯;灯亮用 1 表示,灯灭用 0 表示;故障信号用Y 表示,有故障用 1 表示,无故障用 0表示㊂(1)真值表A B C Y 00010010010001111000101111011111(2)表达式为:Y = A B C ㊃A B ㊃B C ㊃A C(3)电路图如图所示83.①60H ②0B C H ③4C H ④1 ⑤1020H。

四川省及全国计算机二级考试C语言历年笔试真题及答案详解

四川省及全国计算机二级考试C语言历年笔试真题及答案详解

Simpo PDF Merge and Split Unregistered Version -
printf("%2d",strlen(str[i])); printf("\n"); for(i=0;i<5;i++) puts(str[i]); } (1) 27 (2) 28 main 函数中,第一个 for 循环的输出结果为: ( (A) 6 5 4 3 1 (B) 1 3 4 5 6 28 ) 。 (D)a abc aabcd abed aabcd (C) 7 6 5 4 2 (D) 2 4 5 6 7 main 函数中,第二个 for 循环的输出结果为: ( (A) abc aabcd abed (B)a abc abed (C)acdefg aabcd abed abc a 27 ) 。
第 3 页 共 11 页
Simpo PDF Merge and Split Unregistered Version -
25 (A) q->next=NULL; p=p->next; p->next=q; (C) p=p->next; q->next=p; p->next=q; 1. 下列程序运行的结果为 ( # include <stdio.h> # include <string.h> void fun(char *s,int m) { char t,*p1,*p2; p1=s; p2=s+m-1; while(p1<p2) { t=*p1++; *p1=*p2--; *p2=t; } } main() { char a[]="ABCDEFG"; fun(a,strlen(a)); puts(a); } (A) GFEDCBA (C) GAGGAGA 2. 读下列 C 程序,选择正确的输出结果。 # include <stdio.h> # include <string.h> void fun(char str[][10], int n) { char t[20]; int i,j; for(i=0;i<n-1;i++) for(j=i+1;j<n;j++) if( strlen(str[i]) < strlen(str[j]) ) { strcpy(t,str[i]); strcpy(str[i],str[j]); strcpy(str[j],t); } } main() { char str[][10]={"abc","aabcd","abed","a","acdefg"}; int i; fun(str,5); for(i=0;i<5;i++)

SCJP认证考试题库2

SCJP认证考试题库2

SCJP认证考试题库2What is the result?A. n ullB. zeroC. s omeD. C ompilation failsE. An exception is thrown at runtimeAnswer: ( D )13行会报错,应在15行使用else if 参考大纲:流程控制QUESTION 63Given the exhibit:What is the result?A. testB. ExceptionC. Compilation failsD. NullPointerExceptionAnswer: ( C )18行出错,应该先catch子异常,再catch Exception;13行把args赋null ,14行会报NullPointerException如果没有第13行运行时14行会报ArrayIndexOutOfBoundsException异常。

参考大纲:异常处理QUESTION 64Given the exhibit:What is the result?A. Compilation failsB. aAaA aAa AAaa AaAC. AAaa AaA aAa aAaAD. AaA AAaa aAaA aAaE. aAa AaA aAaA AAaaF. An exception is thrown at runtimeAnswer: ( C )第10行将对strings这个集合做自然排序(ASCII小到大,一个一个比较)Collections.sort(List list) 对list进行排序,对set 不能排序!List里可以放对象,所以当list里面存放的是对象的时候就不能用Collections.sort(List list)去排序了。

因为JVM不知道用什么规则去排序!!只有把对象类实现Comparable接口,然后改写compareTo()参考大纲:集合QUESTION 65Given the exhibit:What is the result?A. 0B. 1C. 2D. 3E. 4F. Compilation fails.G. An exception is thrown at runtimeAnswer: ( D )Set中存放的元素是无序不重复的。

四川省大学英语二级考试全真题答案

四川省大学英语二级考试全真题答案

四川省大学英语二级全真试题集答案试题一Section A (15%)Directions: There are 15 incomplete sentences in this part. For each sentence, there are four choices marked A), B), C) and D). You must choose the one answer that best completes the sentence. Then click on the corresponding button.16. Which is the largest number of the following? _______(得分:1分)A) Zero point eight B) Fifty percentC) Two divided by three D) Seventy percent17. Which is the smallest number of the following? (得分:1分)A) One-fifth B) Two-thirds.C) Zero point five D) A quarter.18. If you don’t go, ______ I(得分:1分)A) so do B) so don’tC) neither do D) nor shall19. The officer gave the order that soldiers ______ to go out at night(得分:1分)A) should not allow B) be not allowedC) mustn’t be allowed D) not be allowed20.Everything ______ if Albert hadn’t called the fire brigade(得分:1分)A) would have been destroyed B)would be destroyedC) will be destroyed D)will have been destroyed21. ______ he was in error will scarcely be noticed by his friends(得分:1分)A) That B) Which C) Though D) What22. The little baby was left alone, with ______ to look after it(得分:1分)A) no one B) not one C) someone D) anyone23. You ______ all those calculations! We have a computer to do that sort of thing(得分:1分)A) needn’t have done B) must not have doneC) cannot have done D)shouldn’t have done24._______terrible weather we’ve been having these days!(得分:1分)A) What B) How C) How a D) What a25.Young _____ he is, he knows what is the right thing to do(得分:1分)A) as B) whatever C) however D) that26. He went to work so late ______ the manager had to send for him again before he arrived(得分:1分)A) that B) for C) when D) as27.I won’t lend any money to Joe because I am afraid ______ he will forget to pay it back(得分:1分)A) that B) when C) of D) whether28.Today’s libraries differ greatly from ________(得分:1分)A) those of the past B) that past C) those past D) the past29.The family never agree about ______ shares of the property(得分:1分)A) their B) her C) his D) its30. The middle-aged man was seen _____ out of the house on the afternoon of the murder(得分:1分)A) to come B) came C) have come D)comeSection B (20%)Directions: There are 20 incomplete sentences in this partFor each sentence there are four choices marked A), B), C) and D)You must choose the one answer that best completes the sentenceThen click on the corresponding button.31.The sports meet was _____ because of the heavy rain(得分:1分)A) called off B) called on C) called for D) called up32.He died before he had _____ his last novel in January(得分:1分)A) completed B)compared C)competed D)complained33.Tom has checked in at the hotel with the ______ of his credit card(得分:1分)A) use B) help C) pay D)buy34.They have _____ out of paper, I will give them some(得分:1分)A)spent B)finished C)used D)run35.The heavy rain ______ the flood in Shanxi Province this summer(得分:1分)A) resulted to B) brought to C) led to D) caused to36.All employees are given three weeks of _____ each year(得分:1分)A) freedom B) occasion C) vacation D) travel37.The manager _____ the business very successfully(得分:1分)A) contacts B) conducts C) contest D)connects38.Mary’s _______ is to get a college education in China(得分:1分)A) positive B)objective C) active D) effective39.One of my _____ sentences is: There is no smoke without fire(得分:1分)A) favorite B)faithful C)favorable D) famous40.When I punished him he ____ by bursting into tears (得分:1分)A) reacted B) did C) acted D) made41.She appeared at the front door____ her finest jewel(得分:1分)A) wearing B) putting C) dressing D) having42.The meeting ____ at midnight and we all went home late(得分:1分)A) broke up B) broke off C) broke out D) broke down43.They usually _____ themselves by listening to light music(得分:1分)A) relax B) release C) relate D) rely44.His only________ now is how to earn enough money to support his family(得分:1分)A) concern B) task C) business D)care45.China has launched a number of________satellites since the 1970s(得分:1分)A) Communications B) information C) message D)TV46.When I got up this morning, I felt the temperature had__________(得分:1分)A) dropped B)sunk C)lowed D)fallen47.Jack was ill and had to_________in bed for six days(得分:1分)A) stay B) keep C) sleep D) lay48.Harry and Susan met at the restaurant and they liked each other _______(得分:1分)A) at first sight B) in sight C) out of sight D)within sight49.The manager will visit your parents ________ person(得分:1分)A) in B) for C) by D) of50.Please answer my question with your own ________ information(得分:1分)A) personal B) perfect C) probable D) pleasantPart III: Reading Comprehension (40%)Directions: There are five passages in this part. Each passage is followed by five questions or unfinished statements. For each question, there are four choices marked A), B), C) and D). You should choose the best answer. Then click on the corresponding button.Questions 51 to 55 are based on the following passage.Passage 1Two businessmen were invited to dinner at the home of a college professor. One of the men did not have much education and was worried that he might make a fool of himself, but his friend said, “Don’t worry, just do what I do, and don’t talk anything that you don’t really understand. ”The first man managed to get through the dinner successfully, but by the end of the evening he had had a lot to drink, and began to get careless.A guest asked him whether he liked Shakespeare, and he answered confidently, “It’s very pleasant, but I prefer SCOTCH苏格兰威士忌酒.”There was an uncomfortable silence in the room, and soon people began to leave.When the two friends were out of the house, the second man said to his friend, “ You certainly made a fool of yourself making that silly remark about scotch. ”“What do you mean? ” asked his friend, “What was wrong with it? ”“Everybody knows that Shakespeare isn’t a drink, ” the second man replied. “ It’s a kind of cheese.”51. Why was one of the businessmen worried? (得分:2分)A) Because he talked only about business.B) Because he was afraid of making a fool of himself.C) Because he did not do as his friend did.D) Because he was not familiar with the host and the guests.52. How did the first man answer the guest’s question? (得分:2分)A) He answered the question pleasantly.B) He didn’t like Shakespeare, a drink.C) He answered the question successfully.D) He didn’t like Shakespeare, the great writer.53. Why did the guests leave? (得分:2分)A) Because the two businessmen would leave.B) Because the first man was making fool of himself.C) Because the host was not warm-hearted.D) Because the guests were not interested in the drinks.54.What was the second businessman’s opinion on the subject? (得分:2分)A) Shakespeare was not famous.B) Shakespeare was a kind of cheese.C) Shakespeare was a great writer.D) Shakespeare was not his favorite.55. Which of the following is true according to the passage? (得分:2分)A) The first businessman is more foolish than the second one.B) The guests know for sure who Shakespeare was.C) The guests do not know who Shakespeare was.D) The second businessman is more foolish than the first one.Passage 2Some people like to live in houses of the past. They may choose to live in a wooden house. They say these kinds of houses are easy to build and warm in winter. Others like to live in houses of the future. They may live in a house which gets its energy from the sun.A few other people like to live in houses that have characteristics特征of both the past and future. These people may live in a house under the ground. Many people think underground houses are cold and dark, but that is not true. These houses have special windows in the roof or large windows on one side. These windows give the houses a lot of light.The idea of underground houses is very old. People in the past lived in underground houses and underground cities in China, Japan and Canada. Some countries also build underground factories and store-houses(仓库)to hold things.In the United States, more people are beginning to build underground houses since they save open land for parks, gardens and sport fields. Underground houses also save energy. They use only a little energy to stay warm or cool.Owners of these houses like them. John Bonard is an architect (建筑师) who built an underground house in New York. His wife, Barbara, is an outdoor person, but she likes her underground home. “It’s perfect. I love it,”she says.56. One example of houses of the past is ____________ houses. (得分:2分)A) sunny B) wooden C) warm D) cold57. Underground houses are _____________. (得分:2分)A) houses of the past B) neither cold nor darkC) not real houses D) both cold and old58. People in the United States begin to build underground houses because _______.(得分:2分)A) people there hate to live in citiesB) underground houses can save open land and energyC) people there like sportsD) it’s easier to build such houses in the United States59. Underground houses are all of the following EXCEPT ____________. (得分:2分)A) built under the ground B) both warm and coolC) more and more popular in the United States D) using less energy than ordinary houses60. The example of the Bonards shows that ____________. (得分:2分)A) people don’t really like to go out of their homesB) underground houses can make nice homesC) many people have underground homesD) underground cities will be built by John BonardPassage 3Started in 1636, Harvard University is the oldest of all the many colleges and universities in the United States. Yale, Princeton, Columbia and Dartmouth were opened soon after Harvard.In the early years, these schools were much alike. Only young men went to college. All the students studied the same subjects, and everyone learned Latin, Greek. Little was known about science then, and one kind of school could teach everything that was known about the world. When the students graduated, most of them became ministers or teachers.In 1782, Harvard started a medical school for young men who wanted to become doctors.Later, lawyers could receive their training in Harvard’s law school. In 1825, besides Latin and Greek, Harvard began teaching modern languages, such as French and German. Soon it began teaching American history.As knowledge increased, Harvard and other colleges began to teach many new subjects. Students were allowed to choose the subjects that interested them.Today, there are many different kinds of colleges and universities. Most of them are made up of smaller schools that deal with special fields of learning. There’s so much to learn that one kind of school can’t offer it all.61. The oldest university in the US is _________. (得分:2分)A) Princeton B) HarvardC) Yale D) Columbia62. From the second paragraph, we can see that in the early years, ______. (得分:2分)A) students studied only some languages and scienceB) colleges and universities were almost the sameC) people, young or old, might study in the collegesD) graduates became lawyers or teachers63. Modern languages the Harvard taught in 1825 were ________. (得分:2分)A) American history and German B) French and GermanC) Latin, Green, French and German D) Latin and Greek64. As knowledge increased, colleges began to teach_______. (得分:2分)A) everything that was known B) many new subjectsC) law and something about medicine D) the subjects that interested students65. On the whole, the passage is about___________. (得分:2分)A) how to start a university B) how colleges have changedC) the world-famous colleges in America D) what kind of lesson each college teaches Passage 4What if you were in a boat that stopped running? You might be far from land, How would you get back? You could call for a towboat.Towboats are small boats that move bigger boats. People on towboats can tie a line to a big boat. Then the towboats can pull from the front or sides. Or they can push from the back. Sometimes they don’t have to move the big boat at all. They might just bring someone to fix it. After it is working again, the big boat can go on its way.There are flat boats that can’t move withou t towboats pushing them. These flat boats carry goods over the water. They are very big. So they can hold a lot of things.Some flat boats carry wood. It comes from trees. People cut these down and saw them into logs. Then they put the wood on a flat b oat. That’s where the towboat comes in. It pushes the flat boat along. This is how the wood gets to a city that needs it.People who run boats are called captains. Captains of towboats know how to do many things. They have to get very close to a big boat to tie a line to it. At the same time, they must take care not to run into it. And they must know their way around the sea. Rocks may be just under the water. Captains must know how to keep their boats away from them.66. What you would probably do is to__ _if your boat stopped according to the first paragraph. (得分:2分)A) wait until somebody comes to you B) call for a towboatC) try to fix the boat D) row life-boat to the shore67. According to the passage a towboat is used to___. (得分:2分)A) be tied to a flat boat B) move bigger boatsC) carry wood D) bring somebody to a big boat68.The word “captain”in paragraph 5 refers to___. (得分:2分)A) an officer in the army B)a leader of crew on a shipC) a leader of a football team D)an officer in the police69. Which of the following is true according to the passage? (得分:2分)A) The towboat is one part of the flat boat.B) A towboat is usually smaller than a flat boat.C) The captain on a towboat can hardly locate under-water rocks.D) The captain on a towboat can keep carrying goods over water.70. What is mainly discussed in this passage? (得分:2分)A) Captain B) Towboat C) Flat boat D) Big boatPart IV: Translation (10%)Directions: There are five sentences in this part. For each sentence, five suggested Chinese translations are given. There are five choices marked A), B), C) , D) and E). You are expected to make the best choice. Then click on the corresponding button.71. Sometimes there are some foods you can not eat at a meal, you’d better explain it to your host clearly.A)就餐时有你不能吃的食物,你最好向你的主人解释原因。

国家电网公司专业技术人员电力英语水平考试题库答案(第二版)完整

国家电网公司专业技术人员电力英语水平考试题库答案(第二版)完整

国家电网公司专业技术人员电力英语水平考试题库答案单项选择Section11.The orange is too high on the tree . It’s outof my reach(伸出手).I need someone tohelp me.2.The city is named after famous president.(这个城市是著名的总统名字命名的)named after短语”命名”3.It took millions of people several years tobuild the Great Wall.4.I have always considered(考虑过的/认为)you my best friend.5.If I take this medicine twice a day, it shouldcure (治愈)my cold.. 如果我服用此药,一天两次,就应该治愈我的感冒6.It is considerate 考虑周到的of you toturn down the radio while your sister is stillill in bed. 这是体贴你调低收音机,你的妹妹还在床上生病。

7.It’s not quite certain 肯定that he will bepresent at the meeting. 这不是肯定的是,他将出席会议8.It was natural (自然)that he count(计算)the days before going home.9.when she saw the clouds(乌去密布) shewent back to house to fetch(取) herumbrella(伞).10.The metals which we find in the earthinclude(包括) iron , lead and copper. 在我们地球上发现金属包括有铁,铅和铜11.Your hair needs to be cut(剪) ;would youlike me to do it for you..12.It was difficult难to guess猜测what herreaction反应to the news消息would be.13.Contrary相反to your prediction预言,they lost the game..14.We say that a person has good manners ifhe or she is polite , kind and helpful toothers. 我们说一个人具有良好的风度,如果他或她是有礼貌,善良和乐于助人。

2023年9月GESP编程能力认证C++等级考试二级真题(含答案)

2023年9月GESP编程能力认证C++等级考试二级真题(含答案)

2023年9月GESP编程能力认证C++等级考试二级真题(含答案)一、单选题(每题2分,共30分)。

1.我国第一台大型通用电子计算机使用的逻辑部件是()。

A. 集成电路B. 大规模集成电路C. 晶体管D. 电子管标准答案:D。

2.下列流程图的输出结果是()。

标准答案:B。

3.如果要找出整数a,b中较大一个,通常要用下面哪种程序结构?()。

A. 顺序结构B. 循环结构C. 分支结构D. 跳转结构标准答案:C。

4.以下不是C++关键字的是()。

A. continueB. coutC. breakD. goto标准答案:B。

5.题C++表达式int(-123.123 / 10)的值是()。

A. -124B. -123C. -13D. -12标准答案:D。

6.以下C++代码实现从大到小的顺序输出N的所有因子。

例如,输入N = 18时输出18 9 6 3 2 1,横线处应填入()。

标准答案:C。

7.如下图所示,输出N行N列的矩阵,对角线为1,横线处应填入()。

标准答案:D。

8.下面C++代码用于判断N是否为质数(素数),约定输入N为大于等于2的正整数,请在横线处填入合适的代码()。

A. breakB. continueC. exitD. return标准答案:A。

9.下面C++代码执行后的输出是()。

A. 1#0B. 1#C. 1#1#1#1#1#1D. 1#1#1#1#1#1#0标准答案:D。

10.下面C++代码执行后的输出是()。

A. 16B. 28C. 35D. 36标准答案:A。

11.下面C++代码执行后的输出是()。

A. 1B. 3C. 15D. 没有输出标准答案:B。

12.下面C++代码执行后的输出是()。

标准答案:B 。

13.下面图形每一行从字母A 开始,以ABC 方式重复。

行数为输入的整数。

请在C++代码段横线处填入合适代码()。

标准答案:D 。

14.输入行数,约定1≤lineCount ≤9,输出以下图形。

四川省大学英语二级题库含解析与答案 (1)

四川省大学英语二级题库含解析与答案 (1)

1.Their victory is out of _C___, for they’ve lost too many men.他们的胜利是不可能的,因为他们已经失去了太多的人。

A questionB questionsC the questionD a question2.“Where is your father?” “Oh, ___B______”.A he here comesB here he comesC here comes heD here does he come3.Which is the largest number of the following? ____C___.下面那个最大A Fifty percent 50%B Two divided by three 2/3C Zero point eight0.8D Seventy percent70%4.The company is very famous _A_____ the high quality of its products.{这家公司由于产品质量高而闻名 be famous for 因。

闻名}A forB inC byD with5.Our factory has_____D____. {我们的工厂有许多消防设备}A. many fire equipmentsB. much equipment of fireC. many equipments of fireD. much fire equipment6.My teacher was made ____A__ his teaching because of his poor health {.be make to do sth }被迫做某事我的老师因为身体状况不好所以被迫放弃了教学A to give upB give upC given upD giving up7.Sometimes people just say eight-fifteen _D___ a quarter past eight. {8点15代替8点一刻}A out ofB ahead ofC because ofD instead of8.I feel very helpless to see the _B____ telephone bill.{我感觉非常的无助看到电话费的增多}A includingB increasingC declaringD decreasing9.I haven’t seen her for years, but I could still _A____ her voice on the phone."A recognizeB realizeC hearD know10.When I got up this morning, I felt the temperature had____B______.{今天早上我起床时,我感受到的温度已经下降}A sunkB fallenC droppedD lowed11.The mountain is __A____ 6.3 kilometers high, but it is not the highest one.A nearlyB nearC neatD neatly12.Frankly, I’d rather you ___A___ anything about it for the time being. {若表现现在或将来做某事从句谓语动词用过去时。

2024年3月GESP编程能力认证C++等级考试二级真题(含答案)

2024年3月GESP编程能力认证C++等级考试二级真题(含答案)

2024年3月GESP编程能力认证C++等级考试二级真题(含答案) 一、单选题(每题2分,共30分)。

1.下列流程图的输出结果是()。

A. 优秀B. 良好C. 不及格D. 没有输出2.以下选项中不符合C++变量命名规则的是()。

A. studentB. 2_fromC. _toD. Text3.以下选项中,不能用于表示分支结构的C++保留字是()。

A. switchB. returnC. elseD. if4.下列说法错误的是()。

A. while循环满足循环条件时不断地运行,直到指定的条件不满足为止。

B. if语句通常用于执行条件判断。

C. 在C++中可以使用foreach循环。

D. break和continue语句都可以用在for循环和while循环中。

5.下列4个表达式中,答案不是整数8的是()。

6.下面C++代码执行后的输出是()。

A.8B. 14C. 26D. 507.下面C++代码执行后的输出是()。

A.16B. 36C. 49D. 818.下面C++代码执行后的输出是()。

A. 2B. 3C. 4D. 59.下面C++代码执行后的输出是()。

A. 5B. 6C. 7D. 810.以下C++代码判断一个正整数N的各个数位是否都是偶数。

如果都是,则输出“是”,否则输出“否”。

例如N=2024时输出“是”,则横线处应填入()。

A.breakB. continueC. N=N/10D. N=N%1011.有句俗话叫“三天打渔,两天晒网”。

如果小杨前三天打渔,后两天晒网,一直重复这个过程,以下程序代码用于判断,第n天小杨是在打鱼还是晒网,横线处应填写()。

A.i==0B. i==4C. i==0&&i==4D. i==0||i==412.一个数的所有数字倒序排列后这个数的大小保持不变,这个数就是回文数,比如101与6886都是回文数,而100不是回文数。

以下程序代码用于判断一个数是否为回文数,横线处应填写()。

2022年四川省乐山市统招专升本计算机二模测试卷(含答案)

2022年四川省乐山市统招专升本计算机二模测试卷(含答案)

2022年四川省乐山市统招专升本计算机二模测试卷(含答案)学校:________ 班级:________ 姓名:________ 考号:________一、单选题(20题)1.Internet中计算机之间通信必须共同遵循的协议是()A.HTTPB.SMTPC.UDPD.TCP/IP2.在Word 2010的字体对话框中,不可设定文字的()A.字间距B.字号C.下划线线型D.行距3.在PowerPoint 2010中,下列有关模板的说法错误的是()A.它是控制演示文稿统一外观的最有力、最快捷的方法之一B.它是通用于各种演示文稿的模型,可直接应用于用户的演示文稿C.用户不可以自定义模板D.模板文件扩展名为.potx4.不能关闭Word 2010窗口的是()A.双击标题栏左边的B.单击标题栏右边的C.单击文件选项卡中的关闭D.单击文件选项卡中的退出5.下列有关域名和IP地址的说法中正确的是()A.IP地址仅分为A、B、C三类B.一个域名必须对应一个IP地址C.一个IP地址必须对应一个域名D.0.2.1.2是合法用户IP地址6.下列叙述中,()是不正确的A.一个二维表就是一个关系,二维表的名就是关系的名B.关系中的列称为属性,有时也叫一个字段C.关系中的行称为元组,对关系的描述称为关系模式D.属性的取值范围称为域,元组中的一个属性值称为分量7.主板上的CMOS芯片的主要用途是()A.增加内存的容量B.管理内存与CPU的通讯C.储存时间、日期、硬盘参数与计算机配置信息D.存放基本输入输出系统程序、引导程序和自检程序8.微型计算机中使用的鼠标器连接在()A.并行接口上B.显示器接口上C.打印机接口上D.串行接口上9.假定单元格D2中保存的公式为=B2+C2,若把它移动到E3中,则E3中保存的公式为()A.=B3+C3B.=C3+D3C.=B2+C2D.=B2+C310.在Word 2003中,段落对话框的缩进表示文本相对于文本边界又向页内或页外缩进一段距离,段落缩进后文本相对打印纸张边界的距离等于()A.页边距B.缩进距离C.页边距+缩进距离D.以上都不是11.在32×32 的点阵字库中存储一个汉字字形码所需要的字节数是()A.16B.64C.128D.102412.下列关于Word中修订功能说法错误的是()A.启用修订功能时,可以查看在文档中所做的更改B.不同的修订者可以使用不同的颜色进行修订C.可以接受或拒绝某一修订D.关闭修订功能后,所做的更改也将消失13.下列关于JPEG标准的叙述,错误的是()A.JPEG是一个动态图像数据压缩编码的国际标准B.JPEG的算法复杂度适中,可用软件或硬件实现C.JPEG图像的压缩比可以设置D.JPEG标准广泛应用于数码相机中14.在PowerPoint中结束幻灯片放映,不可以使用操作()A.B.C.D.单击鼠标右键,在菜单中选择结束放映15.下列关于程序设计语言的叙述,正确的是()A.高级语言就是自然语言B.机器语言能被计算机直接识别和执行C.机器语言与计算机硬件关系密切,用它编写的程序具有较好的可移植性D.无论用哪种程序设计语言编写的程序,都需要经过相应语言处理系统的翻译才可在计算机上执行16.计算机的发展趋势不包括()A.巨型化B.微型化C.智能化D.专业化17.Word97具有自动保存的功能,其主要作用为()A.在内存中保存一临时文档B.定时保存文档C.以BAK为扩展名保存文档D.以上均不对18.在因特网上专门用于传输文件的协议是()A.FTPB.HTTPC.UDPD.SMTP19.已知三个不同数制表示的整数A=111101B,B=3CH,C=62D,则能成立的比较关系是()A.A<B<CB.B<C<AC.B<A<CD.C<B<A20.下列不属于常见的信息安全技术的是()A.数字证书技术B.身份认证技术C.VPN技术D.无线网络技术二、多选题(20题)21.在Excel97中,单元格地址的引用方式有()A.绝对引用B.相对引用C.混合引用D.间接引用22.在Word 2010文档中,复制文本的操作可以通过()A.开始选项卡的复制、粘贴命令B.格式刷快速复制C.用鼠标左键直接拖动到目标位置D.用鼠标右键拖放选取的文本到目标位置,在弹出的快捷菜单中选择复制到此位置23.以下设备可以作为输出设备的是()A.键盘B.鼠标C.显示器D.打印机24.下列四个数据类型中,不是Access 2010中字段的数据类型的是()A.文本B.逻辑C.数字D.通用25.在Windows 7操作系统中,属于默认库的有()A.文档B.音乐C.图片D.视频26.在Word 2003中的编辑菜单中包括()命令A.剪切B.修订C.字数统计D.复制27.网络的拓扑结构按形状主要分为:树型结构、网状结构和()A.星型结构B.总线型结构C.环形结构D.对等结构28.较为典型的网络传输媒体有有线传输和无线传输两种,其中属于有线传输媒体的有()A.双绞线B.同轴电缆C.蓝牙D.红外线29.文件型病毒通常传染________类型的文件()A.EXEC.TXTD.SYS30.若只想关闭Word 2010文档窗口而不退出应用程序,可使用的方法是()A.单击文件选项卡中的关闭命令B.双击应用程序的控制菜单图标C.单击文件选项卡中的退出命令D.按Ctrl+W 组合键31.在Excel 2010中,点击一个单元格,要删除其中的内容,但要保留此单元格,可以使用哪些操作()A.按DELETE键B.使用清除命令C.使用删除单元格命令D.使用复制命令32.关于Word 2010的文档编辑窗体,下面说法正确的是()A.Word 2010中,允许同时打开或编辑多个文档B.当打开多个文档时,每个文档都有着属于自己的编辑窗体C.按住窗体边线,可以将窗体改变成任意大小D.拖动窗口分割按钮,将文档窗体分成上下两部分33.有关Word 2010中样式的说法,正确的是()A.对文档应用样式后,可以快速选定应用同一样式的所有文本B.用户不可以修改系统的内置样式C.新建的样式会自动用于所有文档D.用户可以自定义样式34.从逻辑功能上,计算机网络分为()A.通信子网B.计算机子网C.资源子网D.教育网35.下列关于操作系统的描述正确的选项有()A.操作系统是直接运行在裸机上的最基本的应用软件B.早期的计算机没有操作系统C.操作系统是用户和计算机硬件之间的桥梁D.根据使用环境不同,操作系统的分为批处理操作系统、实时操作系统和分时操作系统36.下列关于声音处理的叙述,正确的是()A.数字化声音时,通常情况下量化精度越高,声音的保真度越好B.数字声音是一种连续媒体,数据量大,对存储和传输的要求比较高C.音乐数字化时使用的取样频率通常比语音数字化时使用的取样频率高D.扩展名为.mid和.wav的文件都是PC机中的音频文件37.下列选项中,属于Word 2010缩进效果的是()A.两端缩进B.分散缩进C.左缩进D.右缩进38.在Excel 2010中,建立函数的方法有()A.直接在单元格中输入函数B.直接在编辑栏中输入函数C.利用开始选项卡下的插入函数按钮D.利用公式选项卡下的插入函数按钮39.在Excel 2010中,可以采用下列哪种操作方式,修改已创建的图表类型()A.选择图表工具区格式选项卡下的更改图表类型命令B.选择图表工具区布局选项卡下的更改图表类型命令C.选择图表工具区设计选项卡下的更改图表类型命令D.右键单击图表,在快捷菜单中选择更改图表类型命令40.下列关于多媒体计算机系统构成,错误的是()A.主机、声卡和显卡B.多媒体硬件平台、多媒体软件平台和多媒体创作工具C.微机系统、打印系统和扫描系统D.文字处理系统、声音处理系统和图像处理系统三、填空题(20题)41.如果执行下图流程图,输入x=4.5,则输出的i=____。

国家电网公司专业技术人员电力英语水平考试题库答案第二版完整

国家电网公司专业技术人员电力英语水平考试题库答案第二版完整

国家电网公司专业技术人员电力英语水平考试题库答案第二版单项选择Section11.The orange is too high onthe tree . It’s out of myreach伸出手.I need someone to help me.2.The city is named afterfamous president. 这个城市是着名的总统名字命名的named after短语”命名”3.It took millions of peopleseveral years to build the Great Wall.4.I have always considered考虑过的/认为 you my best friend.5.If I take this medicinetwice a day; it should cure治愈my cold.. 如果我服用此药;一天两次;就应该治愈我的感冒6.It is considerate of youto turn down the radio while your sister is still ill in bed. 这是体贴你调低收音机;你的妹妹还在床上生病..7.It’s not quite certain肯定that he will bepresent at the meeting. 这不是肯定的是;他将出席会议8.It was natural 自然thathe count计算the daysbefore going home.9.when she saw the clouds乌去密布 she went back tohouse to fetch取herumbrella伞.10.The metals which we find inthe earth include包括iron ; lead and copper. 在我们地球上发现金属包括有铁;铅和铜11.Your hair needs to be cut剪 ;would you like me to doit for you..12.It was difficult难toguess猜测what herreaction反应 to the news消息 would be.13.Contrary相反to yourprediction预言; theylost the game..14.We say that a person hasgood manners if he or sheis polite ; kind andhelpful to others. 我们说一个人具有良好的风度;如果他或她是有礼貌;善良和乐于助人..15.He is always kind ; nevercruel ;either to people orto animals. 他总是仁慈;从来没有残忍;不管是人或动物16.we should be careful仔细when we are doing ourexercises.练习17.The tallest hat帽子 wouldmake him so tall thatpeople would stop callinghim a little man. 高顶帽子令他非常高大;人们将停止称他是小个人..18.Everyone seemed似乎toturn变成 a blind失明 eyeto the rubbish 垃圾on the floor. 每个人都似乎在地板上又视而不见垃圾19.If you have a house full ofchildren an rubbish垃圾;you will next keep it clean清扫20.You are very lucky幸运;because you have a chance机会 to study at college大学21.IwhenI lived生活.22.Xiao wang always comes upwith提出wonderful极好ideas.23.Considering考虑到hisage年龄; he is unable to take the job.24.It is impossible to know inadvance预先what will happen.25.Although尽管 many youngpeople are keen热心;渴望; heprefers宁愿 to stay andwork in his own country.26.The doctor haswarned警告thatsmoking will affect影响his health; but johny justwon’t listen27.haveyour cat repairedat oncefor professor’s 教授lecture演讲28.This is the very house inwhich Mr.Zhou once 曾经lived居住.29.The old photohischildhood儿童时代 in thecountryside农村30.He slipped and broke hisleg. As a result 因此hewould have to away fromschool for two weeks. 他滑倒摔断了腿..因此;他将不得不从学校离开了两个星期Section21.Peter’slatest book is sogood that着作是太好;超越所有的赞扬2.His failure topay hisdebts confirmed证实thathe was not to be trusted.他没有支付他的债务证实他们的怀疑;他不值得信任3.Sorry; I took your pen by;我误拿了你的笔4.Thetheir interests兴趣.5.I longfor渴望anseeing you. 我渴望见到你一个机会6.We have lessons every dayexcept 除外on Sunday7.Failure失败tocommunicate沟通resultedin导致 the high divorcerate. 不沟通导致离婚率高8.I am glad to have beengiven已获得 acountry. 我很高兴能有更改访问贵国9.Ruth finally最后managed达成 to find what she was looking for露丝才找到她一直在寻找10.The local 地方government政府 will offer提供 us what we need. 当地政府将为我们提供我们所需要的11.Theroom became completely当蜡烛熄灭时12.Pollution is said to cause使 many people to suffercancer癌. 污染是说令许多人患上癌症13.The doctor said he wouldtry his best to relieve减轻 her of her pain痛苦.医生说;他将尽最大努力;以减轻她的痛苦14.Do you enjoy reading aboutthe adventures冒险of thein the African forests非洲丛林15.It is impolite无礼tostare盯着at somebody orhim这是不礼貌地盯着别人;或者不断地跟他走16.We entered the museum justto find只是为了找 ashelter避难所from ashower阵雨. 我们走进博物馆只是为了找到避雨的所..17.Baby-sitting保姆is partof an off-camp job. 保姆是场外阵营工作的一部分18.Please speak loudly andclearly to make yourselfheard and understood.请大声说话;显然使自己听到和理解..19.Smallpox天花left留下lasting持久 scars 疤痕onGeorge Washington’s noseand cheeks脸颊 but mostartists艺术家 kindly亲切left out遗漏thepockmarks痘痕whenpainting画 his portraits画像. 天花离开乔治华盛顿的鼻子和脸颊;但大多数的艺术家请留下了凹坑时画的肖像持久的伤疤.20.Handwriting is how youpresent现在 yourself onpaper.21.It is a Japanese custom风俗\习惯to take offone’s shoes beforeentering a house.22.You may ask your teacher incase of difficulty在生活上遇到困难时你可能会问你的老师23.The young girl made up hermind to get rid of摆脱 her这位年轻的姑娘下了决心摆脱她的坏习惯24.It was in Greece希腊 thatOlympic competitions started.正是在希腊的奥林匹克竞赛开始25.It seems似乎that hisopinions看法 are always different不同from his girl-friend. They don’t get along相处融洽well..26.The price of houses isgoing up while that of cars has been brought down only to about 80 thousand yuan在房屋价格在不断攀升;而汽车;已降至仅约8.0万元k easily goes bad in hotweather. You’d better put it into the refrigerator冰箱28.Mr. White was madechairman主席of the committee委员会; who was in charge of负责the project项目.29.Her husband wasn’tcontent with满足于whathe gained and wanted to getmore. 她的丈夫并不满足于他所获得的;并希望得到更多的30.When Tom woke up he was inthe hospital; but hedidn’t know how that hadcome about发生造成的. 当汤姆醒来时;他在医院里;但他不知道怎样发生的Section31.John’s sudden突然的death死亡was a greatblow打击to his motherand it took her a long timeto get over自……中恢复过来the grief悲痛.2.Unless除非 you go by依照nature自然; you are sureto be punished处罚 by it.3.His heart stopped beating跳动 just when we reachedthe hospital.4.–look The flowers in thegarden are growing成长lovely可爱.-How I wish I had a smallpiece of ground士地 whenI could plan打算someflowers of my own5.H is parents couldn’t getthrough打通 to him on thetelephone ; so theydecided决定 to go to hisschool and see what’swrong.错误.6.–Mum; why do you alwaysmake me drink a cup offresh新鲜 milk every dayTo get为了 enough足够protein蛋白质andnutrition营养 as you are.7.Selecting选择 a mobile移动 phone for personal个人use is no easy task工作because technology科技is changing变化gorapidly迅速. 选择供个人使用的移动电话是不容易的;因为技术迅速改变去8.With the gas cut off ; Icouldn’t cook dinner煤气切断;我不能做饭9.–Would you mind介意 if Iused your dictionary字典-Go ahead继续10.She took a glance一瞥;一眼at her watch and saw that it was already lunch time.11.Grown-ups成年人shouldbe responsible负责for their own behavior行为.成年人应该对自己行为的负责12.By improving改进hislearning habits习惯an average均分/平均水平student can be a top one.13.When you meet with aproblem; find a way to solve解答 it.14.The kitten小猫 climbed爬the tree and couldn’t get down下来15.If you check检查yourpaper carefully ; somegrammar 语法mistakes错误can be avoided避免.16.The city Zhangjiakou wasextensively广阔的damaged被损坏in theearth-quake地震17.The case手提箱contained包含 a lot of things;including包括 asecond-hand watch.二手手表18.Do you enjoy listening torecords录音I findrecords are often as goodas和…几乎一样or betterthan an actual真实performance演奏.19.The high school graduated毕了业300 students thissummer夏季20.–I suppose料想 you havegot the post职位.-You have guessed猜对 it.21.You’re too weak虚弱.It’s good for you to haveplenty大量 of exercise运动.22.We will have plenty of大量time to go to therailway铁路 station站.Take it easy23.She was caughtcatch抓住的过去式 spitting吐出;喷溅物in public公众and fined罚款 ten yuan on the spot现场.24.When the bike was repaired ;it looked as good as和…几乎一样 new25.The custom风俗goes backto可以追溯到the 12th26.We haven’t found themissing不见的 wallet皮夹.Let’s go through详细检查the room again.27.How is Mary getting on with继续干her study geton with sth继续28.We should pay给予moreattention注意to; forit has become a social 社会problem问题.29.His father is very busyevery day. He can’t help怨the rapid快速pace步子 ofmodern现代life生活.the pace of life生活节奏30.After my mother finishedcleaning up the house ; shewent on read接着读today’s newspaper.Section41.With the help of thepoliceman; the parents gotin touch with和……取得联系their lost失去 child2.Intelligent聪明的 peoplecan always come up with提出good solutions解决方案 to problems.3.If anyone ever catchessight看见 of the mugger行凶抢劫的路贼 anywhere;please call the police atonce.4.Where shall I get off thetrai n我在哪里下火车5.Every evening after supper晚餐; my parents would goout for a walk. 我的父母就出去散步6.Johnson hascome down 败落since his business生意failed失败.7.I f you don’t give up放弃smoking you’ll neverget better.8.With the countrypopulation人口growingfast; the government政府has taken the birth出生control 控制policy政策.9.–“It’s alreadymidnight午夜. Why not goto bed’-‘There’s still too muchhousework to do.’10.An average平均 Japanesehas 30.6 square平方meters米living space.日本人的平均居住面积30.6平方米11.The building of the bridgehas been held up by theheavy rain. 大桥的建设已被搁置的大雨12.Do you know when and wherethe sports meeting was tobe held举行.13.You had better not drinkwater that is not boiled煮沸.14.The woman I came across 碰到yesterday is Mrs.Black.15.Work is often considered认为 to be most importantthing in our life; but infact事实 there are manyother things moreimportant than it. 工作通常被认为是最重要的东西在我们的生活;但其实还有很多比它更重要的其他东西..16.T om’s mother is seriously严重 ill. He is going tothe hospital to see her.17.No matter what you do; youshould put your mind 专心into it. 不管你做什么;你应该专心18.George left leave离开的过去式in such这样的 a hurry匆忙 that I hardly几乎had time to thank him. 乔治离开这么着急;我几乎没有时间来感谢他19.借 me your dictionary for several days20.store. 我碰巧看到他的百货公司21.May we have the pleasure荣幸of your companyfor dinner宴会我们有成为你宴会同伴这个荣幸吗22.I’m sorry; sir. There’snoavailable有空的 now.23.Although she was disabled伤残的 when she was onlysix years of age; yet she; forwhich herof her.24.It’s a nice spring day春天. Mrs. White puts on穿上 her coat外套; goesout and shuts关上thedoor.25.Their voices声音 are soalike相像than I oftenmistake Tom forhisbrother Jim on the phone.26.It was so quiet安静 atnight. We listened收听carefully but heard 听到nothing.27.They fell in love with eachother; however . After afew months; they realizedthe did not have much incommon共有的.他们爱上了对方;但是..几个月后;他们认识到没有有许多共同点28.Although my friendsdisliked不喜欢 Jenny; Ihercoming with us. 虽然我的朋友不喜欢珍妮;我坚持要她跟我们一起..29.The photo hanging悬挂onthe wall is taken by myfather.30.Can you tell me who canbest handle处理theproblem 你能告诉我谁能够更好的处理这个问题Section51.Such customs were handeddown流传下来from fatherto son. 这种习俗流传从父亲传给儿子2.My brother was such ahandsome英俊young manthat many girls like him.3.Nearly all weather occurs出现 in the lowest layer层 of the atmosphere大气.几乎所有的天气出现在大气的最底层4.The thief小偷brokeintobreak into闯入the store and helped himself to a lot of money. 小偷闯入商店;偷走很多钱..5.After the lecture演讲;the studentsit had a heated热烈的discussion讨论 on it.6.To be honest; I didn’tagree with what you said.老实说;我不同意你说7.It has been raining for aweek. I8.The terrorists threatened威胁to blow up the building if their demands要求 were not met. 恐怖分子威胁要炸毁建筑物;如果他们的要求得不到满足9.–W hat’s the matter要紧-The shoes don’t fit符合properly完全. They arehurting伤害 my feet.10.The government is tryingbest to improve thehousing. 政府正在努力尽力改善住房11.Where is my pocketcomputer 哪里是我的掌上电脑 ..Here it is. 在这里12.He is the candidate候选人to carry out实行;执行;实现;完成the plan.13.Hundreds of studentsattended参加 the party聚会 last night昨晚.14.I’m going to have my carrepaired tomorrowmorning.15.Mary’s parents couldn’thelp worrying 担心abouther. 玛丽的父母不禁担心她16.I heard her talking aboutMrs . Handerson whom I hadnever heard of. 我听到她谈起那个我从来没有听说过的汉德森..17.She held back hold back隐瞒 ; not knowing what todo or say.18.All those expensive昂贵shoes are made by hand手工制成.19.Remember to turn off thegas when you go on holiday.记住要关掉煤气当你去度假20.What is the price of thatT-shirt21.The soldier士兵 was badly严重 hurt伤痛.这名士兵受重伤22.If Mary is aware of all thedangers危险; she shouldchange her mind想法. beaware of意识到23.He hurried to the railwaystation in the hope ofcatching the early train.in the hope of希望;怀着......的希望24.The studentstheexperiment实验again;but they didn’t lose heart失去信心.25.Have you heard about听说Mr.JohnsonYes; I read about him in a newspaper.26.She likes wearing boots athome; for they are very comfortable舒适. 她喜欢在家里穿着靴子;因为它们穿着很舒服27.That is a building aboutthirty feet英尺high. 这是一个大约30英尺高的建筑28.The plane was arriving inhalf an hour.飞机半小时内到达..29.How about staying at homeif we weet with stormy暴风雨day30.If you were in my position位置; you have some idea how I feel. 如果你站在我的角度;你会体会我的一些感受Section61. There were quantities ofrain last year. quantitiesof大量的2.Poor贫穷quality 质量goods货物won’t sell 出售easily.3.Don’t quarrel吵架 aboutsmall things.4.No one questioned怀疑histheory理论学说foralmost几乎 800 years. 近800年没有人质疑的他的理论5.There are quite a few相当多的 new magazines杂志and books in thebookstore.6.I was learning my lessonson the radio when shecalled me up.7.The rains have startedearly this summer.8.He roserise起身early thenest day ; finding theriver河had risen升起one foot英尺.9.The weather was rather相当 worse恶劣 than we hadexpected期待\预期.rather than胜于10.I would rather havenoodles面条than11.John wants to see youtoday.I would rather he cametomorrow than today. 我宁愿她明天来而不是今天12.For what reason原因 didshe quarrel with you. 原因是什么;她没有与你吵架13.I received receive 收到;接到the invitation邀请tothe conference会议; buthave no idea if I shouldaccept接受 it . 我收到的邀请参加会议;但不知道我是否应该接受14.I recognized认识; 认出;辨认him the moment瞬间 Isaw him.15.What I have to say refersto涉及all of you. 我要说的事和你们大家都有关16.I tried to remember to put记得把everything in goodI sometimes有时forgot todo so忘记了.17.I cans still remember uswalking hand in hand through the street together. 我还记得我们一起携手走在街上18.Now repeat重复the wordsand phrases 短语exactly正确的;严密的 as you hear them. 现在重复的单词和短语完全按照您听见他们19.The manager will reply to回复all the letters that have been sent to him. 经理会回答所有已发送给他的信20.He shows no respect尊敬for at this rules规则. 他表明;对此规则不尊重21.On her way to Wuhan onbusiness ; a pickpocket扒手robbed her of hermoney.一名扒手扒手抢走了她的钱财22.The roofs屋顶of thecottages村舍\小别墅 werecovered隐蔽 with leaves树叶.23.We have run out of sugar糖. Ask Miss Hones to lendus some.我们已经用完了糖..请吴霍内斯借给我们一些24.She is afraid担心25.I ran across her in thepublic library yesterday.昨天我在公共图书馆runacross偶然碰见她26.How about JimHe came home with safely平安.27.The students and teachersin the school salute敬礼the flag 旗every Mondaymorning.28.One day ; walking along thesands沙滩towards hisboat小船\小艇; Crusoe sawin the sand沙子 the mark痕迹of a man’s foot.29.The broadcast广播camefrom America by satellite卫星 and was heard at thesame time in Europe. 来自美国的卫星广播同一时间在欧洲听到30.Your answer satisfied满意 her so much that she wasvery satisfied with you.Section71.The policeman saved thechildren from the fire火.2.Our neighbors邻居 alwaysmake a noise噪声;scolding责骂theirchildren.3.There are two score二十eggs in the basket.4. I have been to Beijingscores of5.It was a good game; and atthe end the score得分 was Argentina阿根廷3;Germany德国 2.6.The policeman searched搜索 the prisoner战俘;囚徒to see if he had a gun枪.7.Soldiers士兵 hurried insearch of the building ;but they found nothing in it.8.The boy seated就座的there is my younger brother.9.I t seems that he hasformed 成形a good idea. 10.The ticket票 cost花费 somuch but were sold outquickly.11.The doctor sent for派人去叫will arrive in no time.12.The sentence宣判 was 10years in prison监狱 and afine罚款 of $1000.13.Oceania 大洋洲isseparate分开的 landmass陆地板块; but it isseparated分开from Asia亚洲 by very shallow浅的water.14.The two sisters shared分享 one bed for the night.15.I had my shoes shined擦亮just before I came.16.He shot开枪shoot 的过去式及过去分词at the bird ;but it flew away飞走.17.It is four years since theleft home.18.Why must19.making fun乐趣of yourdisabled伤残 neighbour邻居20.The eggs laid产 by the henwere laid放置in thefridge电冰箱.21.It is personal个人 taste嗜好whether you likewestern西方 classic传统music or Chinese folk民间music.22.Since you have to stay home;why don’t you do someshopping 既然你呆在家里;你为什么不作一些购物吗23.The sea was smooth平滑. ”Smooth” here means意味calm平静.24.Mr. Jones’ newjobsmoothed away his worry25.You should not make so manymistakes.26.-Do you like these shoes-No; show me some others.27.No sooner had I got homethan it began to rain. no28.The sound声音of voices噪音which we had heardcame from the television电视set .29.Mr. Black ;can you spare抽出 a minute for me I have something important to tell you.30.In order to improve提高he practiced练习talking to others in English. 为了提高自己的英语口语;他练习用英语交谈别人..31.They went on with theexperiment实验in spite of her so much that she was very in spite ofwith you.Section81.The man came here监视us. “Spy on “ here means watch监视.2.I t’s starting to rain; wehad better hurry home. 下起雨来;我们最好赶快回家..3.The soldiers士兵werestationed驻扎at theborder边界.4.The salesman 售货员scolded责骂thegirlcaught stealing 偷窃andstopped at thesupermarket超市to buysome bread 面包andthewent tolittle girl from school;6.Our ship sailed航行through the strait海峡between the two islands岛 and went straight一直to Rome罗马withoutstaying in paris. 径直到罗马没有在巴黎逗留7.She is very strict严谨的with herself in her work.8.He has been studying theproblem in his study for along time.9.We were talking on thephone; when ;all along 一Which ofcan’t be usedhere10.She can’t eat much忍受 stomachaches胃痛.11.Their actions行动suggested表明that heshouldn’t be a bad man;and I suggested建议 thatwe should let him go. 他们的行动表明;他不应该是一个坏人;我建议我们应该让他去12.The suggestion建议 thatwe should have anothertalk with them was of novalue价值. 有人建议;我们应该有另一个与他们会谈是没有任何价值13.-Isn’t Jane here yet-No. Much to my surprise令人惊讶; she is late. 这不是简吗 ;没有..令我惊讶的是;她是太晚了..14. The film star stood there;surrounded by 被…环绕着 a lot of people.15. When I arrived ; my friendswere already seated at table . We had a big dinner 宴会.16. If the streets had beenclearly 明朗的marked 记号; it would not have taken us so long to his house. 如果街道已明确标记;它是不会花了我们这么多的时间到他家17. Take your time. There is nohurry at all. 利用时间..不用着急的18. Peoplethroughout 全部 thebe called on被要求做某事;义不容辞own freedom 自由.全国人民都要求采取行动为自己争取自由的斗争19. We took up a grammar语法 lesson after we had a PE 体育 class.20. Mother had a taste味道 of the soup 汤 to see if it was tasty 美味.21. The team is the best in thecountry. And now the team are training 训练 hard for the coming 就要来的 Asian 亚洲 Games.22. Don’t make fun of her;John. Can’t you see she is in tears 泪水23. Whocan tell what willhappen in the future 未来24. He lay躺 lie 的过去式awake 醒 all night;thinking over 思考 the problem.25.The traveler in the desertfelt thirsty 口渴的. That is to say; the traveler in忍受 thirst 口渴. 在沙漠旅行的旅客感到口渴..这就是说;在沙漠旅行的旅客从渴26. We thoughtthink 的过去式she was going to die; but the medicine pulled her through .old and it is high time he bought a new28. We shouldn’t lose heartin time of difficulties. 我们不应该在困难时候失去信心29. The train is timed同步的;定时的to arrive at 6 o’clock.30. Itwas raining hardoutside and John was too anxious 渴望的\急切的to go .Section91.His total income of a yearis $500. His yearly income totals $500. It reached a total of $500 a year. 他一年总收入为500元..他的年收入总额为500..它达到了500元;每年总计..2.Teachers are trained培养in师范学院.3.The naughty顽皮boy i stroublesome麻烦的 ; and he is a great trouble烦恼 to his parents.4.Never trouble troubleuntil trouble troublesyou. 不要自找麻烦;除非麻烦来找你5.The sick病态的boymustn’t be left aloneleave alone让…独自呆着;不管all night and we should take our turn我们轮流 at sitting up. sit up.迟睡;熬夜生病的孩子不能独自一整夜;我们应该轮流熬夜6.There are various不同的techniques技术 that haveto be learnt要学会 beforeone can do this jobproperly完全.7.I never expected 期待youto turn up出现;at themeeting; I thought youwere abroad往国外. 我没想到你把出席会议;我还以为你去了国外..8.These words are wrongly错误地spelled拼写; that’sto say; he spelled thewords wrong错误.9.These masterpieces杰作;名着这些音乐的杰作可以经得起时间的考验10.The young man hasconquered克服 his fear害怕 of failure失败 and ismaking great steps步伐 inhis work.11.students; the teacherentered the classroom.12.You may have difficulty inlearning English at thebeginning.13.Anybody who has broken违犯the law法律won’tescape逃避beingpunished处罚. 如果谁违反法律将无法逃脱被惩罚14.Since由于 the boss of thedepartment部门wasn’tin ; we decided to have ameetinganother day.投入himself to teaching formany years.16.As a result结果是; hesucceeded成功reachingthe castle城堡enter it . 他成功地达到了城堡;但未能找到办法进17. Her deeds值得 being praised . 她的事迹是值得被赞扬18. The girl would rather stayalone 独自 in the classroom than play with her classmates 同学 outsides 外面.forward to meetingthe greatwriter.20. Jimmy is the oldest boy andis taller than any other boy is the class.21. Onceyou understand the sentence ; you will find he passage 通过 quite 相当 easy to grasp 掌握. 一旦你理解了句子;你会发现他很容易掌握通过22. Only when the rain stoppeddid the sports meeting start again.23. I prefer 宁愿 staying at home to playing outside.24. Myfamily bought asecond-hand car at the price of 500 dollars.25. There is no easymethod方法 to physics 物理学.26. She changes her mind soconstantly 经常地 that no one wants to work with her .27.and we’ll see Chinesepeoplehaveachieved 取得 a28. Theywere listening tolight 轻的music when a thunder 打雷 came down.29. Chinese brown medicine haslittle side 侧面旁边effect 结果; 效果; 作用; 影响. 中医药几乎没有副作用30. If a person is exposed暴露 to constant 持续的 noise 噪声 ; he maygradually 逐渐的a loss of hearing. 如果一个人暴露于持续的噪音;他可能会逐渐患上了听力损失Section10合成 fibers 纤维 produced 生产 in that big plant account for占 one third ofall the fibers turned out in the area 地区\领域have only 100 words in which to sum up hisspeech 讲话. 你只有100个字来概括他的讲话3.The jury 陪审团 must weigh 权衡考虑the evidence 证据 before they reach averdict 判决. 陪审团必须权衡证据;才会做出判决4.Scientists 科学家 have spent years researching 研究 in to the effects 影响\作用of certain 某些chemicals 化学药品 on the human 人类 brain 头脑 with no result 结果. 科学家们多年来一直在研究人脑的某些化学物质的影响没有结果..5.The firm 公司 will have toproduction if it is to defeat击败itscompetitors 竞争者. 该公司将不得不加紧生产;如果它要战胜它的竞争对手6.You’ll never finish that job unless you forget everything else and getdown to it. 你永远也不会完成这项任务;除非你忘了一切;着手进行7.The American company whosechemical 化学药品 factory 工厂 in India exploded 爆破了的 will have to compensate 补偿 the loss of human lives. 美国公司在印度的化学工厂爆炸将不得不弥补的人命损失8.Many new opportunities 机会 will be opened up in the future for those with a university 大学education 教育.9.The manager promised 答应 to keep me informed of how our business was going on. 经理答应让我了解我们生意的进展情况10. John regretted 后悔 notgoing to the meeting last week. 约翰后悔上周没有去参加会议11. The above上述 mentioned论及 reactions 反应 are bound 必定的 to proceed 进行\发生 smoothly 平稳\顺利. 上述反应是必然的顺利进行12. The meetingdrew to a closelate in the afternoon. 13. From his appearance外表we may safely 确实地 conclude 推断 that he is a heavy 重的\大量的smoker. 从他的外表我们可以得出结论;他是一个烟鬼14. Someone must have left thetap on ;for the water was running over and flooding 淹没 the bath-room. 有人忘了关浴室的水龙头种植 and care 照料 fortreesinproportion to the manybenefits 受益 they give us.16. Whatever无论怎样 youdecide to take up ; you should try to make it asuccess. 无论你决定采取行动;你应该尽量做到一个成功17.I am tired厌倦of yourstupid乏味 conversation交谈.18.The appearance出现 of thebook has marked标志 a new era时代 in the history of the question. 该书的出现;标志着这个问题的历史新时代19.The shopkeeper店主isfacing面对fierce激烈competition竞争from supermarkets. 店主是面对超级市场的激烈竞争20.They are building therailway in association联合 with another company.21.the outing until next week; when they won’t be so busy.学生们将推迟至下周郊游时;他们不会这么忙22.I found the little boysitting on the steps台阶;crying bitterly悲痛.23.In his speech言谈\说话 hereferred提到 to the greathelp thatthe clubsupporters支持者. 他在讲话中提到了很大的帮助;社团收到来自支持者24.Carbon isan element元素 ;碳是元素;而二氧化碳是一种化合物25.When I arrived in thiscountry; I had to startlearning the language fromnone一点也不.26.After being rescued 营救from the wrecked破坏 ship;the people agreed thatthey had much to bethankful for 感谢. 有很多要感谢的27.His ambition雄心\野心had always been to becomean architect建筑师. 他的雄心一直是成为一名建筑师28.This new method 方法notonly saves time but alsosaves energy能量byoperating运行\工作ontwo batteries电池instead of four. 这种新方法不仅节省时间;而且还节省了两个而不是四个电池经营能源29.He was very near-sighted近视; almost几乎helpless无助的withoutglasses眼镜.30.Despite尽管all theheated激烈的arguments争论they had; theyremained仍然是 the bestof friends throughout全部their lives. 尽管他们有激烈的争论;他们仍然是最好的朋友一生Section111.He said the situation情形there was not so bad as had been painted描述. 他说;那里的情况并非如所描述的那么坏2.If it wasn’t an accident意外 ; he must have done it on purpose打算;决心.3.When Tom was doing hisFrench translation翻译;he left blanks空白for all the words he did not know. 汤姆在做他的法语翻译4.But; because Barbary isall that matters要紧/有关系 to me for the time; I don’t suggest 建议going away离开. that's all that matters to me.所有时间;巴巴拉就是我的一切;5.You can consult商量/请教dictionaries字典; or maps地图 to find out what you wish希望 to know.6.The elephant fell into thetrap陷井 the hunters猎人had set for it. 大象掉进了猎人为它设置的陷阱fallinto落入7.He said it in such clearterms that nobody was inany doubt怀疑 about whatwas meantmean用意. 他说得这样清楚;没有人在任何被怀疑是什么意思8.Although her marriage结婚wasvery unhappy;herchildren.9.These envelops信封 are sosmall that letters have tobe folded折叠起来several 几times 次beforethey can be put inside.10.It is forecast 预测thatheavy rains arethreatening危险的toflood淹没the area in a fewdays. 据预测;几天之内暴雨有淹没该地区的威胁.11.Einstein was amathematical genius. 爱因斯坦是数学天才12.deliver发表 aseries系列 of lectures演讲 which she prepared准备over here. 然后;她又回到1提供了一系列的讲座;她准备在这里..13.TheSmiths are tooshould let them see more ofthe world.14.In hisboyhood; he wastoread and write. 在他的少年时代;他缓慢学习阅读和书写15.cliff because itsbrakes刹车 failed. 巴士。

全国计算机等级考试(二级c++)历年真题及答案

全国计算机等级考试(二级c++)历年真题及答案

全国计算机等级考试二级笔试试卷公共基础知识及C++语言程序设计(考试时间90分钟,满分100)分)一、选择题((1)~(35)每小题2分,共70分)下列各题A)、B)、C)、D)四个选项中,只有一个选项是正确的,请将正确选项涂写在答题卡相应位置上,答在试卷上不得分.(1)下面叙述正确的是A)算法的执行效率与数据的存储结构无关B)算法的空间复杂度是指算法程序中指令(或语句)的条数C)算法的有穷性是指算法必须能在执行有限个步骤之后终止D)以上三种描述都不对(2)以下数据结构中不属于线性数据结构的是A)队列B)线性表C)二叉树D)栈(3)在一棵二叉树上第5层的结点数最多是A)8 B)16 C)32 D)15 (4)下面描述中,符合结构化程序设计风格的是A)使用顺序、选择和重复(循环)三种基本控制结构表示程序的控制逻辑B)模块只有一个入口,可以有多个出口C)注重提高程序的执行效率D)不使用goto语句(5)下面概念中,不属于面向对象方法的是A)对象B)继承C)类D)过程调用(6)在结构化方法中,用数据流程图(DFD)作为描述工具的软件开发阶段是A)可行性分析B)需求分析C)详细设计D)程序编码(7)在软件开发中,下面任务不属于设计阶段的是A)数据结构设计B)给出系统模块结构C)定义模块算法D)定义需求并建立系统模型(8)数据库系统的核心是A)数据模型C)软件工具B)数据库管理系统D)数据库(9)下列叙述中正确的是A)数据库系统是一个独立的系统,不需要操作系统的支持B)数据库设计是指设计数据库管理系统C)数据库技术的根本目标是要解决数据共享的问题D)数据库系统中,数据的物理结构必须与逻辑结构一致(10)下列模式中,能够给出数据库物理存储结构与物理存取方法的是A)内模式B)外模式C)概念模式D)逻辑模式(11)关于面向对象的程序设计方法,下列说法正确的是A)“封装性”指的是将不同类型的相关数据组合在一起,作为一个整体进行处理B)“多态性”指的是对象的状态会根据运行时要求自动变化C)基类的私有成员在派生类的对象中不可访问,也不占内存空间D)在面向对象的程序设计中,结构化程序设计方法仍有着重要作用(12)判断字符型变量ch是否为大写英文字母,应使用表达式A ) ch〉='A' & ch〈=’Z'B ) ch<=’A' ||ch>='Z’C ) ’A’<=ch〈=’Z'D ) ch>=’A’ &&ch〈='Z'(13)已知下列语句中的x和y都是int型变量,其中错误的语句A )x=y++;B )x=++y;C ) (x+y)++;D )++x=y;(14)执行语句序列int n;cin 〉> n;switch(n){ case 1:case 2: cout 〈< '1’;case 3:case 4:cout << ’2’;break;default:cout 〈< ’3';}时,若键盘输入1,则屏幕显示A)1 B)2 C)3 D)12(15)下列程序的输出结果是#include 〈iostream>using namespace std;int main(){char a[]= ”Hello,World”;char *ptr = a;while (*ptr){if (*ptr 〉= 'a’ &&*ptr 〈= 'z’)cout 〈< char(*ptr + 'A' -'a’);else cout <〈*ptr;ptr++;1}return 0;}A ) HELLO,WORLDB ) Hello, WorldC )hELLO, wORLD D )hello,world (16)已知:int m=10;在下列定义引用的语句中,正确的是A )int &x=m;B )int y=&m;C )int &z;D ) int &t=&m;(17)下列函数原型声明中错误的是A ) void Fun(int x=0, int y=0);B ) void Fun(int x, int y);C ) void Fun(int x, int y=0);D )void Fun(int x=0,int y);(18)已知程序中已经定义了函数test,其原型是int test (int,int, int);,则下列重载形式中正确的是A ) char test(int,int,int);B ) double test(int,int,double);C ) int test(int,int,int=0);D ) float test(int,int,float=3.5F);(19)有以下程序#include〈iostream>int i = 0;void fun(){{static int i = 1;std::cout<〈i++<<',’;}std::cout<<i〈<',';}int main(){fun();fun();return 0;}程序执行后的输出结果是A)1,2,1,2,B)1,2,2,3,C)2,0,3,0, D)1,0,2,0,(20)已知函数f的原型是:void f(int *a,long &b);变量v1、v2的定义是:int v1;long v2;,正确的调用语句是A)f(v1, &v2); B) f(v1,v2);C)f(&v1,v2); D)f(&v1, &v2); (21)有以下类定义class MyClass{public:MyClass(){cout<〈1;}};则执行语句MyClass a, b[2],*p[2];后,程序的输出结果是A)11 B)111 C)1111 D)11111(22)关于友元,下列说法错误的是A)如果类A是类B的友元,那么类B也是类A的友元B)如果函数fun()被说明为类A的友元,那么在fun()中可以访问类A的私有成员C)友元关系不能被继承D)如果类A是类B的友元,那么类A的所有成员函数都是类B的友元(23)关于动态存储分配,下列说法正确的是A)new和delete是C++语言中专门用于动态内存分配和释放的函数B)动态分配的内存空间也可以被初始化C)当系统内存不够时,会自动回收不再使用的内存单元,因此程序中不必用delete释放内存空间D)当动态分配内存失败时,系统会立刻崩溃,因此一定要慎用new(24)有以下程序#include〈iostream〉using namespace std;class MyClass{public:MyClass(int n){number = n;}//拷贝构造函数MyClass(MyClass &other){ number=other.number;} ~MyClass(){}private:int number;};MyClass fun(MyClass p){MyClass temp(p);return temp;}int main(){MyClass obj1(10), obj2(0);MyClass obj3(obj1);obj2=fun(obj3);return 0;}2程序执行时,MyClass类的拷贝构造函数被调用的次数是A)5 B)4 C)3 D)2(25)在公有派生的情况下,派生类中定义的成员函数只能访问原基类的A)公有成员和私有成员B)私有成员和保护成员C)公有成员和保护成员D)私有成员、保护成员和公有成员(26)在C++中用来实现运行时多态性的是A)重载函数B)析构函数C)构造函数D)虚函数(27)一个类可以同时继承多个类,称为多继承。

国家开放大学期末统一考试 财经英语(2)(含解析)

国家开放大学期末统一考试  财经英语(2)(含解析)

试卷代号:2655四川电大第一学期期末考试财经英语试题考前须知一、将你的准考证号、学生证号、姓名及分校(工作站)名称填写在答题纸规定栏内。

考试结束后,把试卷和答题纸放在桌上。

试题和答题纸均不得带出考场。

监考人收完考卷和答题纸后才可离开考场。

二、仔细阅读每题的说明,并按题目要求答题。

答案必须写在答题纸的指定位置上,写在试卷上无效。

第一局部交际用语(10分)一一Hello, may I talk to the headmaster now?A.Sorry, he is busy at the moment.B.No, you can't.C.I don't know.1.・一Please give me a receipt.A.Okay. That's fine.B.Sure. Here you are.C.Yes. You are right.2.——Ifs a fine day, isn't it?A. Yes. I'm fine.B. No, I don't think so.C. Yes, it is.3.—What's the problem, Harry?A.No problem.B.Thank you for asking me about it.C.I can't remember where I left my glasses.4.——Linda, can you give me a lift after work?A.No problem. We go the same direction.B.Thank you for your offerC.Let me think a while第二局部词汇与结构(每题2分,30分)6-15小题:阅读下面的句子和对话,从A、B、C三个选项中选出一个能填人空白处的最佳选项,并在答题纸上写出所选的字母符号。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

Answers
Answer 1)
Objective 1.2)
1) The code will compile and run, printing out the words "My Func"
A class that contains an abstract method must be declared abstract itself, but may contain non abstract methods.
/tutorial/01_02Tut.htm
Answer 2)
Objective 4.1)
4) The code will compile but will complain at run time that main is not correctly defined In this example the parameter is a string not a string array as needed for the correct main method
/tutorial/04_01Tut.htm
Answer 3)
Objective 4.3)
1) public
2) private
4) transient
The keyword transient is easy to forget as is not frequently used. Although a method may be considered to be friendly like in C++ it is not a Java keyword.
/tutorial/04_03Tut.htm
Answer 4)
Objective 1.2)
2) The compiler will complain that the Base class is not declared as abstract.
If a class contains abstract methods it must itself be declared as abstract
/tutorial/01_02Tut.htm
Answer 5)
Objective 1.2)
1) To get to access hardware that Java does not know about
3) To write optimised code for performance in a language such as C/C++
/tutorial/01_02Tut.htm
Answer 6)
Objective 1.2)
4) Success in compilation and output of "amethod" at run time.
A final method cannot be ovverriden in a sub class, but apart from that it does not cause any other restrictions.
/tutorial/01_02Tut.htm
Answer 7)
Objective 1.2)
4) Compilation and execution without error
It would cause a run time error if you had a call to amethod though.
/tutorial/01_02Tut.htm
Answer 8)
Objective 1.2)
1)Compile time error: Base cannot be private
A top leve (non nested) class cannot be private.
Answer 9)
Objective 1.2)
4) P1 compiles cleanly but P2 has an error at compile time
The package statement in P1.java is the equivalent of placing the file in a different directory to the file P2.java and thus when the compiler tries to compile P2 an error occurs indicating that superclass P1 cannot be found.
/tutorial/01_02Tut.htm
Answer 10)
Objective 4.2)
2) An error at run time
This code will compile, but at run-time you will get an ArrayIndexOutOfBounds exception. This becuase counting in Java starts from 0 and so the 5th element of this array would be i[4].
Remember that arrays will always be initialized to default values wherever they are created.
/tutorial/04_02Tut.htm
Answer 11)
Objective 1.1)
2)myarray.length;
The String class has a length() method to return the number of characters. I have sometimes become confused between the two.
/tutorial/01_01Tut.htm
Answer 12)
Objective 8.2)
3) A Frame with one large button marked Four in the Centre
The default layout manager for a Frame is the BorderLayout manager. This Layout manager defaults to placing components in the centre if no constraint is passed with the call to the add method.
/tutorial/08_02Tut.htm
Answer 13)
Objective 8.2)
4) Do nothing, the FlowLayout will position the component
Answer 14)
Objective 8.2)
1) Use the setLayout method
Answer 15)
Objective 8.2)
1) ipadx
2) fill
3) insets。

相关文档
最新文档