Please enable JavaScript to use CodeHS

Computer Science Explorations 2 Glossary

Flashcards

Course:

Module:

Lesson:

Search:

Karel General

Karel is a dog who listens to your commands.

Karel

Command JavaScript

A command is an instruction you can give to Karel.

Command

Debugging General

Debugging is fixing a problem in your code.

Debugging

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.

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 General

A block of reusable code that is used to perform a task.

World General

A "world" or "Karel World" is a grid that karel lives in.

karel World

Comment JavaScript

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

Comment

Comment Out JavaScript

Commenting out code makes the computer ignore it, so it does not run.

Comment Out

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

Loop General

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

Loop

For Loop JavaScript

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

For Loop

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

Conditional Statement General

A statement that evaluates to true or false.

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