1Z0-850 | A Review Of Accurate 1Z0-850 practice test


Q121. - (Topic 1) 

Which two are true about the relationship "A keyboard has 101 keys."? (Choose two.) 

A. This is a many-to-many relationship. 

B. This is a composition relationship. 

C. This is a not a composition relationship. 

D. This is a one-to-one relationship. 

E. This is a one-to-many relationship. 

Answer: B,E 

Q122. - (Topic 2) 

Click the Exhibit button. Which two are true? (Choose two.) 

A. Every Flurb is associated with exactly one Flurb. 

B. There can only be one instance of the Flurb class. 

C. Every Flurb contains a reference to itself. 

D. There must always be an even number of Flurb instances. 

E. A Flurb can be associated with itself, but it also could be associated with a different Flurb. 

Answer: A,E 

Q123. - (Topic 1) 

Click the Task button. Which is true? 

A. A is an instance of B. 

B. A extends B. 

C. A implements B. 

D. B extends A. 

E. This is NOT valid UML notation. 

F. B implements A. 

G. B is an instance of A. 

Answer:

Q124. - (Topic 2) 

A Java programmer wants to develop a browser-based multitier application for a large bank. Which Java edition (or editions) should be used to develop this system? 

A. only J2ME 

B. J2SE and J2EE 

C. J2SE and J2ME 

D. only J2SE 

E. only J2EE 

F. J2EE and J2ME 

Answer:

Q125. - (Topic 1) 

Which two are valid examples of interface implementation? (Choose two.) 

A. class C implements D { } 

B. class C implements D E { } 

C. class C extends D { } 

D. class C implements D, E { } 

E. class C extends D, E { } 

F. class C extends D, implements E { } 

Answer: A,D 

Q126. - (Topic 1) 

Given: 

1.

 class Test { 

2.

 public static void main(String args[]) { 

3.

 int num1 = 10, num2 = 20, result; 

4.

 result = calc(num1, num2); 

5.

 System.out.println(result); 

6.

 } 

7. 

8.

 // insert code here 

9.

 } 

Which, inserted at line 8, produces the output 30? 

A. static int calc(int n1, int n2) { return; } 

B. public int calc(int n1, int n2) { return n1 + n2; } 

C. public int calc(int n1, int n2) { return; } 

D. static int calc(int n1, int n2) { return n1 + n2; } 

E. static void calc(n1, n2) { return (n1 + n2); } 

F. static int calc(int n1, n2) { return n1, n2; }; 

Answer:

Q127. - (Topic 2) 

Which is a valid abstract class? 

A. public abstract class Car { 

protected abstract void accelerate(); 

B. public abstract class Car { 

protected void accelerate(); 

C. public abstract class Car { 

protected abstract void accelerate() { 

// more code here 

D. public interface Car { 

protected abstract void accelerate(); 

E. public abstract class Car { 

protected final void accelerate(); 

Answer:

Q128. - (Topic 1) 

Which J2EE technology is used to generate dynamic content for web-based applications? 

A. JAX-RPC 

B. JNDI 

C. JMS 

D. SOAP 

E. JSP 

Answer:

Q129. - (Topic 2) 

Which is an advantage of RMI over sockets? 

A. Interactive communication is NOT possible using sockets. 

B. RMI transmission speed is faster than sockets. 

C. It is NOT necessary to implement an application-level communication protocol to use RMI. 

D. Sockets CANNOT transmit objects. 

Answer:

Q130. - (Topic 1) 

Which type of primitive can be assigned a new value within a conditional expression? 

A. char 

B. boolean 

C. byte 

D. int 

E. short 

Answer: