Please enable JavaScript to use CodeHS

CSP Glossary

Flashcards

Course:

Module:

Search:

Bug General

A bug is a problem in your code.

Bug

Debugging General

Debugging is fixing a problem in your code.

Debugging

Karel General

Karel is a dog who listens to your commands.

Karel

Karel Documentation JavaScript

Documentation for all Karel Commands and Syntax.

karel documentation karel docs karel reference

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

Call a Function JavaScript

Calling a function actually gives the command, so the computer will run the code for that function.

Call a Function

Function body JavaScript

The part of a function that contains the commands

function body

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

Function JavaScript

A function is a way to teach Karel a new word.

Function

Read Like a Story JavaScript

Programs that "Read like a story" have good decomposition and make the code easy to follow.

Read Like a Story

Start Function JavaScript

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

Start Function

Decomposition General

Decomposition is breaking your program into smaller parts.

Decomposition

Top Down Design JavaScript

Top down design is a method for breaking our program down into smaller parts.

Top Down Design

Comment JavaScript

A message in your code that explains what is going on.

Comment

Precondition JavaScript

Assumptions we make about what must be true before the function is called.

Precondition

Postcondition JavaScript

What should be true after the function is called

Postcondition

Abstraction General

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

Procedural Abstraction Java

The ability to use methods and programs that we do not fully understand, or are unable to write.

SuperKarel General

SuperKarel is like Karel but already knows how to turnRight() and turnAround()

SuperKarel

Application Programming Interfaces Java

APIs and libraries simplify complex programming tasks by providing sets of clearly defined methods of communication among various computing components.

documentation General

Written instructions detailing the functions, methods, and variables available and how to use them.

For Loop JavaScript

A for loop lets us repeat code a **fixed number of times**.

For Loop

Condition General

A condition is code that you put inside an if statement or while-loop.

Condition

If Statement General

An if statement lets you ask a question to the program and only run code if the answer is true.

If Statement

If Else Statement General

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

If Else Statement

While Loop General

Lets us repeat code as long as something is true.

While Loop

Control Structure General

A control structure lets us change the flow of the code.

Control Structure loops if statements

Pseudocode General

Pseudocode is a brief explanation of code in plain English.

Pseudocode

Algorithm General

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

algorithm, process

Sequencing General

Sequencing, or sequential execution, is step by step execution of instructions in the order they are given.

Iteration General

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

Selection General

Using a condition to determine which part of an algorithm is executed.

Indentation JavaScript

Indentation is the visual structure of how your code is laid out. It uses tabs to organize code into a hierarchy.

Indentation

Parameter JavaScript

A variable passed in from outside the function

parameter

Ultra Karel JavaScript

Ultra Karel is the same as Super Karel, except Ultra Karel has the ability to paint the grid world!

Pair Programming General

Pair programming is a collaborative programming practice where two programmers work together at one computer on the same piece of code.

Driver General

The driver’s role is to control the mouse and keyboard and type out the code. They should concentrate on solving the current task while keeping the navigator’s plan-of-action in mind.

Navigator General

The navigator’s role is to read the problem and narrate the plan-of-action. The navigator should be checking for typos or other errors as the driver produces code to catch them as soon as they arise and before they cause further errors. They should also be actively thinking of alternative, more efficient ways to solve the problem.

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.

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.

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

Logical operator JavaScript

Used to make logical associations between boolean values

logical operator

Or operator JavaScript

Logical operator that ORs two boolean values. Written as `||`. `a || b` will be true if `a` or `b` is true.

And operator JavaScript

Logical operator that ANDs two boolean values. Written as `&&`. `a && b` will be true if both `a` and `b` are true.

Not operator JavaScript

Logical operator that negates a single boolean value. Written as `!`. `!a` will be true if `a` is false, and false if `a` is true.

Comparison operator General

Used to make comparisons between values.

comparison operator

For Loop JavaScript

A for loop lets us repeat code a **fixed number of times**.

Randomize JavaScript

To generate or select a random object

random, randomizer

Pseudorandom JavaScript

Not actually random, but appears to be random

Infinite Loop General

A loop that has no way of stopping, and will keep looping forever.

Sentinel JavaScript

A constant that has the specific purpose of being the value that breaks out of a loop.

