AP CS Principles Unit 4

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/9

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

10 Terms

1
New cards

For Loop

A for loop lets us repeat code a set number of times

2
New cards

While loop

A while loop lets us repeat code as long as something is true.

3
New cards

Condition

Code that you put inside of an if statement or while loop

4
New cards

Boolean

True or False value

5
New cards

If else statement

Control structure that lets us either run one section of code or another depending on a test

6
New cards

Logical operators

Used to make logical associations between boolean values

|| and &&

7
New cards

Comparison operators

Used to make comparisons between values

<=, >= !=, ==

8
New cards

Randomized

To generate or select a random object

9
New cards

Break statement

the break(); statement breaks out of a current loop, without executing any more code in the loop

10
New cards

Iteration

Repetition of instructions a specified number of times, or until a condition is met