AP CSA Unit 4: Iteration

studied byStudied by 3 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 13 people
... ago
5.0(1)
note Note
studied byStudied by 4 people
... ago
5.0(1)
note Note
studied byStudied by 4 people
... ago
5.0(1)
note Note
studied byStudied by 47 people
... ago
5.0(1)
note Note
studied byStudied by 56 people
... ago
5.0(3)
note Note
studied byStudied by 29 people
... ago
5.0(3)
note Note
studied byStudied by 6 people
... ago
5.0(1)
note Note
studied byStudied by 181 people
... ago
5.0(3)

Explore top flashcards

flashcards Flashcard (46)
studied byStudied by 4 people
... ago
5.0(1)
flashcards Flashcard (28)
studied byStudied by 16 people
... ago
5.0(1)
flashcards Flashcard (30)
studied byStudied by 19 people
... ago
5.0(2)
flashcards Flashcard (28)
studied byStudied by 5 people
... ago
5.0(1)
flashcards Flashcard (55)
studied byStudied by 3 people
... ago
5.0(1)
flashcards Flashcard (55)
studied byStudied by 12 people
... ago
5.0(1)
flashcards Flashcard (33)
studied byStudied by 65 people
... ago
5.0(1)
flashcards Flashcard (96)
studied byStudied by 6 people
... ago
5.0(1)
robot