-
Given the following code fragment: public void create() { Vector myVect; myVect = new Vector(); } Which of the following statements are true?()
A . The declaration on line 2 does not allocate memory space for the variable myVect.
B . The declaration on line 2 allocates memory space for a reference to a Vector object.
C . The statement on line 2 creates an object of class Vector.
D . The statement on line 3 creates an object of class Vector.
E . The statement on line 3 allocates memory space for an object of class Vector.
-
You executed the following code: BACKUP VALIDATE DATABASE; BLOCKRECOVER CORRUPTION LIST; What will be the result of executing the above code?()
A . The code will run a backup validation to populate the V$BACKUP_CORRUPTION view and repair corrupt blocks, if any, recorded in the view.
B . The code will run a backup validate to populate the V$COPY_CORRUPTION view and then repair any corrupt blocks recorded in the view.
C . The code will runs a backup validate to populate the V$DATABASE_BLOCK_CORRUPTION view and then repair corrupt blocks, if any, recorded in the view.
D . The code will run a backup validate to populate the RC_BACKUP_CORRUPTION view and then repair corrupt blocks, if any, recorded in the view.
-
Which of the following about ISM Code is not right?()
A . It aims to ensure safety at sea
B . It aims to avoid damage to the environment
C . It aims to prevent human injury or loss of life
D . It aims to provide a method to run a company
-
Which code determines the int value foo closest to a double value bar?()
A . Int foo = (int) Math.max(bar);
B . Int foo = (int) Math.min(bar);
C . Int foo = (int) Math.abs(bar);
D . Int foo = (int) Math.ceil(bar);
E . Int foo = (int) Math.floor(bar);
F . Int foo = (int) Math.round(bar);
-
Given the following class, which statements can be inserted at position 1 without causing the code to fail compilation?() public class Q6db8 { int a; int b = 0; static int c; public void m() { int d; int e = 0; // Position 1 } }
A . a++;
B . b++;
C . c++;
D . d++;
E . e++;
-
Given the following code: public class Person{ int arr[] = new int[10]; public static void main(String a[]) { System.out.println(arr[1]); } } Which statement is correct?()
A . When compilation some error will occur.
B . It is correct when compilation but will cause error when running.
C . The output is zero.
D . The output is null.
-
Consider the following code snippet: BEGIN DBMS_SCHEDULER.SET_ATTRIBUTE ( name => ,,lne_job1, attribute => ,,job_priority, value => 1); END; / If this code were executed, which of the following statements would be true?()
A . The priority of the lne_job1 job would be set to 1.
B . The lne_job1 job would be executed synchronously.
C . The lne_job1 job would run immediately in the users current session.
D . The lne_job1 job would retain its current priority.
E . The job will immediately take priority over all running jobs.
-
In the International Code of Signals,the code signal meaning I require immediate assistance is().
A . AE
B . CB
C . DX
D . CP
-
Given the following code: public class Person{ static int arr[] = new int[10]; public static void main(String a[]) { System.out.println(arr[1];) } } Which statement is correct?()
A . When compilation some error will occur.
B . It is correct when compilation but will cause error when running.
C . The output is zero.
D . The output is null.
-
You create a Web page that contains the span shown in the following line of code. TextYou need replace the contents of the span with HTML that you download from a URL specified by a global variable named localURL. Which code segment should you use?()
A . $.ajax({ type: "GET", url: localURL, dataType: "jsonp", success: function(htmlText { $("#span1").text(htmlText); } });
B . $.ajax( localURL, {}, function(htmlText) { $("#span1").html(htmlText); },"html" );
C . $.ajax({ type: "GET", url: localURL, dataType: "html",success: function(htmlText) { $("#span1").innerHTML = htmlText; }});
D . $.ajax({ type: "GET", url: localURL, success: function(htmlText) { $("#span1").html(htmlText); } })
-
Evaluate the following block of code:
https://assets.asklib.com/images/image2/2018080208432879092.jpg
What is the outcome of the above code?()
A . It produces an error because a fully qualified host name needs to be specified.
B . It produces an error because the range of ports associated with the hosts has not been specified.
C . It creates an access control list (ACL) with the user ACCT_MGR who gets the CONNECT and RESOLVE privileges.
D . It creates an access control list (ACL) with the user ACCT_MGR who gets the CONNECT privilege but not the RESOLVE privilege.
-
After creating a virtual Ethernet adapter in slot #3 of logical partition #5, the user needs to configure the adapter in AIX. Which of the following location codes matches this virtual Ethernet adapter?()
A . U9111.520.1000000-V5-C3-T1
B . U9111.520.1000000-V3-C5-T1
C . U9111.520.1000000-V5-C1-T3
D . U9111.520.1000000-V1-C3-T5
-
According to the ISPS Code, for a sailing ship, the following except()should be onboard.
A . a ship security plan
B . a ship security officer
C . a company security officer
D . certain onboard equipment
-
You are performing an incomplete recovery because a tablespace is dropped and purged from the Recycle Bin. In which mode will you execute the following code?() RMAN>RUN { SET UNTIL SEQUENCE THREAD ; RESTORE DATABASE; RECOVER DATABASE; }
A . NOMOUNT
B . MOUNT
C . OPEN
D . RESTRICTED
-
helga is working with a multi-value field that has numeric values in a list. she would like to apply a formula to each item in the list, return the list which one of the following @fuctions can she use to accomplish this with one line of code?()
A . @transform
B . @Listprocess
C . @processlist
D . @listevaluate
-
You need to serialize an object of type List<int> in a binary format. The object is named data. Which code segment should you use?()
A .https://assets.asklib.com/images/image2/2018072715241748930.jpg
B .https://assets.asklib.com/images/image2/2018072715242076484.jpg
C .https://assets.asklib.com/images/image2/2018072715242413458.jpg
D .https://assets.asklib.com/images/image2/2018072715242755975.jpg
-
Which of the following gives the number of elements in the int array r[ ]?
-
The central character of a romance is ( ), who follows the code of behavior called chivalry.
-
2. All the following are the objectives of ISM code except ______.
-
People around the world speak in different language codes. English currently serves as a common code, but every code also has sub-codes. Which of the following is an example of a sub-code of English?
-
You are developing a Windows Communication Foundation (WCF) service. The following code de
You are developing a Windows Communication Foundation (WCF) service. The following code defines and implements the service. (Line numbers are included for reference only.)01 [ServiceContract(SessionMode = SessionMode.Allowed)]02 public interface ICatchAll03 {04 [OperationContract(IsOneWay = false, Action = "*", ReplyAction = "*")]05 Message ProcessMessage(Message message);06 }0708 public class CatchAllService : ICatchAll09 {10 public Message ProcessMessage(Message message)11 {1213 ...14 return returnMsg;15 }16 }You need to ensure that two identical copies of the received message are created in the service.Which code segment should you insert at line 12?()
A.<img src='https://img2.soutiyun.com/ask/uploadfile/2019-02-04/fab6269351e4a04ee0a851d5f96dd506.jpg' />
B.<img src='https://img2.soutiyun.com/ask/uploadfile/2019-02-04/98c2a291de971b52b6b11f0f31a030d2.jpg' />
C.<img src='https://img2.soutiyun.com/ask/uploadfile/2019-02-04/d546143d78ff2c6f1aed7463f1a53f65.jpg' />
D.<img src='https://img2.soutiyun.com/ask/uploadfile/2019-02-04/ce013fc7da98b989aab41a9ab89c550d.jpg' />
-
Yuan, CFA, is a fund manager. When Yuan is soliciting new clients, he claims that his investment return has exceeded 50% in the past three years. Based on that fact, he can guarantee such return to his new client in next year. Which of the following statements is the most accurate to comply with the CFA Institute Code of Ethics and Standards of Professional Conduct?
A.Yuan can guarantee that return to his client based on his excellent investment history.
B.Yuan does not need to mention his role in the history of investment action.
C.Yuan failed to distinguish the fact and opinion, he can’t use his historical investment return to imply the future performance.
-
You use Microsoft .NET Framework 4 to create a Windows Forms application.You plan to use a Windows Presentation Foundation (WPF) control of the UserControl1 type hosted in anElementHost control named elementHost1.You write the following code segment. (Line numbers are included for reference only.)You need to ensure that the application changes the background color of the hosted control when the background color of the form changes.Which code segment should you insert at line 05?()
<img src='https://img2.soutiyun.com/shangxueba/ask/17130001-17133000/17130030/2d777510fe2f3c75e68a192da66f7ac0.jpg' />
A.elementHost1.PropertyMap.Remove("BackColor");elementHost1.PropertyMap.Add("BackColor", new PropertyTranslator(OnBackColorChange));
B.elementHost1.PropertyMap.Remove("Background"); elementHost1.PropertyMap.Add("Background", new PropertyTranslator(OnBackColorChange));
C.elementHost1.PropertyMap.Add("BackColor", new PropertyTranslator(OnBackColorChange)); elementHost1.PropertyMap.Apply("BackColor");
D.elementHost1.PropertyMap.Add("Background", new PropertyTranslator(OnBackColorChange)); elementHost1.PropertyMap.Apply("Background");
-
1、下列编码中,_____不属于汉字输入码。 (A)区位码 (B)全拼双音 (C)五笔字型码 (D)点阵码 In the following code, ___ is not included in the Chinese character input code. (A) location code; (B) full spell double tone ; (C) wubi type code; (D) dot matrix code;