Programming with Karel Vocabulary

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

For Loop

Lets us repeat code a fixed number of times.

Control Structure

Lets us change the flow of the code.

While Loop

Lets us repeat code as long as something is true.

Break Down

Splitting your code into more functions.

Decompose

Splitting your code into more functions.

Integer

A whole number (not a fraction)

Initialize

To give a variable an initial value

Function

A way to teach Karel a new word.

Karel

A dog who listens to your commands.

World

A grid that Karel lives in.

Comment

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

Top Down Design

A method for breaking our program down into smaller parts.

Computer

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

Bug

A problem in your code.

Fencepost Problem

A problem when using a while loop where you forget one action at the beginning or the end.

Semicolon

A punctuation marks that looks like ;

Variable

A symbol or container that holds a value.

Constant

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

Loop

A way to repeat code in your program.

Call a Function

Actually giving the command for the function, so the computer will run the code for that function.

SuperKarel

Already knows how to turnRight() and turnAround()

If Statement

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

Command

An instruction you can give to Karel.

Precondition

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

Decomposition

Breaking your program into smaller parts.

Condition

Code that you put inside an if statement or a while-loop.

Curly Bracket

This {open and closed}

If Else Statement

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

Computing

Executing instructions, calculating, or using a computer.

Increment

To add to or increase

Code

The name for the instructions you write to a computer in a program.

Function body

The part of a function that contains the commands

Indentation

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

Programming Style

The way your code is written. It covers the aspects of the code that goes beyond whether or not it just works.

Define a Function

To teach the computer a new command and explain what it should do when receiving that command.

Postcondition

What should be true after the function is called


संबंधित स्टडी सेट्स

Central America and the Panama Canal

View Set

Macroeconomics Midterm 2 (Ch. 5B,6,7,10)

View Set

H356 Biophysical Processes: Exam 3

View Set

Dosage Calculation and Medication Administration

View Set