AP comp-sci my brain #2 10/30 - 11/?

0.0(0)
studied byStudied by 1 person
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/17

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.

18 Terms

1
New cards

boolean value

either true or false

(every decision-making system uses boolean logic)

2
New cards

logical operators

not, and, or

  • evaluate a boolean value. the operand for a logical operator is either a boolean expression or a single boolean value.

3
New cards

relationship operators 

≤, ≥, ==, =, <, > 

  • used to test the relationship between two variables 

4
New cards

abstraction

knowing that something works but not knowing how it works

5
New cards

PRIMM

P- predict (look at code and guess what will happen before running it)

R- run (execute the code, see if your prediction is correct)

I- investigate (experiment by changing values and observing results)

M- modify (adapt the code to solve problems or meet different requirements)

M- make (create something new based on your understanding)

6
New cards

variable

storage container

7
New cards

Integer

First three letters of the word integer “int” is the code. a whole number used to complete a mathematical computation.

8
New cards

Nested conditional statements

Conditional statements within conditional statements

9
New cards

Conditional Loop

A loop that executes a block of statements until a Boolean condition evaluates to true, with the condition checked before each iteration: provided by the exam reference sheet as “REPEAT UNTIL(condition)”

10
New cards

Conditional statements

statements which affect the sequential flow of control by executing different statements based on the value of a Boolean expression.

11
New cards

Infinite loop

a conditional loop that continues indefinitely because the terminating condition never becomes true

12
New cards

Iteration

a repeating portion of an algorithm that repeats a specified number of times or until a given condition is met

13
New cards

while loop 

a type of conditional loop in the python language that repeatedly executes a block of statements as long as a Boolean condition remains true, with the condition checked before each iteration using the while keyword 

14
New cards

Counting loop

a loop that executes a block of statements a specified number of times; provided by the exam reference sheet as “REPEAT n TIMES”

15
New cards

for loop

a type of counting loop in the Python programming language that iterates over a sequence (such as a list, string, or range) or executes a specified number of times using the for keyword and in operator

16
New cards

How does the for loop know when to stop?

17
New cards

When would you use a for loop instead of a while loop?

18
New cards