题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2023-12-05 01:04:52

[单项选择] 现有两个文件:A   package x;   public class X{   public static void doX(), System.out.print(“doX”);  }   和:   Import x,X;   class Find{   public static void main(String[] args){   X myX =new X();  myX.doX();   X.doX();   x.X. doX();   x.X myX2=new x.x(); myX2.doX();  }  }   结果为:()  
A.  doX doX doX doX
B.  Find类中出现多个错误,编译失败。
C.  Find类中第4行出现一个错误,编译失败。
D.  Find类中第5行出现一个错误,编译失败。
E.  Find类中第6行出现一个错误,编译失败。
F.  Find类中第7行出现一个错误,编译失败。

更多"现有两个文件:A   package x"的相关试题:

[单项选择] 现有两个文件:      package X;      public class X  {  public static void doX()  {System.out.print ("doX");  }      }    和:  import x.X;      class Find  {  publiC static void main (String  []  args)    {      X myX=new X();    myX.doX();      X.doX();      x.X.aoX():  x.X myX2=new x.X();    myx2 .doX();          }   }      结果为:() 
A.  Find类中第4行出现一个错误,编译失败。
B.  Find类第5行出现一个错误,编译失败。
C.  Find类第6行出现一个错误,编译失败。
D.  doX doX doX doX
[多项选择] 现有2 个文件:  1. package x;  2. public class X {  3. public static void doX() { System.out.print("doX "); }  4. }  和:  1. class Find {  2. public static void main(String [] args) {  3. //insert code here  4. }  5. }  哪两行分别插入到类Find 的第3 行将编译并产生输出“doX”? ()
A. doX();
B. X.doX();
C. x.X.doX();
D. x.X myX = new x.X(); myX.doX();
[多项选择] 现有两个源文件:  package com.sun;  public class PkgAccess {  public static int tiger = 1414;  }  和  import com.sun.PkgAccess;  public class PkgAccess2 {  int x1 = PkgAccess.tiger;  int x2 = tiger;  int x3 = com.sun.PkgAccess.tiger;  int x4 = sun.PkgAccess.tiger;  }  下面哪两项是正确的?()
A. PkgAccess2 类可编译。
B. 由于第5 行发生错误编译失败。
C. 由于第6 行发生错误编译失败。
D. 由于第8 行发生错误编译失败。
[多项选择] 现有2个文件:      package x;      public class X{  public static void doX()  {System.out.print("doX");}      }   和:  class Find{  public static void main(String  []  args)  {    //insert code here      }     }  哪两行分别插入到类Find的第3行将编译并产生输出“doX”?()
A. doX();
B. X.doX();
C. x.X.doX();
D. x.X myX=new x.X();myX.doX();
[单项选择] 现有:   int x = reader.read();    下面哪一项正确?()  
A.  阅读器可以是FileReader或者BufferedReader
B.  阅读器不是FileReader或者BufferedReader类型
C.  阅读器可以是FileReader类型,但不能是BufferedReader类型
D.  阅读器可以是BufferedReader类型,但不能是FileReader类型
[多项选择] In the use of 802.1X access control, which three protocols are allowed through the switch port  before authentication takes place? ()
A.  STP
B.  CDP
C.  EAP MD5
D.  TACACS+
E.  EAP-over-LAN
F.  protocols not filtered by an ACL
[单项选择] 现有:  int x = reader.read();   下面哪一项正确?()  
A.  阅读器可以是FileReader或者BufferedReader
B.  阅读器不是FileReader或者BufferedReader类型
C.  阅读器可以是FileReader类型,但不能是BufferedReader类型
D.  阅读器可以是BufferedReader类型,但不能是FileReader类型
[单项选择] 现有:  int x- reader.read();      下面哪一项正确?() 
A. 阅读器不是FileReader或者BufferedReader类型
B. 阅读器可以是FileReader或者BufferedReader
C. 阅读器可以是FileReader类型,但不能是BufferedReader类型
D. 阅读器可以是BufferedReader类型,但不能是FileReader类型
[单项选择] An 802.1X client cannot authenticate to an autonomous access point configured for multiple VLANs. The native VLAN does not have an SSID configured. Which one of the following links being down would prevent the clients from authenticating?()
A. between the RADIUS and the access point
B. between the client’s VLAN and the WLSE
C. between the native VLAN and the WLSE
D. between the client’s VLAN and the RADIUS
[单项选择] An 802.1x client cannot authenticate to an autonomous access point configured for multiple vlans. the native vlan does not have an ssid configured. Which one of the following links being down would prevent the clients from authenticating?()
A. between the radius and the access point
B. between the client’s vlan and the wlse
C. between the native vlan and the wlse
D. between the client’s vlan and the radius
[单项选择] pany has implemented 802.1X authentication as a security enhancement.  Which statement is  true about 802.1x port-based authentication?()
A.  TACACS+ is the only supported authentication server type.
B.  If a host initiates the authentication process and does not receive a response, it assumes it is  not authorized.
C.  RADIUS is the only supported authentication server type.
D.  Before transmitting data, an 802.1x host must determine the authorization state of the switch.
E.  Hosts are required to havea 802.1x authentication client or utilize PPPoE.
F.  None of the other alternatives apply.
[多项选择] pany is implementing 802.1X in order to increase network security. In the use of 802.1X   access control,  which three protocols are allowed through the switch port before authentication  takes place? ()
A.  EAP-over-LAN
B.  EAP MD5
C.  STP
D.  protocols not filtered by an ACL
E.  CDP
F.  TACACS+
[多项选择] 现有如下包结构:  com |-- x | |-- Alpha.class | | | |-- y | |-- Beta.class | |-- Gamma.class  和类:  class Test { Alpha a; Beta b; Gamma c; }  哪三个必须加入到类 Test 中,以使其通过编译?()
A. package y;
B. package com;
C. import com.x.*;
D. import com.x.y.*
[多项选择] 现有包结构:  com |-- x | |-- Alpha.class | | | |-- y | |-- Beta.class | |-- Gamma.class  和类:  //insert code here  import com.*;  import com.x.y.*;  class Test { Alpha a; Beta b; Gamma c; }  哪两行分别插入后可允许代码编译?() 
A. package com.;
B. import com.x;
C. package com.x;
D. import com.x.Alpha;
[单项选择]  public class X {   public static void main (String[]args)   {   string s = new string (“Hello”);   modify(s);   System.out.printIn(s);   }   public static void modify (String s)  {   s += “world!”;      }   }      What is the result?()    
A.  The program runs and prints “Hello”
B.  An error causes compilation to fail.
C.  The program runs and prints “Hello world!”
D.  The program runs but aborts with an exception.
[单项选择] 现有      public class Parentt      public void change (int x){)     )      public class Child extends Parent{     //覆盖父类change方法     }      下列哪个声明是正确的覆盖了父类的change方法?()    
A.   protected void change (int x){}
B.   public void change(int x,  int y){}
C.   public void change (int x){}
D.   public void change (String s){}
[单项选择] public class X {  public static void main(String [] args) {  try {  badMethod();  System.out.print(“A”);  }  catch (Exception ex) {  System.out.print(“C”);  }  finally {  System.out.print(“B”);  }  System.out.print(“D”);  }  public static void badMethod() {  throw new Error();  }  }  What is the result?()  
A.  ABCD
B.  Compilation fails.
C.  C is printed before exiting with an error message.
D.  BC is printed before exiting with an error message.
E.  BCD is printed before exiting with an error message.

我来回答:

购买搜题卡查看答案
[会员特权] 开通VIP, 查看 全部题目答案
[会员特权] 享免全部广告特权
推荐91天
¥36.8
¥80元
31天
¥20.8
¥40元
365天
¥88.8
¥188元
请选择支付方式
  • 微信支付
  • 支付宝支付
点击支付即表示同意并接受了《购买须知》
立即支付 系统将自动为您注册账号
请使用微信扫码支付

订单号:

请不要关闭本页面,支付完成后请点击【支付完成】按钮
恭喜您,购买搜题卡成功
重要提示:请拍照或截图保存账号密码!
我要搜题网官网:https://www.woyaosouti.com
我已记住账号密码