AP COMPUTER SCIENCE PRINCIPLES

0.0(0)
Studied by 3 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/74

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 11:43 PM on 1/11/25
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

75 Terms

1
New cards

Function

Simplifies code by breaking it into smaller, reusable pieces.

2
New cards

Call a Function

Executes a predefined function.

3
New cards

Define a Function

Specifies the function's name and body (the code it executes)

4
New cards

Snake Case

Uses lowercase letters and underscores for naming (e.g., my_function)

5
New cards

Decomposition

Breaks code into smaller, manageable parts.

6
New cards

Top-Down Design

Splits a complex problem into smaller, independently solvable parts.

7
New cards

Precondition

A required condition for a function to execute.

8
New cards

Postcondition

A condition that must be true after a function executes

9
New cards

Comment

Explains the purpose of code or functions for better understanding.

10
New cards

Procedural Abstraction

Describes program steps without detailing how they work.

11
New cards

Managing Complexity with Procedural Abstraction

Simplifies problem-solving by focusing only on important details and ignoring unnecessary ones.

12
New cards

Documentation

Guides others on how to use code or functions

13
New cards

For Loops with Karel

Automates repetitive actions by specifying the number of repetitions.

14
New cards

Condition

A true/false statement that determines code execution.

15
New cards

If Statements with Karel

Executes code if a condition is true.

16
New cards

If-Else Statement

Executes one block of code if true; another block if false.

17
New cards

While Loops with Karel

Repeats code while a condition is true.

18
New cards

Control Structure

Directs program flow (e.g., if-else or loops).

19
New cards

Bug

Errors in code—syntax, runtime, or logic.

20
New cards

Debugging

Process of finding and fixing errors.

21
New cards

Rubber Duck Debugging

Explaining code aloud to identify issues.

22
New cards

Pseudocode

Simplified description of an algorithm using plain language

23
New cards

Algorithm

A sequence of steps to solve a problem.

24
New cards

Sequencing

Ordered execution of instructions.

25
New cards

Selection

Chooses a path based on conditions (e.g., if-else).

26
New cards

Iteration

Repeats actions (e.g., loops).

27
New cards

Parameter

A value passed to a function to be used inside it.

28
New cards

Argument

The actual data or values passed into a function to perform a task.

29
New cards

Code

Instructions written in a programming language to perform tasks.

30
New cards

Programming Language

A set of rules used to write code (e.g., Python, Java).

31
New cards

Compiler

A program that translates code written in a programming language into machine-readable instructions.

32
New cards

Software

A set of programs or instructions that tell a computer how to perform tasks.

33
New cards

Hardware

The physical components of a computer, such as the keyboard, monitor, and CPU.

34
New cards

Machine Language

The basic language of computers, made up of binary code (1s and 0s).

35
New cards

The Print Statement

A command in programming that displays text or values on the screen.

36
New cards

Integrated Development Environment (IDE)

A software tool that provides all the features needed for coding, like writing, testing, and debugging.

37
New cards

Variable

Stores data for use in the program.

38
New cards

Variable Types

Categories that define what kind of data a variable can hold (e.g., int, string).

39
New cards

Assignment Statement

A line of code that gives a variable a value.

40
New cards

String Concatenation

Combines strings into one.

41
New cards

STR Function

A function that converts a value to a string.

42
New cards

Input Function

Accepts user input as a string.

43
New cards

Type Conversion

Changing the type of a variable (e.g., from an int to a float).

44
New cards

Operators

Perform mathematical or logical operations (e.g., +, -, *, /).

45
New cards

Modulus

Finds the remainder of a division.

46
New cards

Order of Operations

Follows PEMDAS for solving equations.

47
New cards

Brython: Text

Code used to display text on a webpage using Brython (a Python version for web browsers).

48
New cards

Brython: Circles

Code to draw circles on a webpage using Brython.

49
New cards

Brython: Rectangles

Code to draw rectangles on a webpage using Brython

50
New cards

Event

An action (like a mouse click) that triggers code to run.

51
New cards

Callback Function

A function that is passed as an argument to another function and is called later.

52
New cards

