| preferred AP College board partner for AP classes
AccuracyQuestionCorrect/AttemptLast Answer
100%
Identify, using its signature, the correct constructor being called.
AP Computer Science A / Unit 2: Using Objects
1/1 December 5, 2025 02:26
100%
What will be printed when the program is executed?
AP Computer Science A / Unit 2: Using Objects
1/1 December 5, 2025 02:25
100%
Develop code to call class methods and determine the result of those calls.
AP Computer Science A / Unit 2: Using Objects
1/1 December 5, 2025 02:23
100%
What is printed by the above program?
AP Computer Science A / Unit 2: Using Objects
1/1 December 5, 2025 02:21
50%
Develop code to declare variables to store reference types.
AP Computer Science A / Unit 2: Using Objects
1/2 December 5, 2025 02:18
100%
In the nested loops above, how many total iterations does the innermost statement execute?
AP Computer Science A / Unit 2: Using Objects
1/1 December 5, 2025 02:16
100%
Develop code `for` assignment statements with expressions and determine the value that is stored in the variable as a result of these statements.
AP Computer Science A / Unit 2: Using Objects
1/1 December 5, 2025 02:16
100%
Which of the following is an example of using proper floating‐point division to achieve an accurate result?
AP Computer Science A / Unit 2: Using Objects
1/1 December 5, 2025 02:15
50%
Develop code to utilize string literals and determine the result of using string literals.
AP Computer Science A / Unit 2: Using Objects
1/2 December 5, 2025 02:14
100%
What is the output of the code above?
AP Computer Science A / Unit 2: Using Objects
1/1 December 5, 2025 02:13
100%
Develop code `for` assignment statements with compound assignment operators and determine the value that is stored in the variable as a result.
AP Computer Science A / Unit 2: Using Objects
1/1 December 5, 2025 02:12
100%
What does the program print when executed?
AP Computer Science A / Unit 2: Using Objects
1/1 December 5, 2025 02:10
100%
Identify the most appropriate data type category `for` a particular specification.
AP Computer Science A / Unit 2: Using Objects
1/1 December 5, 2025 02:05
100%
What is the output when the above code is run?
AP Computer Science A / Unit 2: Using Objects
1/1 December 5, 2025 02:04
100%
Develop code `for` assignment statements with compound assignment operators and determine the value that is stored in the variable as a result.
AP Computer Science A / Unit 2: Using Objects
1/1 December 5, 2025 02:03
100%
Which line correctly implements the createUnitCircle method to return a Circle with radius 1?
AP Computer Science A / Unit 2: Using Objects
1/1 December 5, 2025 02:02
100%
Develop code to declare variables to store numbers and Boolean values.
AP Computer Science A / Unit 2: Using Objects
1/1 December 5, 2025 02:01
50%
What is printed when the program is executed?
AP Computer Science A / Unit 2: Using Objects
1/2 December 5, 2025 01:54
100%
Identify, using its signature, the correct constructor being called.
AP Computer Science A / Unit 2: Using Objects
1/1 December 5, 2025 01:49
100%
Which line of code correctly finds the starting index of the substring "Java" in the given sentence?
AP Computer Science A / Unit 2: Using Objects
1/1 December 5, 2025 01:47
100%
Develop code to write expressions that incorporate calls to built-in mathematical libraries and determine the value that is produced as a result.
AP Computer Science A / Unit 2: Using Objects
1/1 December 5, 2025 01:46
50%
What is the output of the code regarding the Counter's static count?
AP Computer Science A / Unit 2: Using Objects
1/2 December 5, 2025 01:44
100%
Develop code to declare variables to store reference types.
AP Computer Science A / Unit 2: Using Objects
1/1 December 5, 2025 01:41
100%
All of the following statements about the substring method are true except:
AP Computer Science A / Unit 2: Using Objects
1/1 December 5, 2025 01:39
50%
Identify, using its signature, the correct constructor being called.
AP Computer Science A / Unit 2: Using Objects
1/2 December 5, 2025 01:37
50%
What does the program print when executed?
AP Computer Science A / Unit 2: Using Objects
1/2 December 5, 2025 01:31
25%
Develop code to cast primitive values to different primitive types in arithmetic expressions and determine the value that is produced as a result.
AP Computer Science A / Unit 2: Using Objects
1/4 December 5, 2025 01:28
67%
Which line correctly concatenates s1 and s2 with a space in between using the '+' operator?
AP Computer Science A / Unit 2: Using Objects
2/3 December 5, 2025 01:27
100%
What will the array look like after the method execution?
AP Computer Science A / Unit 8: 2D Array
1/1 December 2, 2025 01:44
100%
What will be printed when the above program is executed?
AP Computer Science A / Unit 8: 2D Array
1/1 December 2, 2025 01:42
100%
Which of the following could be used to replace /* missing code */ so that findClosest will work as intended?
AP Computer Science A / Unit 8: 2D Array
1/1 December 2, 2025 01:40
100%
What is the output of the following code when executed?
AP Computer Science A / Unit 8: 2D Array
1/1 December 2, 2025 01:38
100%
What is the value of sum after the code segment is executed?
AP Computer Science A / Unit 8: 2D Array
1/1 December 2, 2025 01:35
100%
What is the output after the program executes?
AP Computer Science A / Unit 8: 2D Array
1/1 December 2, 2025 01:32
100%
Consider the following code segment:
AP Computer Science A / Unit 8: 2D Array
1/1 December 2, 2025 01:26
100%
What will happen when the above program is executed?
AP Computer Science A / Unit 8: 2D Array
1/1 December 2, 2025 01:22
100%
What will be printed after the code executes?
AP Computer Science A / Unit 8: 2D Array
1/1 December 2, 2025 01:19
50%
What is the value of sum as a result of executing the code segment?
AP Computer Science A / Unit 8: 2D Array
1/2 December 2, 2025 01:15
100%
What kind of error will this code produce?
AP Computer Science A / Unit 8: 2D Array
1/1 December 2, 2025 01:13
100%
What is the output when the program is executed?
AP Computer Science A / Unit 7: ArrayList
1/1 November 25, 2025 02:13
100%
Which of the following code segments counts the number of negative values found in nums and stores the count in counter?
AP Computer Science A / Unit 7: ArrayList
1/1 November 25, 2025 02:12
100%
Which of the following is an example of utilizing the size method to display the number of elements in an ArrayList?
AP Computer Science A / Unit 7: ArrayList
1/1 November 25, 2025 02:09
50%
What is printed as a result of executing the code segment?
AP Computer Science A / Unit 7: ArrayList
1/2 November 25, 2025 02:08
100%
What will be printed when the above program is executed?
AP Computer Science A / Unit 7: ArrayList
1/1 November 25, 2025 02:03
100%
Which of the following can replace /* missing condition 1 */ and /* missing condition 2 */ so the code segment works as intended?
AP Computer Science A / Unit 7: ArrayList
1/1 November 25, 2025 02:02
100%
All of the following statements about the ArrayList set() method are true except:
AP Computer Science A / Unit 7: ArrayList
1/1 November 25, 2025 01:59
100%
Which statement will cause an error?
AP Computer Science A / Unit 7: ArrayList
1/1 November 25, 2025 01:56
100%
What does the program print when executed?
AP Computer Science A / Unit 7: ArrayList
1/1 November 25, 2025 01:54
50%
Which of the following could replace /* method body */ so that the method works as intended?
AP Computer Science A / Unit 7: ArrayList
1/2 November 25, 2025 01:53
100%
What logical error prevents swapElements from properly swapping two elements?
AP Computer Science A / Unit 7: ArrayList
1/1 November 25, 2025 01:49
100%
Which of the following represents the contents of numbers after the code segment has been executed?
AP Computer Science A / Unit 7: ArrayList
1/1 November 25, 2025 01:47
100%
What will be printed when the above program is executed?
AP Computer Science A / Unit 7: ArrayList
1/1 November 25, 2025 01:46
100%
What will be printed after the code segment is executed?
AP Computer Science A / Unit 7: ArrayList
1/1 November 25, 2025 01:45
50%
Which of the following code snippets correctly fills in the missing code to store the size of the ArrayList in a variable?
AP Computer Science A / Unit 7: ArrayList
1/2 November 25, 2025 01:43
50%
Which of the following represents the contents of arr as a result of executing the code segment?
AP Computer Science A / Unit 7: ArrayList
1/2 November 25, 2025 01:41
100%
What is the output of the above program?
AP Computer Science A / Unit 7: ArrayList
1/1 November 25, 2025 01:39
50%
Assuming that books has been declared as an array of Book, which of the following code snippets correctly initializes each element of the array with a new Book object?
AP Computer Science A / Unit 7: ArrayList
1/2 November 25, 2025 01:38
100%
What stops the above code from compiling?
AP Computer Science A / Unit 7: ArrayList
1/1 November 25, 2025 01:35
100%
Which is a correct /* line of code */?
AP Computer Science A / Unit 7: ArrayList
1/1 November 25, 2025 01:34
33%
Determine the overall time complexity when inserting n elements into the middle of an ArrayList using add(index, element).
AP Computer Science A / Unit 7: ArrayList
1/3 November 25, 2025 01:32
100%
Which of the following best explains why the code segment does not work as intended?
AP Computer Science A / Unit 7: ArrayList
1/1 November 25, 2025 01:29
50%
Which of the following is an example of creating an Integer wrapper object and retrieving its primitive value using the intValue() method?
AP Computer Science A / Unit 7: ArrayList
1/2 November 25, 2025 01:27
100%
For the segment to work as intended, which of the following modifications could be made?
AP Computer Science A / Unit 7: ArrayList
1/1 November 25, 2025 01:25
100%
To safely perform compound operations on a shared ArrayList, what is necessary?
AP Computer Science A / Unit 7: ArrayList
2/2 November 25, 2025 01:22
100%
With the ChildCounter2 class modifying the limit, how many iterations does the while-loop in countWhile() execute?
AP Computer Science A / Unit 9: Inheritance
2/2 November 21, 2025 02:30
33%
What is the role of the Object class in Java's inheritance hierarchy?
AP Computer Science A / Unit 9: Inheritance
1/3 November 21, 2025 02:26
100%
Which of the following code segments will NOT cause a compilation error?
AP Computer Science A / Unit 9: Inheritance
1/1 November 21, 2025 02:23
50%
What is printed when the main() method of class Car is executed?
AP Computer Science A / Unit 9: Inheritance
1/2 November 21, 2025 02:18
100%
Which of the following code segments can replace /* missing code */ so that the Square class constructor initializes the Rectangle class instance variables height and width to x?
AP Computer Science A / Unit 9: Inheritance
1/1 November 21, 2025 02:16
100%
What is the output when Child.main() is executed?
AP Computer Science A / Unit 9: Inheritance
1/1 November 21, 2025 02:15
100%
What, if anything, is printed when the code segment is executed?
AP Computer Science A / Unit 9: Inheritance
1/1 November 21, 2025 02:14
100%
Which of the following is an example of a subclass that utilizes inherited behavior without modification, demonstrating code reuse in inheritance?
AP Computer Science A / Unit 9: Inheritance
1/1 November 21, 2025 02:13
100%
Which is a correct implementation of the constructor in the Manager class?
AP Computer Science A / Unit 9: Inheritance
1/1 November 21, 2025 02:12
100%
What is the output when the above code is executed?
AP Computer Science A / Unit 9: Inheritance
1/1 November 21, 2025 02:11
100%
Which is a correct implementation of the constructor in the Car class?
AP Computer Science A / Unit 9: Inheritance
1/1 November 21, 2025 02:10
100%
Which of the following is an example of a subclass that inherits methods from an indirect superclass through a chain of inheritance?
AP Computer Science A / Unit 9: Inheritance
1/1 November 21, 2025 02:08
100%
Which of the following code segments can replace /* missing code */ so that the Square class constructor initializes the Rectangle class instance variables height and width to x?
AP Computer Science A / Unit 9: Inheritance
1/1 November 21, 2025 02:06
100%
What does the code print when Child.main() is executed?
AP Computer Science A / Unit 9: Inheritance
1/1 November 21, 2025 02:05
100%
Which code segment would successfully compile without causing any errors?
AP Computer Science A / Unit 9: Inheritance
1/1 November 21, 2025 02:02
100%
What is the error in the Banana class constructor?
AP Computer Science A / Unit 9: Inheritance
1/1 November 21, 2025 02:00
100%
Which of the following could replace /* missing code */ in the SchoolClub constructor to ensure that all instance variables are initialized correctly?
AP Computer Science A / Unit 9: Inheritance
1/1 November 21, 2025 01:57
50%
What will be printed when the program is executed?
AP Computer Science A / Unit 9: Inheritance
1/2 November 21, 2025 01:54
100%
Which of the following represents the resulting output?
AP Computer Science A / Unit 9: Inheritance
1/1 November 21, 2025 01:53
100%
When TestFruit.main() is executed, what is printed?
AP Computer Science A / Unit 9: Inheritance
1/1 November 21, 2025 01:45
50%
What is printed as a result of executing the code segment?
AP Computer Science A / Unit 9: Inheritance
1/2 November 21, 2025 01:40
100%
What is printed when the main method of SubClass is executed?
AP Computer Science A / Unit 9: Inheritance
1/1 November 21, 2025 01:32
100%
Which of the following method calls will cause an error?
AP Computer Science A / Unit 9: Inheritance
1/1 November 21, 2025 01:31
100%
What error prevents this code from compiling?
AP Computer Science A / Unit 5: Writing Classes
1/1 November 18, 2025 02:15
25%
Develop code `for` expressions that are self-referencing and determine the result of these expressions.
AP Computer Science A / Unit 5: Writing Classes
1/4 November 18, 2025 02:07
50%
Which of the following method calls will cause an error?
AP Computer Science A / Unit 5: Writing Classes
1/2 November 18, 2025 02:04
100%
What error prevents this code from compiling?
AP Computer Science A / Unit 5: Writing Classes
1/1 November 18, 2025 01:57
25%
Develop code to declare instance variables `for` the attributes to be initialized in the body of the constructors of a class.
AP Computer Science A / Unit 5: Writing Classes
1/4 November 18, 2025 01:55
100%
Which of the following can be used to replace /* expression */ so that getTotalMileage returns the total of the miles traveled for all vehicles in the fleet?
AP Computer Science A / Unit 5: Writing Classes
1/1 November 18, 2025 01:51
100%
What is the output when the above program is executed?
AP Computer Science A / Unit 5: Writing Classes
2/2 November 18, 2025 01:49
100%
Develop code to define behaviors of an object through methods written in a class using object references and determine the result of calling these methods.
AP Computer Science A / Unit 5: Writing Classes
1/1 November 18, 2025 01:48
100%
Which is the best replacement for /* code to construct a valid temperature from user input */ in the TempTest class?
AP Computer Science A / Unit 5: Writing Classes
2/2 November 18, 2025 01:46
100%
Which of the following lines correctly assigns the parameter 'total' to the instance variable 'total' in the Calculator constructor?
AP Computer Science A / Unit 5: Writing Classes
1/1 November 18, 2025 01:43
100%
Develop code to define behaviors of an object through methods written in a class using primitive values and determine the result of calling these methods.
AP Computer Science A / Unit 5: Writing Classes
2/2 November 18, 2025 01:42
50%
What is printed as a result of executing the code segment?
AP Computer Science A / Unit 5: Writing Classes
1/2 November 18, 2025 01:37
50%
What is the time complexity in Big-O notation of the 'fib' method in the 'FibonacciCalculator' class?
AP Computer Science A / Unit 5: Writing Classes
1/2 November 18, 2025 01:31
100%
Develop code to declare the class variables that belong to the class.
AP Computer Science A / Unit 5: Writing Classes
1/1 November 18, 2025 01:30
100%
Which of the following is a correct replacement for /* code to get birthDate */?
AP Computer Science A / Unit 5: Writing Classes
1/1 November 18, 2025 01:25
100%
What value does the SumSquares program print when executed?
AP Computer Science A / Unit 5: Writing Classes
1/1 November 18, 2025 01:22
50%
Develop code to define behaviors of an object through methods written in a class using object references and determine the result of calling these methods.
AP Computer Science A / Unit 5: Writing Classes
1/2 November 18, 2025 01:17
100%
Which of the following is a correct header for a method of the Example class that would return the value of the private instance variable x so that it can be used in a class other than Example?
AP Computer Science A / Unit 5: Writing Classes
1/1 November 18, 2025 01:12
APFIVE © 2020.
Email: [email protected]|Privacy Policy