-
Evaluate the following statement:
https://assets.asklib.com/images/image2/2018080114444988840.jpg
Which statement is true regarding the evaluation of rows returned by the subquery in the INSERT statement?()
A . They are evaluated by all the three WHEN clauses regardless of the results of the evaluation of any other WHEN clause.
B . They are evaluated by the first WHEN clause. If the condition is true, then the row would be evaluated by the subsequent WHEN clauses.
C . They are evaluated by the first WHEN clause. If the condition is false, then the row would be evaluated by the subsequent WHEN clauses.
D . The INSERT statement would give an error because the ELSE clause is not present for support in case none of the WHEN clauses are true.
-
Which built-in returns a BOOLEAN value that indicated whether an objects internal ID is available?()
A . GET_ID
B . ID_NULL
C . ID_FIND
D . FIND_ID
-
public class Plant { private String name; public Plant(String name) { this.name = name; } public String getName() { return name; } } public class Tree extends Plant { public void growFruit() { } public void dropLeaves() { } } Which is true?()
A . The code will compile without changes.
B . The code will compile if public Tree() { Plant(); } is added to the Tree class.
C . The code will compile if public Plant() { Tree(); } is added to the Plant class.
D . The code will compile if public Plant() { this(”fern”); } is added to the Plant class.
E . The code will compile if public Plant() { Plant(”fern”); } is added to the Plant class.
-
1. public class Person { 2. private String name; 3. public Person(String name) { this.name = name; } 4. public boolean equals(Person p) { 5. return p.name.equals(this.name); 6. } 7. } Which is true?()
A . The equals method does NOT properly override the Object.equals method.
B . Compilation fails because the private attribute p.name cannot be accessed in line 5.
C . To work correctly with hash-based data structures, this class must also implement the hashCode method.
D . When adding Person objects to a java.util.Set collection, the equals method in line 4 will prevent duplicates.
-
public class Mycircle { public double radius; public double diameter; public void setRadius(double radius) this.radius = radius; this.diameter= radius * 2; } public double getRadius() { return radius; } Which statement is true?()
A . The Mycircle class is fully encapsulated.
B . The diameter of a given MyCircle is guaranteed to be twice its radius.
C . Lines 6 and 7 should be in a synchronized block to ensure encapsulation.
D . The radius of a MyCircle object can be set without affecting its diameter.
-
which one of the following is an @fuction that Lonnie can use to return the value from a specific field?()
A . @value
B . @getfield
C . @GetItemVale
D . @getfieldvalue
-
Given that login.getName() returns a java.lang.String value and given the JSP code: Welcome Which is equivalent?()
A . A. Welcome <% out.print(login.getName()); %>
B . Welcome <% writer.print(login.getName()); %>
C . Welcome <% response.out.print(login.getName()); %>
D . Welcome <% response.writer.print(login.getName()); %>
E . Welcome <% response.getOutputStream().write(login.getName()); %>%>
-
Evaluate the following statement:
https://assets.asklib.com/images/image2/2018080114301711053.jpg
Which statement is true regarding the evaluation of rows returned by the subquery in the INSERT statement?()
A . They are evaluated by all the three WHEN clauses regardless of the results of the evaluation of any other WHEN clause.
B . They are evaluated by the first WHEN clause. If the condition is true, then the row would be evaluated by the subsequent WHEN clauses.
C . They are evaluated by the first WHEN clause. If the condition is false, then the row would be evaluated by the subsequent WHEN clauses.
D . The INSERT statement would give an error because the ELSE clause is not present for support in case none of the WHEN clauses are true.
-
Which statement is true if the doStartTag method returns EVAL_BODY_BUFFERED?()
A . The tag handler must implement BodyTag.
B . The doAfterBody method is NOT called.
C . The setBodyContent method is called once.
D . It is never legal to return EVAL_BODY_BUFFERED from doStartTag.
-
When setting arguments for a job, which procedure do you use for types that cannot be implicitly converted to and from a VARCHAR2 datatype?()
A . SET_JOB_ARGUMENT_VALUE
B . SET_JOB_VALUE_ANYDATA
C . SET_JOB_ANYDATA_VALUE
D . SET_SPECIAL_JOB_VALUE
E . SET_JOB_ANYTYPE_VALUE
-
Which statement is true if the do Start Tag method returns EVAL_BODY_BUFFERED?()
A . The tag handler must extend body Tag.
B . The do After Body method is NOT called.
C . The set Body Content method is called.
D . It is never legal to return EVAL_BODY_BUFFERED from do Start Tag.
-
Given this method in a class: public String toString() { StringBuffer buffer = new StringBuffer(); buffer.append(‟<‟); buffer.append(this.name); buffer.append(‟>‟); return buffer.toString(); } Which is true?()
A . This code is NOT thread-safe.
B . The programmer can replace StringBuffer with StringBuilder with no other changes.
C . This code will perform well and converting the code to use StringBuilder will not enhance the performance.
D . This code will perform poorly. For better performance, the code should be rewritten: return “<“+ this.name + “>”;
-
Which of the following datatypes are used in situations where you want an ordered set of data elements, where every element is the same datatype, and where you predefine the number of elements that appear in the set?()
A . REF
B . TABLE
C . CLOB
D . VARRAY
-
1. class SuperClass { 2. public a geta() { 3. return new a(); 4. } 5. } 6. class SubClass extends SuperClass { 7. public b geta() { 8. return new b(); 9. } 10. } Which is true?()
A . Compilation will succeed if a extends b.
B . Compilation will succeed if b extends a.
C . Compilation will always fail because of an error in line 7.
D . Compilation will always fail because of an error in line 8.
-
public class Mycircle { public double radius; public double diameter; public void setRadius(double radius) this.radius = radius; this.diameter= radius * 2; } public double getRadius() { return radius; } Which statement is true?()
A . The Mycircle class is fully encapsulated.
B . The diameter of a given MyCircle is guaranteed to be twice its radius.
C . Lines 6 and 7 should be in a synchronized block to ensure encapsulation.
D . The radius of a MyCircle object can be set without affecting its diameter.
-
public class Person { private name; public Person(String name) { this.name = name; } public int hashCode() { return 420; } } Which is true?()
A . The time to find the value from HashMap with a Person key depends on the size of the map.
B . Deleting a Person key from a HashMap will delete all map entries for all keys of typePerson.
C . Inserting a second Person object into a HashSet will cause the first Person object to beremoved as a duplicate.
D . The time to determine whether a Person object is contained in a HashSet is constant and does NOT depend on the size of the map.
-
Which is the return type of the method main()?
A . int
B . void
C . boolean
D . static
-
When clearing customs for a foreign voyage,which of the following is processed at the custom’s house and returned to the vessel().
A . Shipping Articles
B . Traveling Curio Manifest
C . Official Logbook
D . Cargo Gear Register
-
When setting arguments for a job, which procedure do you use for types that cannot be implicitly converted to and from a VARCHAR2 datatype?()
A . SET_JOB_ARGUMENT_VALUE
B . SET_JOB_VALUE_ANYDATA
C . SET_JOB_ANYDATA_VALUE
D . SET_SPECIAL_JOB_VALUE
E . SET_JOB_ANYTYPE_VALUE
-
QUESTION 20<br class="markdown_return">John the Ripper is a technical assessment tool used to test the weakness of which of the following?
A、Passwords
B、File permissions
C、Firewall rulesets
D、Usernames
-
Enclosed is our contract No.812 in duplicate ,of which please return us one copy,duly countersigned.
-
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.
-
An investor is considering two investments. Stock A has a mean annual return of 16 percent and a standard deviation of 14 percent. Stock B has a mean annual return of 20 percent and a standard deviation of 30 percent. Calculate the coefficient of variation (CV) of each stock. Which of the following statements is TRUE?
A.Stock A (CV = 0.875) has more dispersion relative to the mean than stock B.
B.Stock A (CV = 0.875) has less dispersion relative to the mean than stock B.
C.Stock A (CV 1.14) has more dispersion relative to the mean than stock B.
D.Stock A (CV 1.14) has less dispersion relative to the mean than stock B.
-
Which of the following causes of an increase in return on equity is most likely a positive sign for a firms equity investors?
A、A firm issues debt to repurchase equity.
B、Net income is increasing at a faster rate than book value of equity.
C、Net income is decreasing at a slower rate than book value of equity.