Go Back on 1z0-808 Exam
Available in 1, 3, 6 and 12 Months Free Updates Plans
PDF: $15 $60

Test Engine: $20 $80

PDF + Engine: $25 $99

1z0-808 Practice Test


Page 10 out of 48 Pages

Given the code fragment

Which option represents the state of the num array after successful completion of the outer
loop?



A.

Option A


B.

Option B


C.

Option C


D.

Option D





A.
  

Option A



Given:

What is the result?


A.

Good Day!
Good Luck!


B.

Good Day!
Good Day!


C.

Good Luck!
Good Day!



D.

Good Luck!
Good Luck!


E.

Compilation fails





E.
  

Compilation fails



View the exhibit.

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}






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}



Given the code fragment:

What is the result?


A.

10 : 10


B.

5 : 5


C.

5 : 10


D.

Compilation fails





A.
  

10 : 10



Given the code fragment:

Which modification enables the code to print 54321?


A.

Replace line 6 with System, out. print (--x) ;


B.

At line 7, insert x --;


C.

Replace line 6 with --x; and, at line 7, insert system, out. print (x);


D.

Replace line 12 With return (x > 0) ? false: true;





B.
  

At line 7, insert x --;




Page 10 out of 48 Pages
Previous