Brython: Mouse Click Events

Code that responds to mouse clicks on a webpage in Brython.

53
New cards

Boolean

Represents true or false values.

54
New cards

Logical Operator: AND

Returns true if both conditions are true

55
New cards

Logical Operator: OR

Returns true if at least one condition is true.

56
New cards

Logical Operator: NOT

Reverses the truth value of a condition.

57
New cards

Comparison Operators

Symbols used to compare two values, such as greater than (>), less than (<), or equal to (==).

58
New cards

= vs ==

= assigns a value to a variable, while == checks if two values are equal.

59
New cards

If Statements

Executes code if a condition is true.

60
New cards

If-Else Statements

Executes different code blocks based on condition truth.

61
New cards

Elif

Used for additional conditions if the first is false.

62
New cards

Brython: Keyboard Events

Code that responds to key presses on a webpage in Brython.

63
New cards

For Loops in Range (1-Parameter)

A loop that repeats a set number of times based on the given number.

64
New cards

For Loops in Range (2-Parameter)

A loop that repeats a set number of times starting from a given number.

65
New cards

For Loops in Range (3-Parameter)

A loop with a starting number, ending number, and step value.

66
New cards

Nested For Loops

A loop inside another loop to repeat tasks in a more complex way.

67
New cards

Random Functions

Functions that generate random numbers or values.

68
New cards

While Loops

Repeats actions while a condition is true.

69
New cards

Break

Ends a loop prematurely.

70
New cards

Continue

Skips the current iteration and moves to the next.

71
New cards

Program Functionality

What a program does or how it behaves

72
New cards

Program Purpose

The reason or goal for creating a program.

73
New cards

Functions with Parameters

Accept input values for processing.

74
New cards

Functions with Return Values

Outputs a result to use elsewhere in the program.

75
New cards

Functions Calling Functions

Uses one function within another.

Explore top notes

note
Richard III
Updated 1239d ago
0.0(0)
note
Group 16 elements
Updated 1346d ago
0.0(0)
note
Ethics in Health Care
Updated 1197d ago
0.0(0)
note
Political History
Updated 1198d ago
0.0(0)
note
Developmental Psych Chapter 19
Updated 1284d ago
0.0(0)
note
Untitled Flashcards Set
Updated 466d ago
0.0(0)
note
Verben Conjugations
Updated 415d ago
0.0(0)
note
Richard III
Updated 1239d ago
0.0(0)
note
Group 16 elements
Updated 1346d ago
0.0(0)
note
Ethics in Health Care
Updated 1197d ago
0.0(0)
note
Political History
Updated 1198d ago
0.0(0)
note
Developmental Psych Chapter 19
Updated 1284d ago
0.0(0)
note
Untitled Flashcards Set
Updated 466d ago
0.0(0)
note
Verben Conjugations
Updated 415d ago
0.0(0)

Explore top flashcards

flashcards
poznávačka rostliny
95
Updated 421d ago
0.0(0)
flashcards
ANTHC101 EXAM #1
97
Updated 386d ago
0.0(0)
flashcards
El bienestar
52
Updated 1168d ago
0.0(0)
flashcards
IST Summitive Ms Yunus 9th
25
Updated 189d ago
0.0(0)
flashcards
Autoteile Vokabeln
43
Updated 1037d ago
0.0(0)
flashcards
AP Lang Rhetorical Devices
80
Updated 482d ago
0.0(0)
flashcards
Unit 8: The New South
20
Updated 46d ago
0.0(0)
flashcards
poznávačka rostliny
95
Updated 421d ago
0.0(0)
flashcards
ANTHC101 EXAM #1
97
Updated 386d ago
0.0(0)
flashcards
El bienestar
52
Updated 1168d ago
0.0(0)
flashcards
IST Summitive Ms Yunus 9th
25
Updated 189d ago
0.0(0)
flashcards
Autoteile Vokabeln
43
Updated 1037d ago
0.0(0)
flashcards
AP Lang Rhetorical Devices
80
Updated 482d ago
0.0(0)
flashcards
Unit 8: The New South
20
Updated 46d ago
0.0(0)