A system at 19

题目

A system at 192.100.45.17 is able to print to the printer.  However, another system at 192.100.50.23 cannot print to the same printer.  All of the following should be performed EXCEPT:()

  • A、 Increase the size of /var. 
  • B、 Check /etc/qconfig file. 
  • C、 Check the default route. 
  • D、 Check for name resolution.
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

The(74)has several major components, including the system kernel, a memory management system, the file system manager, device drivers, and the system libraries.

A.application

B.information system

C.network

D.operating system


正确答案:D
解析:操作系统有几个主要组成部分,主要包括系统内核、内存管理、文件系统管理、设备驱动管理和系统库等。

第2题:

11.classA{12.publicvoidprocess(){System.out.print(”A);}}13.classBextendsA{14.publicvoidprocess()throwsRuntimeException{15.super.process();16.if(true)thrownewRuntimeException();17.System.out.print(B”);}}18.publicstaticvoidmain(String[]args){19.try{((A)newB()).process();}20.catch(Exceptione){System.out.print(”Exception);}21.}Whatistheresult?()

A.Exception

B.AException

C.AExceptionB

D.ABException

E.Compilationfailsbecauseofanerrorinline14.

F.Compilationfailsbecauseofanerrorinline19.


参考答案:B

第3题:

John H Hall played a significant role in developing the “American system of production” in early 19th century-using interchangeable parts for mass manufacturing, which lowered costs and improved efficiency.()

此题为判断题(对,错)。


正确答案:√

第4题:

Given:11.staticclassA{12.voidprocess()throwsException{thrownewException();}13.}14.staticclassBextendsA{15.voidprocess(){System.out.println("B");}16.}17.publicstaticvoidmain(String[]args){18.Aa=newB();19.a.process();20.}Whatistheresult?()

A.Compilationfailsbecauseofanerrorinline19.

B.Anexceptionisthrownatruntime.

C.B

D.Compilationfailsbecauseofanerrorinline18.

E.Compilationfailsbecauseofanerrorinline15.

F.Thecoderunswithnooutput.


参考答案:A

第5题:

11.publicvoidtestIfA(){12.if(testIfB(”True”)){13.System.out.println(”True”);14.}else{15.System.out.println(”Nottrue”);16.}17.}18.publicBooleantestIfB(Stringstr){19.returnBoolean.valueOf(str);20.}WhatistheresultwhenmethodtestIfAisinvoked?()

A.True

B.Nottrue

C.Anexceptionisthrownatruntime.

D.Compilationfailsbecauseofanerroratline12.

E.Compilationfailsbecauseofanerroratline19.


参考答案:A

第6题:

11.publicvoidgenNumbers(){12.ArrayListnumbers=newArrayList();13.for(inti=0;i<10;i++){14.intvalue=i*((int)Math.random());15.IntegerintObj=newInteger(value);16.numbers.add(intObj);17.}18.System.out.println(numbers);19.}WhichlineofcodemarkstheearliestpointthatanobjectreferencedbyintObjbecomesacandidateforgarbagecollection?()

A.Line16

B.Line17

C.Line18

D.Line19

E.TheobjectisNOTacandidateforgarbagecollection.


参考答案:D

第7题:

11.classa{12.publicvoidprocess(){System.out.print(”a,”);}}13.classbextendsa{14.publicvoidprocess()throwsIOException{15.super.process();16.System.out.print(”b,”);17.thrownewIOException();18.}}19.publicstaticvoidmain(String[]args){20.try{newb().process();}21.catch(IOExceptione){System.out.println(”Exception”);}}Whatistheresult?()

A.Exception

B.a,b,Exception

C.Compilationfailsbecauseofanerrorinline20.

D.Compilationfailsbecauseofanerrorinline14.

E.ANullPointerExceptionisthrownatruntime.


参考答案:D

第8题:

( 19 )阅读下列代码

public class Test2005{

public static void main(String args[]){

String s= ″ Test ″ ;

Switch(s){

case ″ Java ″ : System.out.print( ″ Java ″ ) ;

break ;

case ″ Language ″ : System.out.print( ″ Language ″ ) ;

break ;

case ″ Test ″ : System.out.print( ″ Test ″ ) ;

break ;

}

}

}

其运行结果是

A ) Java

B ) Language

C ) Test

D )编译出错


正确答案:C

第9题:

下列程序中,给出两个整数2和3,分别求2除以3和2乘以3的结果,要求调用类ex19_1的方法method()来输出相应的结果,请将程序补充完整。程序运行结果如下。

0.6666666666666666

6

源程序文件代码清单如下:

public class exl9 1

{

public static void main(String args[])

{

int n1=2,n2=3;

ex19_1 obj19_1=new ex19_1();

obj19_1.

}

public void method(int x,int y)

{

System.out.println(______);

System.out.println(______);

}

}


正确答案:method(n1n2) (double)x/y x*y
method(n1,n2) (double)x/y x*y 解析:本题主要考查Java语言的数据类型和结构以及不同数据类型之间的转换,和对象调用方法以及基本的运算操作。解题关键是熟悉 Java语言的基本数据类型和类型之间的转换,用类的对象来调用方法,以及熟悉Java语言的基本运算。在本题中,第1空通过类ex19_1的对象obj19_1调用类ex19_1的方法 method(),将变量n1和n2作为参数传递给方法。第2空由于x、y都是int型,则x/y的结果为0.666…,这会转换为int型,其值为0。所以要对数据进行类型转换,将x转换为 double型则y也转换为double型,因此结果为 double型,值为0.666…。第3空无须做类型转换,直接输出x*y的值6即可。

第10题:

Given:11.publicvoidgenNumbers(){12.ArrayListnumbers=newArrayList();13.for(inti=0;i<10;i++){14.intvalue=i*((int)Math.random());15.IntegerintObj=newInteger(value);16.numbers.add(intObj);17.}18.System.out.println(numbers);19.}WhichlineofcodemarkstheearliestpointthatanobjectreferencedbyintObjbecomesacandidateforgarbagecollection?()

A.Line19

B.TheobjectisNOTacandidateforgarbagecollection.

C.Line17

D.Line16

E.Line18


参考答案:A

更多相关问题