SENTINEL

break statement JavaScript

The `break;` statement breaks out of the current loop, without executing any more code in the loop.

Loop-and-a-half Java

A loop, most often set with `while(true)`, that has a `break` statement in the loop body.

Return JavaScript

Exit a function and return a value

Return

Return Value JavaScript

The value returned from a function when the function is called.

Scope General

In what part of the program the variable exits

Scope

Local variable General

A variable that is restricted to use in a certain scope of a program

Local variable

Standard Library General

The Standard Library is the baseline, plain version of the programming language. It has the built-in functions that you use.

Global variable JavaScript

A variable that can be used throughout a program, in every scope

Global variable

Array JavaScript

Also called a list. A data structure that holds a collection of values in a particular order

List Array

Array Index Java

The position of an element in an array. The first element is at index 0, the second element is at index 1, and so on.

Indexing into an array Java

Getting a value at a particular index in an array.

Push JavaScript

To add an item to a list or array

Push

Pop JavaScript

To remove the item in the last position from an array

Pop

Array length Java

The number of elements an array can hold. You can get the length of an array `arr` by typing `arr.length`

array.length Java

Returns the length of the array

Traversing an Array Java

Traversing an array is the process to loop through an array and access each of the elements. Caution must be taken to avoid looping beyond the valid index values.

Looping Through Arrays JavaScript

Looping through an array is the process to loop through an array and access each of the elements. Caution must be taken to avoid looping beyond the valid index values.

Iterate General

A single run through the instructions contained a loop

Iterate

Iterating over an array Java

Looping through all of the elements of an array

Index Java

Array values are stored at a particular index and we access elements in the array by referencing this index value. Index values in Arrays start a 0.

array[index] Java

Accesses an element in the array to either update or retrieve.

splice() JavaScript

The `splice()` method changes the contents of an array by removing or replacing existing elements and/or adding new elements.

remove(index) JavaScript

This function removes an element from the given index position.

Simulation General

A animated model that represents a real-life thing, process, or situation.

Model General

A set of rules for how things interact within a simulation.

List JavaScript

Also called an array. A data structure that holds a collection of values in a particular order

List Array

Data Structure Java

A particular way of organizing data in our programs.

Digital Information General

Digital information generally comprises data that is created by, or prepared for, electronic systems and devices such as computers, screens, calculators, communication devices and so on, and can be stored on those devices or in the Cloud

Number System General

A number system defines how we represent numbers. It defines which digits we can use, and what value each position (place value) in a number has.

Number Base General

The number base of a number system defines how many digits are in the number system, and the base of the exponent for each place value in a number.

Decimal Number System General

The number system we use in out everyday lives. It has 10 digits, 0-9.

Binary Number System General

Number system that has 2 digits, 0 and 1. This is how computers represent numbers at the base level.

ASCII General

ASCII is the standard protocol for encoding text information as bits. The ASCII table assigns a unique binary number to every text character.

Pixel Image General

An image can be represented as a grid of values. Each value encodes the color at that position in the image.

Pixel General

Images are made up of pixels, which are essentially a grid of values. Each value, or pixel, encodes the color at that position in the image.

Hexadecimal General

The hexadecimal number system is the Base 16 number system. It is a number system that only uses 16 digits (0 1 2 3 4 5 6 7 8 9 A B C D E F)

Hexadecimal Number System General

Number system that has 16 digits 1 - 9 and A - F.

RGB Color Encoding General

The RGB encoding scheme allows us to encode colors as numeric data. It defines the amount of Red, Green, and Blue light in a pixel. Each color channel can have a value between 0 and 255.

WebImage JavaScript

`WebImage` provides a JavaScript API that lets us add images to our programs and manipulate their pixels.

Data Compression General

The process of encoding information, using fewer bits than the original representation. We can use algorithms to compress the data to use less bits for storage and then decompress it when we want to view it again.

Lossless Compression JavaScript

Lossless Compression involves no loss of information. If data have been "losslessly" compressed, the original data can be recovered exactly from the compressed data after a compress/expand cycle.

Lossy Compression General

Throwing away some of the data to save space. We can throw away a lot of data without any noticeable difference from the original.

Cryptography General

