Please enable JavaScript to use CodeHS

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

Abstraction General

Managing complexity by "abstracting away" information and detail, in order to focus on the relevant concepts.

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

Program General

A set of instructions written in a programming language that can be executed by a computer

Hello World General

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

println JavaScript

JavaScript function that prints out a line to the user

Boolean JavaScript

A boolean is a true or false value.

Boolean

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.

Assigning to a variable Java

Assigning to a variable is updating the variable's value

readLine JavaScript

Allows for the reading of user input when a string is used

readLine

readInt JavaScript

Allows for the reading of user input when an integer is used

readInt

readFloat JavaScript

Allows for the reading of user input when a float number is used

readFloat

Increment General

To add to or increase

Increment

Decrement General

To subtract from or decrease

decrement

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.

lowerCamelCase General

`lowerCamelCase` is a naming convention where the first letter is lower case, and each subsequent start of a word is upper case.

lowerCamelCase

Define a Function JavaScript

Defining a function means to teach the computer a new command and explain what it should do when receiving that command.

Define a Function

Start Function JavaScript

This is the function that is called when you click run.

Start Function

Computer General

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

Computer

getWidth() JavaScript

JavaScript function that returns the width of the graphics canvas

getHeight() JavaScript

JavaScript function that returns the height of the graphics canvas

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