1z0-811

1z0-811 practice questions, page 4 of 5, with answer review and explanations.

Question 16

Given: What is the result?

  1. 300
  2. 100
  3. 200
  4. A compilation error occurs.

Question 17

Given the code fragment: What is the result?

  1. A compilation error occurs.
  2. A runtime exception is thrown.
  3. Julia - Peter
  4. Peter - Julia

Question 18

Given the code fragment: Which code fragment can be inserted at line n1 to enable the code to compile?

  1. new int num[];
  2. int[] num;
  3. int[10] num;
  4. int num[10];

Question 19

Given the code fragment: What is the result?

  1. 9 12
  2. 10 10
  3. 9 9
  4. 10 14

Question 20

Given the code fragment: What is the result?

  1. Unknown issues. Invalid divisor.
  2. Unknown issues.
  3. Invalid divisor.
  4. A compilation error occurs.