Scrambling digital information into an unreadable form. Only those with verified authority (password, key, etc) can unscramble it to read it.

Caesar Cipher General

An encryption method in which each letter of the message is shifted by a certain amount, called the key

Symmetric Encryption General

The same key is used to encrypt and decrypt (e.g., Caesar, Vigenere)

Public Key Encryption General

Public key encryption is a type of asymmetric key encryption. There’s one key that encrypts the information and there is a different key that decrypts the information.

Bit General

Bit means "binary digit". A bit is a single digit in a binary number. A bit can either be 0 or 1.

Steganography General

The art and science of concealing secret messages in such a way that no one apart from the intended recipient knows about the existence of the message. In digital information, Steganography is the practice of concealing a file, message, image, or video within another file, message, image, or video.

Copyright General

A law that grants the creator of an original work exclusive rights to its use, distribution, and sale

Public domain General

Objects in the public domain are not subject to copyright laws, and thus may be freely used by the general public.

URL General

Stands for Uniform Resource Locator. You are locating a resource that exists somewhere on the internet.

HTTP Request General

An HTTP request is made by a client, to a named host, which is located on a server. The aim of the request is to access a resource on the server.

HTTP Response General

An HTTP response is made by a server to a client. The aim of the response is to provide the client with the resource it requested.

Internet General

A philosophy of making information and knowledge open and accessible to all people. A network of networks built on open, agreed upon protocols.

Protocol General

A widely agreed upon set of rules that standardize communication between machines.

Network General

A group of two or more computer systems linked together.

Bitrate General

The amount of data (in bits) that can be sent in a fixed amount of time.

Bandwidth General

The capacity of data transfer in a system. Measured by bitrate.

Latency General

The latency of a system is the time it takes for a bit to travel from sender to receiver. Fiber optic cables have low latency.

network device General

An electronic device which is required for communication between devices.

Computing Devices General

A computing device is a physical artifact that can run a program.

Input Devices General

Input devices are computing devices that are used to take in information from a user or another device.

Output Devices General

Output devices are computing devices that are used to send computer data to the user.

Storage Devices General

Storage devices are computing devices that remember information.

Computing Systems General

A computing system is a group of computing devices and programs working together for a common purpose.

Computer Network General

A computer network is a group of interconnected computing devices capable of sending or receiving data.

Internet Protocol (IP) General

A protocol that defines the structure of an Internet address and assigns a unique address to every device on the Internet.

IPv6 General

A new 128 bit version of the Internet Protocol.

Domain Name System (DNS) General

Used to translate domain names into IP addresses.

Routing General

The process of sending data between two computers on the internet. The data is sent through routers that determine the route.

Redundancy General

When multiple paths exist between two points. This improves reliability and makes the internet fault tolerable. Makes the routing system scalable.

Packets General

Packets are the units of data that are sent over the network.

HTTP General

HyperText Transfer Protocol is a protocol that standardizes the language for talking to web servers to send and receive web pages, or HyperText information (HTML pages).

Transmission Control Protocol (TCP) General

Allows for sending MULTIPLE packets between two computers. TCP checks that all packets arrived and can be put back in the proper order. The metadata must include a destination IP address, a from IP address, the message size and the packet order number.

DNS Spoofing General

Pretending to be a DNS name resolver. Feed your computer the wrong IP address for a given website, and your browser now goes to a false website.

DDoS Attack General

Distributed Denial of Service attack. Spam a web server with so many requests so close together that it crashes. Sometimes spitting out valuable information as it crashes.

Cybersecurity General

Protocols for encrypting/decrypting information. Most cybersecurity breaches happen due to human error, not software bugs.

Cybercrime General

Identity theft, stealing money, stealing private information, controlling private computers.

certificate General

Confirms the identity and authenticity of a website.

Phishing General

The usage of deceptive emails and websites to maliciously gather personal information

Server Device JavaScript

Examples of servers include web servers, mail servers, and file servers. Each of these servers provide resources to client devices. Most servers have a one-to-many relationship with clients, meaning a single server can provide multiple resources to multiple clients at one time.

Sequential Programming General

sequential programming refers to programs that are executed sequentially – once through, from start to finish, without other processing executing.

Parallel and Distributed Programming General

