-
Given:10. interface Data { public void load(); }11. abstract class Info { public abstract void load(); }Which class correctly uses the Data interface and Info class?()()
A .https://assets.asklib.com/images/image2/2018080210481836686.jpg
B .https://assets.asklib.com/images/image2/2018080210482719010.jpg
C .https://assets.asklib.com/images/image2/2018080210483486806.jpg
D .https://assets.asklib.com/images/image2/2018080210483925433.jpg
E .https://assets.asklib.com/images/image2/2018080210484613654.jpg
F .https://assets.asklib.com/images/image2/2018080210485087701.jpg
-
Which of the following class networks contains 65,534 hosts?()
A . Class A
B . Class B
C . Class C
D . Class D
-
Given: 1.package test; 2. 3.class Target { 4.public String name = "hello";5.} What can directly access and change the value of the variable name?()
A . any class
B . only the Target class
C . any class in the test package
D . any class that extends Target
-
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.
-
Which statements are true, given the code new FileOutputStream("data", true) for creating an object of class FileOutputStream?()
A . FileOutputStream has no constructors matching the given arguments.
B . An IOExeception will be thrown if a file named "data" already exists.
C . An IOExeception will be thrown if a file named "data" does not already exist.
D . If a file named "data" exists, its contents will be reset and overwritten.
E . If a file named "data" exists, output will be appended to its current contents.
-
Given: 10.interface Data { public void load(); } 11.abstract class Info { public abstract void load(); } Which class correctly uses the Data interface and Info class?()
A .https://assets.asklib.com/images/image2/2018080114295971472.png
B .https://assets.asklib.com/images/image2/2018080114300659438.png
C .https://assets.asklib.com/images/image2/2018080114301390095.png
D .https://assets.asklib.com/images/image2/2018080114301865887.png
-
Given:
https://assets.asklib.com/images/image2/2018080116044329033.png
What is the appropriate definition of the hashCode method in class Person?()
A . return super.hashCode();
B . return name.hashCode() + age * 7;
C . return name.hashCode() + comment.hashCode() / 2;
D . return name.hashCode() + comment.hashCode() / 2 - age * 3;
-
Given the following directory structure:
https://assets.asklib.com/images/image2/2018080111495059911.jpg
And the following command line invocation:
javac –d classes source/Utils.java
Assume the current directory is bigProject, what it 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:
https://assets.asklib.com/images/image2/2018080109550671577.png
Which two classes use the Shape class correctly?()
A . public class Circle implements Shape {private int radius;}
B . public abstract class Circle extends Shape {private int radius;}
C . public class Circle extends Shape {private int radius;public void draw();}
D . public abstract class Circle implements Shape { private int radius;public void draw();}
E . public class Circle extends Shape {private int radius;public void draw() {/* code here*/}}
-
Which of the following can we draw from the given information concerning the class-map "all-traffic"?()https://assets.asklib.com/images/image2/2018073114472191803.jpg
A . The class-map "all-traffic" will match all traffic with ip precedence 4 and 5
B . The class-map "all-traffic" will match all traffic with dscp 18 or dscp 43
C . The class-map "all-traffic" will match all traffic with ip precedence 0 or 1
D . The class-map "all-traffic" will match all traffic with dscp 18 and dscp 43
-
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.
-
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.
-
Given:
https://assets.asklib.com/images/image2/2018080114331739825.png
Which two methods, inserted individually, correctly complete the Three class?()
A . public void foo() {}
B . public int foo() { return 3; }
C . public Two foo() { return this; }
D . public One foo() { return this; }
E . public Object foo() { return this; }
-
Given that Thing is a class, how many objects and reference variables are created by the following code?() Thing item, stuff; item = new Thing(); Thing entity = new Thing();
A . One object is created
B . Two objects are created
C . Three objects are created
D . One reference variable is created
E . Two reference variables are created
F . Three reference variables are created.
-
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 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.
-
Which one of the following statements is NOT the suggestion given by psychologists?
-
For English names, the family name is put first, followed by the given name.
-
Given the following estimated financial results, value the stock of FishnChips, In
A., using the infinite period dividend discount model (DDM).
· Sales of $1,000,000.
· Earnings of $150,000.
· Total assets of $800,000.
· Equity of $400,000.
· Dividend payout ratio of 60.0%.
· Average shares outstanding of 75,000.
· Real risk free interest rate of 4.0%.
· Expected inflation rate of 3.0%.
· Expected market return of 13.0%.
· Stock Beta at 2.1.
The per share value of FishnChips stock is approximately: (Note: Carry calculations out to at least 3 decimal places.)
B.Unable to calculate stock value because ke
D.$17.91.
E.$26.86.
-
Given the following policy, what happens when the 1.1/17 route is evaluated?()
<img src='https://img2.soutiyun.com/shangxueba/ask/17124001-17127000/17125954/deb7ed68c2d7e927abdb1c3b0d607a7b.jpg' />
<img src='https://img2.soutiyun.com/shangxueba/ask/17124001-17127000/17125954/42e9c457823b57ebe153d61d4f5b09e9.jpg' />
A. The route does not match this policy.
B. The route is accepted.
C. The route is rejected.
D. The route is accepted with a metric of 6.
-
Which of the following statements is FALSE based on the given article?
A.The artificial nose does have a big prospect in the fields of police, state security and food-safety assurance.
B.There will be a threat of lowering down people"s privacy if some day sensors are abused.
C.Things remain even when one of the traditional protectors of American liberty is that it has been impossible to search everyone.
D.It is expected to load a single fingernail-size chip with thousands of odor receptors, enough to create a sensor that"s nearly as sensitive as a dog"s nose.
-
Which of the following type of class is the smallest in size?()
A.Tutorial
B.Lecture
C.Seminar
D.Field trip
-
Which of the following can we draw from the given information concerning the class-map "all-traffic"?()
<img src='https://img2.soutiyun.com/ask/uploadfile/2019-03-27/2b3edf249d7c9491ef9e0334bb9ca2ab.jpg' />
A. The class-map "all-traffic" will match all traffic with ip precedence 4 and 5
B. The class-map "all-traffic" will match all traffic with dscp 18 or dscp 43
C. The class-map "all-traffic" will match all traffic with ip precedence 0 or 1
D. The class-map "all-traffic" will match all traffic with dscp 18 and dscp 43
-
Given: public class Test { public static void main (); } } What is the result?
A.An exception is thrown.
B.The code will not compile
C.The program prints “null”
D.The program prints “blue”
E.The program prints “green”