aiotestking uk

1Z0-803 Exam Questions - Online Test


1Z0-803 Premium VCE File

Learn More 100% Pass Guarantee - Dumps Verified - Instant Download
150 Lectures, 20 Hours

Q1. Given: 

What is the result? 

A. 1 1 1 

B. 1 2 3 

C. 2 3 4 

D. Compilation fails 

E. The loop executes infinite times 

Answer:

Q2. What is the result if the integer aVar is 9? 

A. 10 Hello world! 

B. 10 Hello universe! 

C. 9 Hello world! 

D. Compilation fails. 

Answer:

Q3. Given: 

What is the result? 

A. x: 1 y: 2 

B. 3 y: 4 

C. x: 0 y: 0 

D. 3 y: 4 

E. x: 1 y: 2 

F. 0 y: 0 

G. x: 0 y: 0 

H. 0 y: 0 

Answer:

Q4. Given the fragments: 

Which line causes a compilation error? 

A. Line n1 

B. Line n2 

C. Line n3 

D. Line n4 

Answer:

Q5. Given: 

A. a, e i, o 

B. a, e o, o 

C. e, e I, o 

D. e, e o, o 

Answer:

Q6. Given the code format: 

Which code fragment must be inserted at line 6 to enable the code to compile? 

A. DBConfiguration f; return f; 

B. Return DBConfiguration; 

C. Return new DBConfiguration; 

D. Retutn 0; 

Answer:

Q7. Give: 

What is the result? 

A. 1525 

B. 13 

C. Compilation fails 

D. An exception is thrown at runtime 

E. The program fails to execute due to runtime error 

Answer:

Q8. Which two statements are true for a two-dimensional array of primitive data type? 

A. It cannot contain elements of different types. 

B. The length of each dimension must be the same. 

C. At the declaration time, the number of elements of the array in each dimension must be 

specified. 

D. All methods of the class object may be invoked on the two-dimensional array. 

Answer: CD 

Q9. Class StaticField { 

static int i = 7; 

public static void main(String[] args) { 

StaticFied obj = new StaticField(); 

obj.i++; 

StaticField.i++; 

obj.i++; 

System.out.println(StaticField.i + " "+ obj.i); 

What is the result? 

A. 10 10 

B. 8 9 

C. 9 8 

D. 7 10 

Answer:

Q10. Which two are valid declarations of a two-dimensional array? 

A. int [] [] array2D; 

B. int [2] [2] array2D; 

C. int array2D []; 

D. int [] array2D []; 

E. int [] [] array2D []; 

Answer: AD