1Z0-811 • Timed Practice Test 3
This is a timed practice session. You have 10 minutes to answer 10 questions — approximately 1 minute per question, matching real 1Z0-811 exam pace. Answer every question before time expires.
Time remaining
10:00
Exam-pace drill
Allow 1 minute per question. On the real 1Z0-811 exam you have approximately 72 seconds per question — this session trains you to maintain that pace under pressure.
A developer is working on a Java program that processes sensor data. The data is stored in a 2D array 'double[][] readings', where each row represents a sensor and each column a time interval. The method 'public static double[] averagePerSensor(double[][] data)' should compute the average reading for each sensor (row) and return a 1D array of averages. The developer writes the following implementation: 'double[] result = new double[data.length]; for (int i = 0; i < data.length; i++) { double sum = 0; for (int j = 0; j < data[i].length; j++) { sum += data[i][j]; } result[i] = sum / data[i].length; } return result;'. However, the program sometimes throws a NullPointerException. What is the most likely cause?
10 minute time limit — choose an answer to begin.
10 questions · 10 minute exam-pace drill.