Please enable JavaScript to use CodeHS

Mocha Glossary

Flashcards

Course:

Module:

Lesson:

Search:

World General

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

karel World

Loop General

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

Loop

While Loop General

Lets us repeat code as long as something is true.

While 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

Karel General

Karel is a dog who listens to your commands.

Karel

If Else Statement General

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

If Else Statement

Control Structure General

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

Control Structure loops if statements

Command Java

A command is an instruction you can give to Karel.

Method Java

A method is a way to teach the computer a new command

Define a method Java

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

Calling a method Java

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

For Loop Java

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