Completes multiple tasks at a time, simultaneously.

Data Visualization General

Using charts, graphs, or images to visualize complex data.

Metadata General

a set of data that describes and gives information about other data.

Data Limitations General

Visualizations can be misleading by skewing the axes or labels, or leaving out relevant data.

Truncated Y-Axis General

Not starting the y-axis at zero.

Correlation General

A connection between two things.

Data General

Information (numbers, words, measurements, observations, etc) that is in a computer-readable form.

Data Visualization General

Using charts, graphs, or images to visualize complex data.

Data Visualization Limitation General

Visualizations can be misleading by skewing the axes or labels, or leaving out relevant data.

Data Extraction General

Data extraction is the act or process of retrieving data out of data sources for further data processing or data storage.

Design Thinking General

Design Thinking is an iterative process in which you seek to understand your users, challenge, assumptions, redefine problems and create innovative solutions which you can prototype and test.

Prototype General

A model designed to demonstrate the most basic functionality or basic design of a product, sometimes used as a proof of concept

Test (Design Thinking) General

A chance to get feedback on your solutions, refine them, and make them better.

HTML HTML

Hypertext Markup Language

HTML

HTML Tag HTML

Tags are the building blocks of an HTML document

Tag

markup language General

Uses tags to format and define elements within a document. The tags are not shown when the document is displayed.

HyperText General

Text displayed on a computer that has links to other hypertext documents.

Tree HTML

The structure of an HTML document

HTML Formatting HTML

HTML provides several tags for formatting text on web pages.

HTML Headings HTML

HTML headings are titles or subtitles that you want to display on a webpage. HTML headings are defined with the `<h1>` to `<h6>` tags. `<h1>` defines the most important heading. `<h6>` defines the least important heading.

<p> Tag HTML

The `<p>` tag defines a paragraph. Browsers automatically add a single blank line before and after each `<p>` element.

<i> Tag HTML

The `<i>` tag defines a part of text in an alternate voice or mood. The content inside is typically displayed in italic.

<b> Tag HTML

The `<b>` tag specifies bold text without any extra importance.

<hr> Tag HTML

This tag defines a thematic break in an HTML page (e.g. a shift of topic). The element is most often displayed as a horizontal rule that is used to separate content (or define a change) in an HTML page.

<br> Tag HTML

This tag inserts a line break.

<a> Tag HTML

Allows putting links on a web page. It uses the href attribute to specify what the link should point to.

Hyperlink HTML

The connection between one HTML page to another HTML page

HTML Attributes HTML

Tags can have attributes that tell us more information about the tag.

<img> Tag HTML

Allows adding an image to a web page. It is self-closing. The attributes of an `<img>` tag include `src`, which specifies where to get the image from (the url for an image ), and `width` and `height` attributes, which specify the size of the image in pixels.

HTML Lists HTML

Way to organize information with a simple structure that is easy to read and write on a webpage. There are ordered and unordered HTML lists.

<ul> Tag HTML

Defines an unordered list in HTML.

<li> Tag HTML

defines a list item inside an HMTL list.

<ol> Tag HTML

The <ol> tag defines an ordered list. An ordered list can be numerical or alphabetical.

HTML Tables HTML

Tables display information in a grid.

Style Attribute HTML

Allows adding several different types of styles to HTML elements.

CSS CSS

Cascading Style Sheets. The language for designing web pages and adding style.

Selector CSS

Defines which HTML elements a CSS rule applies to.

Class Attribute HTML

`class` is an attribute we can add to HTML tags in order to style a specific group of elements.

id Attribute HTML

`id` is an attribute we can add to an HTML tag to style that specific element.

JavaScript Documentation JavaScript

Documentation for the syntax and objects in Javascript that we use on CodeHS.

javascript documentation javascript docs js documentation js docs graphics data structures

Timer JavaScript

Timers are used to used perform repeated action in a program

Timer

Animation JavaScript

Showing several still images one after another very quickly, to give the illusion of animated movement.

Loop General

A loop is a way to repeat code in your program.

Loop

Constant JavaScript

A variable in a program that has a value that does not change.

Constant

Magic Number JavaScript

A number in your code that appears arbitrary. These should all be replaced with calculations or constants.

Magic Number