题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2023-10-21 23:34:35

[多项选择] Which two code fragments correctly create and initialize a static array of int elements()
A. static final int[]a={100,200};
B. static final int[]a;static{a=new int[2];a[0]=100;a[1]=200;}
C. static final int[]a=new int[2]{100,200};
D. static final int[]a;static void int(){a=new int[3];a[0]=100;a[1]=200;}

更多"Which two code fragments correctly "的相关试题:

[多项选择]Which two commands will successfully create ping traffic?()
A. user@router# ping 10.10.10.1
B. user@router# run ping 10.10.10.1
C. user@router> ping 10.10.10.1
D. user@router> request ping 10.10.10.1
[多项选择]Which two commands are needed to create and apply an export policy that advertises static routes to OSPF neighbors?()
A. edit policy-options policy-statement policy-name set term 1 from protocol static set term 1 then accept
B. edit ospf policy set from protocol static set 1 then accept
C. set protocols OSPF export policy-name
D. set protocols OSPF policy policy-name
[多项选择]Which two can be used to create and apply an export policy that advertises static routes to RIP neighbors?()
A. set protocols rip export demo
B. edit policy-options policy-statement demo set term 1 from protocol static set term 1 then accept
C. edit policy-options policy-statement demo set term 1 from protocol static
D. set policy-options policy-statement demo
[多项选择]Which are the two options to which a menu can be assigned?() (Choose two.)
A. menu
B. functions
C. data group
D. responsibility
E. functional group
[多项选择]Which are the two prerequisites before setting up Flashback Data Archive? ()(Choose two.)
A. Flash recovery area must be defined
B. Undo retention guarantee must be enabled.
C. Database must be running in archivelog mode.
D. Automatic undo management must be enabled.
E. The tablespace in which the Flashback Data Archive is created must have automatic segment space Management (ASSM).
[单项选择]Which of the two events listed occurs simultaneously in a two-stroke/cycle diesel engine?()
A. Exhaust and scavenging
B. Scavenging and compression
C. Ignition and expansion
D. Exhaust and compression
[多项选择]Which statement describe two of the benefits of VLAN Trunking Protocol?()
A. VTP allows routing between VLANs.
B. VTP allows a single switch port to carry information to more than one VLAN.
C. VTP allows physically redundant links while preventing switching loops.
D. VTP simplifies switch administration by allowing switches to automatically share VLAN configuration information.
E. VTP helps to limit configuration errors by keeping VLAN naming consistent across the VTP domain.
F. VTP enhances security by preventing unauthorized hosts from connecting to the VTP domain.
[多项选择]Which statements describe two of the benefits of VLAN Trunking Protocol?()
A. VTP allows routing between VLANs.
B. VTP allows a single switch port to carry information to more than one VLAN.
C. VTP allows physically redundant links while preventing switching loops.
D. VTP simplifies switch administration by allowing switches to automatically share VLAN configuration information.
E. VTP helps to limit configuration errors by keeping VLAN naming consistent across the VTP domain.
F. VTP enhances security by preventing unauthorized hosts from connecting to the VTP domain.
[单项选择] You create two resource plans,one for data warehouse loading jobs at night and the other for application jobs at day time. You want the resource plans to activate automatically so that the resource allocation is optimum as desired by the activity.  How would you achieve this?()  
A.  Implement job classes
B.  Implement Scheduler windows
C.  Implement the mapping rule for the consumer groups
D.  Set the SWITCH_TIME resource plan directive for both the resource plans
[单项选择]Which one of two crossing power-driven vessels has the right of way in a fog().
A. Both vessels
B. Neither vessel
C. The vessel on portside
D. The vessel on starboard side
[单项选择]Which are the two main uses of a VIO server?()
A. Virtualize network and memory to LPARs.
B. Virtualize network and storage to LPARs.
C. Virtualize memory and processors to LPARs.
D. Virtualize storage and processors to LPARs.
[多项选择]Which two create an instance of an array?() 
A.  int ia = new int [15];
B.  float fa = new float [20];
C.  char ca = “Some String”;
D.  Object oa = new float[20];
E.  Int ia = (4, 5, 6) (1, 2, 3)
[多项选择]Which two create an InputStream and open file the “file.txt” for reading? ()
A.  InputStream in=new FileReader(“file.txt”);
B.  InputStream in=new FileInputStream(“file.txt”);
C.  InputStream in=new InputStreamFileReader (“file.txt”, “read”);
D.  FileInputStream in=new FileReader(new File(“file.txt”));
E.  FileInputStream in=new FileInputStream(new File(“file.txt”));
[多项选择]Which two code fragments are most likely to cause a StackOverflowError?()
A. int []x = {1,2,3,4,5};for(int y = 0; y < 6; y++)    System.out.println(x[y]);
B. static int[] x = {7,6,5,4};static { x[1] = 8;x[4] = 3; }
C. for(int y = 10; y < 10; y++)doStuff(y);
D. void doOne(int x) { doTwo(x); }void doTwo(int y) { doThree(y); }void doThree(int z) { doTwo(z); }
E. for(int x = 0; x < 1000000000; x++) doStuff(x);
F. void counter(int i) { counter(++i); }
[多项选择]Which two code fragments will execute the method doStuff() in a separate thread?()
A. new Thread() {public void run() { doStuff(); }};
B. new Thread() {public void start() { doStuff(); }};
C. new Thread() {public void start() { doStuff(); }}.run();
D. new Thread() {public void run() { doStuff(); }}.start();
E. new Thread(new Runnable() {public void run() { doStuff(); }}).start();
[多项选择]Which two code fragments correctly create and initialize a static array of int elements?()
A. static final int[] a = { 100,200 };
B. static final int[] a; static { a=new int[2]; a[0]=100; a[1]=200; }
C. static final int[] a = new int[2]{ 100,200 };
D. static final int[] a; static void init() { a = new int[3]; a[0]=100; a[1]=200; }

我来回答:

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

订单号:

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