Please enable JavaScript to use CodeHS

AP CSP Glossary

Flashcards

Course:

Module:

Lesson:

Search:

Bug General

A bug is a problem in your code.

Bug

Debugging General

Debugging is fixing a problem in your code.

Debugging

Syntax error JavaScript

An error in the sequence of words or rules in a program that prevents the program from running.

syntax error

Runtime error JavaScript

An error that results in a crash when the program is run.

runtime error

logic error Java

errors where the expected result does not match the actual result; these errors are due to mistakes in coding logic and will not be detected by the compiler

Cybercrime General

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

Moore's Law General

An observation that the processing speed of computers is doubling every year. This is *exponential* growth. Computers are getting smaller and faster at an exponential rate.

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.

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!