Exam Code: 1z0 803 pdf (Practice Exam Latest Test Questions VCE PDF)
Exam Name: Java SE 7 Programmer I
Certification Provider: Oracle
Free Today! Guaranteed Training- Pass 1z0 803 practice test Exam.

Q61. Given: 

What is the result? 

A. Compilation fails 

B. An exception is thrown at runtime 

C. There is no result because this is not correct way to determine the hash code 

D. Hash is: 111111, 44444444, 999999999 

Answer:


Q62. Given: 

What is the result? 

A. One 

B. Two 

C. Three 

D. Compilation fails 

Answer:


Q63. A method is declared to take three arguments. A program calls this method and passes only two arguments. What is the results? 

A. Compilation fails. 

B. The third argument is given the value null. 

C. The third argument is given the value void. 

D. The third argument is given the value zero. 

E. The third argument is given the appropriate falsy value for its declared type. 

F. An exception occurs when the method attempts to access the third argument. 

Answer:


Q64. Given: 

What is the result? 

A. 2 1 

B. 2 1 0 

C. null 

D. an infinite loop 

E. compilation fails 

Answer:


Q65. Given: 

What three modifications are necessary to ensure that the class is being properly encapsulated? 

This class is poorly encapsulated. You need to change the circle class to compute and return the area instead. 

A. Change the access modifier of the setradius () method to private 

B. Change the getArea () method public double getArea () { return area; } 

C. When the radius is set in the Circle constructor and the setRadius () method, recomputed the area and store it into the area field 

D. Change the getRadius () method: 

public double getRadius () { 

area = Math.PI * radius * radius; 

return radius; 

Answer: BCD 


Q66. Given: 

Given the code fragment: 

What is the result? 

A. 10 20 30 40 

B. 0 0 30 40 

C. Compilation fails 

D. An exception is thrown at runtime 

Answer:


Q67. Given: 

What is the result? 

A. 6 5 6 4 

B. 6 5 5 4 

C. 6 5 6 6 

D. 6 5 6 5 

Answer:


Q68. Given the code fragment: 

Which code fragment, when inserted at // insert code here, enables the code to compile and and print a b c? 

A. List update (String[] strs) 

B. Static ArrayListupdate(String [] strs) 

C. Static List update (String [] strs) 

D. Static void update (String[] strs) 

E. ArrayList static update(String [] strs) 

Answer:


Q69. View the exhibit. 

Given the code fragment: 

Which change enables the code to print the following? 

James age: 20 

Williams age: 32 

A. Replacing line 5 with public static void main (String [] args) throws MissingInfoException, 

AgeOutofRangeException { 

B. Replacing line 5 with public static void main (String [] args) throws.Exception { 

C. Enclosing line 6 and line 7 within a try block and adding: 

catch(Exception e1) { //code goes here} 

catch (missingInfoException e2) { //code goes here} 

catch (AgeOutofRangeException e3) {//code goes here} 

D. Enclosing line 6 and line 7 within a try block and adding: 

catch (missingInfoException e2) { //code goes here} 

catch (AgeOutofRangeException e3) {//code goes here} 

Answer:


Q70. Given the code fragment: 

int b = 3; 

Oracle 1z0-803 : Practice Test 

if ( !(b > 3)) { 

System.out.println("square "); 

}{ 

System.out.println("circle "); 

System.out.println("..."); 

What is the result? 

A. square... 

B. circle... 

C. squarecircle... 

D. Compilation fails. 

Answer: