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

[多项选择] Given:  Integer i = new Integer (42);  Long l = new Long (42);  Double d = new Double (42.0);   Which two expression evaluate to true?()
A.  (i = = l)
B.  (i = = d)
C.  (d = = l)
D.  (i.equals(d))
E.  (i.equals(i))
F.  (i.equals(42))

更多"Given:  Integer i =&"的相关试题:

[单项选择] Given the script   create script db_backup_datafile_script  {backup datafile and 1, and2 plus archivelog delete input;} Run {execute script db_backup_datafile_script using 2;}   What is the result of running this command?()  
A.  The script will fail since you instructed RMAN to back up only one datafile rather than two
B.  The script will successfully back up datafile 3 without error
C.  The script will fail since it uses a substitution variable which is not supported
D.  The execute script command will prompt for the value of and2 since it’s not included in the command
E.  The script will fail because you cannot use the plus archivelog command when backing up
[单项选择] Given the following expression about TextField which use a proportional pitch font.  TextField t = new TextField("they are good",40);     Which statement is true?() 
A.  The displayed string can use multiple fonts.
B.  The maximum number of characters in a line will be 40.
C.  The displayed width is exactly 40 characters.
D.  The user can edit the characters.
[单项选择] Given the Tag:   Assuming the tag referenced by my Tags: get Advice uses the Classic event model,  which is true?()
A.  The do After Body method is called.
B.  The doEnd Tag method is NOT called.
C.  The type attribute may be specified in the TLD
D.  The do Start Tag Method must always return SKIP_BODY.
E.  The TLD for this tag must NOT include a  tag.
[单项选择] Given a method that must ensure that its parameter is not null: 11. public void someMethod(Object value) { 12. // check for null value ... 20. System.out.println(value.getClass()); 21. } What inserted at line 12, is the appropriate way to handle a null value?()
A. assert value == null;
B. assert value != null, "value is null";
C. if (value == null) { throw new AssertionException("value is null"); }
D. if (value == null) { throw new IllegalArgumentException("value is null"); }
[单项选择] Given the following on a system that is not a name server, which will be the first area searched to resolve a host name to an IP address?()  #cat /etc/resolv.conf   domain abc.century.com   nameserver 192.9.201.1   nameserver 192.9.201.2  #cat /etc/netsvc.conf   hosts = bind,nis,local   #echo $NSORDER   local,bind 
A.  /etc/hosts on server 192.9.201.2
B.  /etc/hosts on the local system
C.  /etc/named.rev on 192.9.201.1
D.  /etc/netsvc.conf on the NIS server
[单项选择] Given a complete loss of your database, in what order would you need to perform the following RMAN operations to restore it?()   a. restore controlfile  b. restore database  c. restore spfile  d. recover database  e. alter database open  f. alter database open resetlogs
A.  b, a, c, d, e
B.  a, c, b, d, f
C.  c, a, b, d, e
D.  c, a, b, d, f
E.  e, a, b, d, c
[单项选择] Given this fragment in a servlet: 23.if(req.isUserInRole("Admin")) { 24.// do stuff 25.} And the following fragment from the related Java EE deployment descriptor: 812. 813.Admin 814.Administrator 815. 900. 901.Admin 902.Administrator 903. What is the result?()
A. Line 24 can never be reached.
B. The deployment descriptor is NOT valid.
C. If line 24 executes, the user’s role will be Admin.
D. If line 24 executes, the user’s role will be Administrator.
E. If line 24 executes the user’s role will NOT be predictable.
[单项选择] Given the following directory structure: bigProject |--source ||--Utils.java| |--classes |-- And the following command line invocation: javac -d classes source/Utils.java Assume the current directory is bigProject,what is the result?()
A. If the compile is successful, Utils.class is added to the source directory.
B. The compiler returns an invalid flag error.
C. If the compile is successful, Utils.class is added to the classes directory.
D. If the compile is successful, Utils.class is added to the bigProject directory.
[多项选择] Given the security constraint in a DD:// 101. 102. 103.Foo 104./Bar/Baz/* 105.POST 106. 107. 108.DEVELOPER 109. 110. And given that "MANAGER" is a valid role-name,which four are true for this security constraint?()
A. MANAGER can do a GET on resources in the /Bar/Baz directory.
B. MANAGER can do a POST on any resource in the /Bar/Baz directory.
C. MANAGER can do a TRACE on any resource in the /Bar/Baz directory.
D. DEVELOPER can do a GET on resources in the /Bar/Baz directory.
E. DEVELOPER can do only a POST on resources in the /Bar/Baz directory.
F. DEVELOPER can do a TRACE on any resource in the /Bar/Baz directory.
[单项选择] Given the configuration shown in the exhibit, which configuration object would be used to associate bothNancy and Walter with firewall user authentication within a security policy?() profile ftp-users { client nancy { firewall-user { password "$9$lJ8vLNdVYZUHKMi.PfzFcyrvX7"; ## SECRET-DATA } } client walter { firewall-user { password "$9$a1UqfTQnApB36pBREKv4aJUk.5QF"; ## SECRET-DATA } } session-options { client-group ftp-group; } } firewall-authentication { pass-through { default-profile ftp-users;ftp { banner { login "JUNOS Rocks!"; } } } }
A. ftp-group
B. ftp-users
C. firewall-user
D. nancy and walter
[多项选择] Given 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; }  }  
A. Definition a.
B. Definition b.
C. Definition c.
D. Definition d.
E. Definition e.
[单项选择] Given  1.  public class Foo {  2.  public static void main (String [] args) }  3.  try { return;}  4.  finally { Syste.out.printIn (“Finally”);}  5. }  6. }   What is the result( )?
A.  The program runs and prints nothing.
B.  The program runs and prints “Finally”.
C.  The code comiles. But an exception is thrown at runtime.
D.  The code will not compile because the catch block is missing.
[单项选择] Given a portion of a valid Java EE web application’s directory structure:MyApp | |--Directory1 ||--File1.html| |--META-INF|  |--File2.html| |--WEB-INF |--File3.html You want to know whether File1.html, File2.html,and/or File3.html is protected from direct access by yourweb client’s browsers. What statement is true?()
A. All three files are directly accessible.
B. Only File1.html is directly accessible.
C. Only File2.html is directly accessible.
D. Only File3.html is directly accessible.
[多项选择] Given a header in an HTTP request:X-Retries:4 Which two retrieve the value of the header from a given HttpServletRequest request?()
A. Request.getHeader("X-Retries")
B. Request.getIntHeader("X-Retries")
C. Request.getRequestHeader("X-Retries")
D. Request.getHeaders("X-Retries").get(0)
E. Request.getRequestHeaders("X-Retries").get(0)
[多项选择] Given in a single JSP page: <%@ taglib prefix=’java’ uri=’myTags’ %> <%@ taglib prefix=’JAVA’ uri=’moreTags’ %>  Which two are true?()
A. The prefix ’java’ is reserved.
B. The URI ’myTags’ must be properly mapped to a TLD file by the web container.
C. A translation error occurs because the prefix is considered identical by the web container.
D. For the tag usage , the tag1 must be unique in the union of tag names in ’myTags’ and’moreTags’.
[单项选择] Given that c is a reference to a valid java.io.Console object, and: 11.String pw = c.readPassword("%s", "pw: "); 12.System.out.println("got " + pw); 13.String name = c.readLine("%s", "name: "); 14.System.out.println(" got ", name); If the user types fido when prompted for a password, and then responds bob when prompted for a name,what is the result?()
A. An exception is thrown at runtime
B. pw: fido got fido name: bob got bob
C. pw: got fido name: bob got bob
D. Compilation fails.
[单项选择] Given that session is a valid HttpSession object:   Int max = session.getAttribute(“MyReallyLongName”);   Which is true?()  
A.  The value returned needs to be cast to an int.
B.  The getAttribute methos takes two arguments.
C.  Primitive CANNOT be stored in the HttpSession.
D.  The HttpSession attribute name must NOT exceed eight characters.
[多项选择] Given the output from a show route extensive command (some information removed):  10.10.0.0/16 (2 entries, 1 announced)  Communities: 64512:666 90:4070 5834:66  172.16.1.0/24 (1 entries, 1 announced)  Communities: 65000:1696 1234:666 50:7090  172.16.20.0/22 (1 entries, 1 announced)  Communities: 65544:1000 80:1001 8431:14952  192.168.33.64/26 (2 entries, 1 announced)  Communities: 10:4307 9231:1071 64512:999  Which two routes appear when a show route community 64512:* command is executed?()
A. 10.10.0.0/16
B. 172.16.1.0/24
C. 172.16.20.0/22
D. 192.168.33.64/26

我来回答:

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

订单号:

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