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 28 people
... ago
5.0(2)
note Note
studied byStudied by 3 people
... ago
5.0(1)
note Note
studied byStudied by 7 people
... ago
5.0(1)
note Note
studied byStudied by 16 people
... ago
5.0(1)
note Note
studied byStudied by 4 people
... ago
5.0(1)
note Note
studied byStudied by 27 people
... ago
5.0(1)
note Note
studied byStudied by 34 people
... ago
5.0(1)
note Note
studied byStudied by 118 people
... ago
5.0(1)

Explore top flashcards

flashcards Flashcard (21)
studied byStudied by 2 people
... ago
5.0(1)
flashcards Flashcard (265)
studied byStudied by 19 people
... ago
4.0(1)
flashcards Flashcard (24)
studied byStudied by 51 people
... ago
5.0(1)
flashcards Flashcard (46)
studied byStudied by 34 people
... ago
5.0(1)
flashcards Flashcard (23)
studied byStudied by 23 people
... ago
5.0(4)
flashcards Flashcard (53)
studied byStudied by 26 people
... ago
5.0(1)
flashcards Flashcard (30)
studied byStudied by 45 people
... ago
5.0(1)
flashcards Flashcard (25)
studied byStudied by 17 people
... ago
5.0(1)
robot