Please enable JavaScript to use CodeHS

AP CSP Glossary

Flashcards

Course:

Module:

Lesson:

Search:

Code General

Code is the name for the instructions you write to a computer in a program.

Code

Programming Language General

A programming language is any set of rules that converts strings, or graphical program elements in the case of visual programming languages, to various kinds of machine code output.

Algorithm General

An algorithm is a set of steps or rules to follow to solve a particular problem.

algorithm, process

Hello World General

Traditionally the very first program you write when learning a programming language, a program that prints "Hello world" to the user.

Print Python

Displaying text on the screen

Declare a Variable JavaScript

Declaring a variable is defining it for the first time.

Declare a Variable

Variable General

A symbol or container that holds a value.

variable

Initialize a Variable JavaScript

Initializing a variable is giving it an initial value.

Concatenation Python

Adding two strings together using the "+" operator.

string variable Python

A variable with text as the value

Integer variable Python

A variable with a whole number as the value

float variable Python

A variable with a decimal number as the value

input() Python

A function that prints a prompt and retrieves text from the user.

Type Conversion Python

The process of converting the value of one data type (integer, string, float, etc.) to another data type is called type conversion.

Floating Point Numbers Python

Also called floats, floating point numbers represent real numbers and are written with a decimal point dividing the integer and fractional parts.

Arithmetic Operators General

Arithmetic operators include + addition, - subtraction, * multiplication, / division, and % modulus. These operators are used to perform basic mathematical tasks.

Canvas JavaScript

The screen in which our graphics programs are drawn.

Canvas

Coordinate system JavaScript

A coordinate system uses numbers as coordinates to place objects in a geometric space.

coordinate system

properties of an object General

The variables that are attached to the object.

Event JavaScript

An event is an action (such as clicking the mouse or pressing a key on the keyboard) that a program detects and uses as input.

Event

Callback Function JavaScript

A function passed as a parameter to another function in order to be called later.

Computer General

A person or device that makes calculations, stores data, and executes instructions according to a program.

Computer

Function General

A function is like a command that you get to invent and name. It allows us to break our program into smaller parts, making the program easier to understand.

Print Python

Print Displaying text on the screen.

Computer Science General

The study of computational thinking, the thinking humans need to in order to describe a step by step process to a computer.

Input Output (I/O) General

A general term in programming that refers to the flow of information into and out of a program

Snake Case Python

`snake case` refers to the style of writing in which each space is replaced by an underscore `_` character and the first letter of each word is lowercase.