SnapCards

AP Computer Science A: Core Concepts

20 cards|
6 easy10 medium4 hard
ap computer sciencejavaprogrammingap exam

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 — Free

Flashcards in This Deck

1
easy

What is the result of the expression 7 / 2 in Java when both operands are integers?

3

2
easy

What is the index of the last element in an array named 'arr'?

arr.length - 1

3
easy

Which keyword is used to create an instance of a class and allocate memory?

new

4
easy

What does the % (modulo) operator return in an arithmetic expression?

The remainder of the division between two numbers.

5
easy

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.

6
easy

What is the default value of an uninitialized boolean instance variable in a Java class?

false

7
medium

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.

8
medium

What happens when a program attempts to access an index outside the bounds of an ArrayList?

An IndexOutOfBoundsException is thrown.

9
medium

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.

10
medium

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