Which XXX completes countProbation() to return the number of students with a GPA below parameter lowGrade? public class Roster { private ArrayList studentList; public int countProbation(double lowGrade) { int count = 0; for(int i = 0; i < studentList.size(); ++i) { Student s = studentList.get(i); if (XXX < lowGrade) { ++count; return count; Os s.getGPAO) studentList.getGPAO) O getGPAO) What does mystery() do? void mystery(ArrayList nums, int target) { int i; for(i = 0; i < nums.sizeO; ++i) { if(nums.get(i) == target) { nums.remove(i); Results in an index out of bounds error Nothing, since the for loop is always skipped Removes only the first occurrence of target Removes every occurence of target Given a programmer-defined class called Person, what is output? Person barb = new Person(18); Person jessie = new Person(21); change(barb, jessie); System.out.println(barb.getAge(); public static void change (Person pl, Person p2){ int age = p2.getAge O; p1.setAge(age); 21 18 Error: null pointer exception The memory location of barb What is output? Item jar = new Item ; Item ball = new Item ; System.out.println(Item.count); public class Item{ public static int count = 1; public Item{ count++; Error: syntax error O 1 03 02 Which members of base class Players are inherited by Soccer Players ? public class Players { public void setName(String newName) { .. } public void setAge(int newAge) { ... } public void printDetails { ... } private String playerName; private int playerAge; public class Soccer Players extends Players { public void setDetails(String newName) { . } public String getLeague) { . } private String teamName; only setName, setAge, printDetails setDetails, get League, playerName, player Age, and teamName only playerName and player Age setName, setAge, printDetails, playerName, and player Age Which statement in main() generates an error? public class Players { public void setName(String newName) { public void setAge(int newAge) { ... } } public class Soccer Players extends Players { public void setDetails(String newName) { . } public String getLeague { .. } }; public static void main(String args[]) { String leagueName; Players newPlayers = new Players; SoccerPlayers playerObject = new SoccerPlayers; playerObject.setName("Jessica Smith"); playerObject.setAge(21); LeagueName = newPlayers.getLeagueO; player Object.setName("Jessica Smith"); setName() is not declared in Soccer Players leagueName = new Players.getLeague(); getLeague() is not a member of Players Soccer Players player Object = new Soccer Players(); An object of a derived class cannot be created. Players new Players = new Players(); An object of a base class cannot be created Which is true? public class Vehicle { protected String name; private int ID; public class Car extends Vehicle { protected int miles; Car members have access to Vehicle ID Vehicle members have access to Car miles Car members have access to Vehicle name Car members do not have access to any Vehicle members Which lines cause a compile error? public class Vehicle { protected String name; private int ID; public setID(int PID) {...} public class Car extends Vehicle { private int miles; public Car { miles = 145; setID(99); ID = 47; 4 name = "Honda"; Othere are no errors lines 1 and 3 lines 3 and 4 O line 3 only Which method has been overridden? public class Vehicle { public void setID(int PID) { .. } public String getName({ . } public class Plane extends Vehicle { public Plane({ . } public void setID(int pIdi, int PID) { . } public void getName(String name) {-} public String getName({ ... } setID(int pID) O getName() Planel) setID(int pID) public class Kitchen Appliance { protected String appName; protected String appuse; public void setDetails(String name, String use) { appName = name; appUse = use; public void printDetails { System.out.println("Name: " + appName); System.out.println("Use: " + appuse); public class Blender extends Kitchen Appliance { private double appPrice; void setPrice(double price) { appPrice = price; public void printDetails 0 { super.printDetailsO; System.out.println("Price: $" + appPrice); public static void main(String [] args) { Blender mxCompany = new BlenderO; mxCompany.setDetails("Blender", "blends food"); mxCompany.setPrice(145.99); mxCompany.printDetailsO; Name: MyMixer Price: $145.99 Price: $145.99 Name: MyMixer Use: blend food Price: $145.99 Name: MyMixer Use: blend food