AP Computer Science A: Core Concepts
Java programming concepts, data structures, and algorithms for the AP CS A exam.
Study these flashcards with spaced repetition
Track your progress, master difficult cards, and export to Anki. Free to start.
Start Studying — FreeFlashcards in This Deck
What is the result of the expression 7 / 2 in Java when both operands are integers?
3
What is the index of the last element in an array named 'arr'?
arr.length - 1
Which keyword is used to create an instance of a class and allocate memory?
new
What does the % (modulo) operator return in an arithmetic expression?
The remainder of the division between two numbers.
In the String method substring(int beginIndex, int endIndex), is the character at endIndex included in the result?
No, the character at endIndex is exclusive.
What is the default value of an uninitialized boolean instance variable in a Java class?
false
What is the difference between method overloading and method overriding?
Overloading is multiple methods with the same name but different parameters in one class; overriding is a subclass providing a specific implementation for a method inherited from a superclass.
What happens when a program attempts to access an index outside the bounds of an ArrayList?
An IndexOutOfBoundsException is thrown.
How do you call a superclass constructor from within a subclass constructor?
By using the keyword 'super' followed by arguments as the first line of the constructor.
What is the primary requirement for an array to be searched using the binary search algorithm?
The elements in the array must be sorted.
+10 more cards — sign up to see all
Frequently Asked Questions
How many flashcards are in this AP Computer Science A: Core Concepts deck?
This deck contains 20 flashcards with a mix of difficulty levels: 6 easy, 10 medium, and 4 hard cards.
Is this flashcard deck free to use?
Yes! You can study these flashcards for free with our spaced repetition system. Create a free account to track your progress and save your study history.
Can I export these flashcards to Anki?
Pro users can export any deck to Anki (.apkg format) with one click. Free users can export to CSV. Start studying for free and upgrade when you need Anki export.
What is spaced repetition?
Spaced repetition is a study technique that shows you cards at increasing intervals based on how well you know them. Cards you struggle with appear more often, while mastered cards are shown less frequently. This is proven to be one of the most effective ways to memorize information.
Related Flashcard Decks
Ready to study?
Create a free account and start studying these flashcards with spaced repetition.
Get Started — Free