AP CSA Unit 4: Iteration

studied byStudied by 3 people
0.0(0)
learn
LearnA personalized and smart learning plan
exam
Practice TestTake a test on your terms and definitions
spaced repetition
Spaced RepetitionScientifically backed study method
heart puzzle
Matching GameHow quick can you match all your cards?
flashcards
FlashcardsStudy terms and definitions

1 / 8

9 Terms

1

Infinite loops

Occurs when the expression in a while loop never evaluates to false. The program continues to run infinitely.

New cards
2

break

Breaks out of a while loop and executes statements that immediately follow while loop.

New cards
3

return

Keyword used in methods to return a value back to the initial program that called the method.

New cards
4

Off by One Error

When a for loop iteration is off by one too many or one too few.

New cards
5

charAt(int index)

charAt(int index) returns the character at the specified index.

New cards
6

Nested Loops

When a loop is placed within another loop. The total number of runs for a nested loop will be the outer loop * inner loop.

New cards
7

Algorithm

Step-by-step process that solves a problem.

New cards
8

Statement execution count

The number of times a statement is executed by the program.

New cards
9

Big-O-Notation

A way to represent how long an algorithm will take to execute. It helps to determine how efficient different approaches to solving a problem are.

New cards

Explore top notes

note Note
studied byStudied by 59 people
965 days ago
5.0(2)
note Note
studied byStudied by 39 people
990 days ago
5.0(1)
note Note
studied byStudied by 7 people
871 days ago
5.0(1)
note Note
studied byStudied by 20 people
859 days ago
5.0(1)
note Note
studied byStudied by 105 people
667 days ago
4.5(4)
note Note
studied byStudied by 8 people
821 days ago
5.0(1)
note Note
studied byStudied by 1 person
42 days ago
5.0(1)
note Note
studied byStudied by 10385 people
656 days ago
4.7(52)

Explore top flashcards

flashcards Flashcard (25)
studied byStudied by 11 people
694 days ago
5.0(1)
flashcards Flashcard (20)
studied byStudied by 9 people
428 days ago
5.0(1)
flashcards Flashcard (39)
studied byStudied by 47 people
14 days ago
5.0(2)
flashcards Flashcard (20)
studied byStudied by 14 people
479 days ago
5.0(1)
flashcards Flashcard (23)
studied byStudied by 20 people
813 days ago
5.0(1)
flashcards Flashcard (30)
studied byStudied by 6 people
635 days ago
5.0(1)
flashcards Flashcard (64)
studied byStudied by 2 people
512 days ago
5.0(1)
flashcards Flashcard (20)
studied byStudied by 61 people
727 days ago
5.0(5)
robot