大学英语四级

单选题In the 1950s, classroom violence ______.A was something unheard ofB was by no means a rare occurrenceC attracted a lot of public attentionD began to appear in analysts’ data

题目
单选题
In the 1950s, classroom violence ______.
A

was something unheard of

B

was by no means a rare occurrence

C

attracted a lot of public attention

D

began to appear in analysts’ data

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

第1题:

After that, we have to post() letters.

A、a set of

B、a lot of

C、a series of


参考答案:C

第2题:

Because ________ bad weather we had to have our physical education class in the classroom.

A、of

B、it was

C、of the

D、the


参考答案:A

第3题:

does the idea of working abroad _____________ you?

A. fond of

B.interest in

C. appear to

D. appeal to


正确答案:D

第4题:

A by means of

B in terms of

C with regard to

D in line with


正确答案:B

第5题:

In the 1940s,classroom violence______.

A.was something unheard of

B.was by no means a rare occurrence

C.attracted a lot of public attention

D.began to appear in analysts" data


正确答案:A
确切地说,该题属例证题。依据文章第五段第三行“unheardofinthe1940s”。

第6题:

There is a truck ______ the classroom.

A、in the front of

B、 in front of

C、in front

D、at the front of


参考答案:B

第7题:

public class Something {

public static void main(String[] args) {

Something s = new Something();

System.out.println("s.doSomething() returns " + doSomething());

}

public String doSomething() {

return "Do something ...";

}

}

看上去很完美。


正确答案:

 

错。看上去在main 里call doSomething 没有什么问题,毕竟两个methods 都在同一个

class 里。但仔细看,main 是static 的。static method 不能直接call non-static methods。可改

成"System.out.println("s.doSomething() returns " + s.doSomething());"。同理,static method 不

能访问non-static instant variable。

第8题:

12.

A.lot of

B. few

C. a little


正确答案:C

第9题:

阅读以下说明和Java程序,将应填入(n)处的字句写在对应栏内。

[说明]

下面程序输出一个矩形面积,以及矩形区域上的假想的作物产量。

[Java程序]

public class MainJava {

public static void main(String[] args){

Lot_size small=new Lot_size();

Lot_size medium=new Lot_size();

small.set(5,5,5,25);

medium.set(10,10,10,50);

System.out.println("For a small lot of area"

+small.get_area()+"\n");

System.out.println("the actual crops are $"

+small.get_data2()+"\n");

System.out.println("and ideal crops are $"

+small.get data()+"\n");

System.out.println("For a medium lot of area"

+medium.get_area()+“\n”);

System.out.println("the actual crops are $"

+medium.get_data2()+"\n");

System.out.println ("and ideal crops are $"

+medium.get_data()+"\n");

}

}

class Crop_assessment{

private int actual_crop;

private int ideal_crop;

public void set(int in_actual,int in ideal){

actual_crop=in_actual;

ideal_crop=in_ideal;

}

public int get_actual_crop(){return (1) ;}

public int get_ideal_crop()(return (2) ;}

}

class Lot_size{

private int length;

private int width;

private Crop_assessment crop= (3) ;

public void set(int 1,int W,int a,int i){

length=1;

width=W;

crop.set(a,i);

}

public int get_area(){return length*width;}

public int get_data()freturn (4) ;}

public int get_data2()(return (5) ;}

}


正确答案:(1) return actual_crop (2) return ideal_crop (3) new Crop_assessment() (4) crop.get_ideal_crop (5) crop.get_actual_crop()
(1) return actual_crop (2) return ideal_crop (3) new Crop_assessment() (4) crop.get_ideal_crop (5) crop.get_actual_crop() 解析:本题以Java语言为载体,考查面向对象程序设计中的几个重要概念—类的嵌套及函数的使用。
本题的功能是通过已定义的粮食收成类定义了一个计算特定矩形域上粮食收成的类,在主函数中定义了两个对象,并调用了相应的函数,来输出理想和实际的粮食产量。
首先,由于Crop assessment定义的成员数据缺省为私有的,所以想要获得实际和理想的粮食产量,要通过两个公有成员函数,所以(1)处应填入“return actual_crop”,(2)处应填入“return ideal_crop”。
其次,在类Lot size中,由于我们要反映矩形域上的粮食产量,所以我们在类中嵌套定义了一个类,Java中对象需要实例化,故(3)应填入“new Crop_assessment()”。
最后,由于我们想通过Lot_size类中的get_data和get_data2函数得到粮食产量,但由于这两个成员数据是私有函数,所以我们必须通过定义的对象调用它,所以(4)应填入“crop.get_ideal_crop()”,(5)应填入“crop.get_actual_crop()”。

第10题:

Something important has come up.This sentence means something important happens unexpectedly.


正确答案:正确

更多相关问题