AP CSA Unit 4: Iteration

studied byStudied by 2 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 2220 people
... ago
4.7(3)
note Note
studied byStudied by 24 people
... ago
5.0(1)
note Note
studied byStudied by 42 people
... ago
5.0(2)
note Note
studied byStudied by 48 people
... ago
5.0(1)
note Note
studied byStudied by 452 people
... ago
5.0(3)
note Note
studied byStudied by 43 people
... ago
5.0(1)
note Note
studied byStudied by 19 people
... ago
4.5(2)
note Note
studied byStudied by 23406 people
... ago
4.5(119)

Explore top flashcards

flashcards Flashcard (41)
studied byStudied by 2 people
... ago
4.0(1)
flashcards Flashcard (26)
studied byStudied by 173 people
... ago
5.0(1)
flashcards Flashcard (48)
studied byStudied by 21 people
... ago
5.0(1)
flashcards Flashcard (41)
studied byStudied by 2 people
... ago
5.0(1)
flashcards Flashcard (47)
studied byStudied by 1 person
... ago
5.0(1)
flashcards Flashcard (22)
studied byStudied by 2 people
... ago
5.0(1)
flashcards Flashcard (20)
studied byStudied by 1 person
... ago
5.0(1)
flashcards Flashcard (22)
studied byStudied by 3 people
... ago
5.0(1)
robot