It is more faster and easier to pass the Oracle java se 7 programmer i 1z0 803 exam by using Breathing Oracle Java SE 7 Programmer I questuins and answers. Immediate access to the Abreast of the times java se 7 programmer i 1z0 803 Exam and find the same core area 1z0 803 practice test questions with professionally verified answers, then PASS your exam with a high score now.

Q71. int [] array = {1,2,3,4,5}; 

for (int i: array) { 

if ( i < 2) { 

keyword1 ; 

System.out.println(i); 

if ( i == 3) { 

keyword2 ; 

}} 

What should keyword1 and keyword2 be respectively, in oreder to produce output 2345? 

A. continue, break 

B. break, break 

C. break, continue 

D. continue, continue 

Answer:


Q72. Given: 

What is the result? 

A. There is no output 

B. d is output 

C. A StringIndexOutOfBoundsException is thrown at runtime 

D. An ArrayIndexOutOfBoundsException is thrown at runtime 

E. A NullPointException is thrown at runtime 

F. A StringArrayIndexOutOfBoundsException is thrown at runtime 

Answer:


Q73. Given: 

Which three lines will compile and output “right on!”? 

A. Line 5 

B. Line 6 

C. Line 7 

D. Line 8 

E. Line 9 

F. Line 10 

Answer: CDF 


Q74. Given: 

What is the result? 

A. 10 : 22 : 20 

B. 10 : 22 : 22 

C. 10 : 22 : 6 

D. 10 : 30 : 6 

Answer:


Q75. What is the result when this program is executed? 

A. Bob's Name: Bob 

B. Bob's Name: Jian 

C. Nothing prints 

D. Bob’s name 

Answer:


Q76. Given the code fragment: 

What could expression1 and expression2 be, respectively, in order to produce output –8, 16? 

A. + +a, - -b 

B. + +a, b- 

C. A+ +, - - b 

D. A + +, b - 

Answer:


Q77. Given: 

What is the result? 

A. 0 

B. 0 1 2 

C. 0 1 2 0 1 2 0 1 2 

D. Compilation fails 

Answer:


Q78. Given the code fragment: 

System.out.printIn("Result: " + 2 + 3 + 5); 

System.out.printIn("Result: " + 2 + 3 * 5); 

What is the result? 

A. Result: 10 

Result: 30 

Result: 10 

Result: 25 

C. Result: 235 

Result: 215 

D. Result: 215 

Result: 215 

E. Compilation fails 

Answer:


Q79. Given the code fragment: 

String name = "Spot"; 

int age = 4; 

String str ="My dog " + name + " is " + age; 

System.out.println(str); 

And 

StringBuilder sb = new StringBuilder(); 

Using StringBuilder, which code fragment is the best potion to build and print the following 

string My dog Spot is 4 

A. sb.append("My dog " + name + " is " + age); System.out.println(sb); 

B. sb.insert("My dog ").append( name + " is " + age); System.out.println(sb); 

C. sb.insert("My dog ").insert( name ).insert(" is " ).insert(age); System.out.println(sb); 

D. sb.append("My dog ").append( name ).append(" is " ).append(age); 

System.out.println(sb); 

Answer: AD 


Q80. Which two may precede the word ‘class’ in a class declaration? 

A. local 

B. public 

C. static 

D. volatile 

E. synchronized 

Answer: BC