AP CSA Unit 4: Iteration

studied byStudied by 0 people
0.0(0)
Get a hint
Hint

Infinite loops

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 30 people
... ago
4.7(3)
note Note
studied byStudied by 162 people
... ago
5.0(5)
note Note
studied byStudied by 5 people
... ago
5.0(1)
note Note
studied byStudied by 1 person
... ago
5.0(1)
note Note
studied byStudied by 18 people
... ago
5.0(2)
note Note
studied byStudied by 11 people
... ago
5.0(1)
note Note
studied byStudied by 6 people
... ago
5.0(1)
note Note
studied byStudied by 21615 people
... ago
4.5(102)

Explore top flashcards

flashcards Flashcard (21)
studied byStudied by 1 person
... ago
5.0(1)
flashcards Flashcard (29)
studied byStudied by 2 people
... ago
5.0(1)
flashcards Flashcard (55)
studied byStudied by 9 people
... ago
5.0(1)
flashcards Flashcard (59)
studied byStudied by 26 people
... ago
5.0(1)
flashcards Flashcard (39)
studied byStudied by 1 person
... ago
5.0(1)
flashcards Flashcard (87)
studied byStudied by 56 people
... ago
5.0(1)
flashcards Flashcard (47)
studied byStudied by 59 people
... ago
5.0(2)
flashcards Flashcard (98)
studied byStudied by 264 people
... ago
5.0(1)
robot