AP CS A Unit 4

0.0(0)
Studied by 6 people
0%Unit 4 Mastery
0%Exam Mastery
Build your Mastery score
multiple choiceMultiple Choice
call kaiCall Kai
Supplemental Materials
Card Sorting

1/10

Last updated 8:30 PM on 8/23/23
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

11 Terms

1
New cards
Body of a Loop
**The single statement or a block of statements that can be repeated (a loop may not execute at all if the condition is false to start with). In Java this block of statements is either the first statement following a while or for loop or a block of statements enclosed in { and }.**
2
New cards
\
**For Loop**
**A loop that has a header with 3 optional parts: initialization, condition, and change. It does the initialization one time before the body of the loop executes, executes the body of the loop if the condition is true, and executes the change after the body of the loop executes before checking the condition again.**
3
New cards
\
**Infinite Loop**
\
**A loop that never ends**
4
New cards
Loop
\
**A way to repeat one or more statements in a program.**
5
New cards
\
**Nested Loop** 
\
**One loop inside of another.** 
6
New cards
\
**Out of Bounds error** 
\
**A run-time error that occurs when you try to access past the end of a string or list in a loop**
7
New cards
\
**Trace Code**
\
**Writing down the values of the variables and how they change each time the body of the loop executes.**
8
New cards
\
**While Loop** 
\
**A loop that repeats while a Boolean expression is true.**
9
New cards
while
\
**used to start a while loop**
10
New cards
for
\
**used to start a for loop** 
11
New cards
\
**used to print the value of the variable. This is useful in tracing the execution of code and when debugging.**
\
**System.out.println(variable)**

Explore top notes

note
Electricity
Updated 503d ago
0.0(0)
note
C963 Practice Test
Updated 427d ago
0.0(0)
note
Exponents
Updated 1184d ago
0.0(0)
note
Chapter 2: Life under the Normans
Updated 1030d ago
0.0(0)
note
AP Psychology Review
Updated 301d ago
0.0(0)
note
3: Chemical basis of life
Updated 538d ago
0.0(0)
note
Electricity
Updated 503d ago
0.0(0)
note
C963 Practice Test
Updated 427d ago
0.0(0)
note
Exponents
Updated 1184d ago
0.0(0)
note
Chapter 2: Life under the Normans
Updated 1030d ago
0.0(0)
note
AP Psychology Review
Updated 301d ago
0.0(0)
note
3: Chemical basis of life
Updated 538d ago
0.0(0)

Explore top flashcards