Intro to Karel
Basic Karel
Functions
Functions Part 2
100

A dog who listens to your commands.

Who is Karel?

100

What is a street in Karel's World?

A row.

100

What can be used to teach Karel to turn right?

A function.
100

Programs that _________ have good decomposition and make the code easy to follow.

What is Read Like a Story?

200

An instruction you can give to Karel.

What is a command?

200

What is an avenue in Karel's World?

A column.

200

What are these {} called?

Curly (or Squiggly) Brackets

200

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


What is Start Function?
300

A grid that Karel lives in.

What is a World (or Karel World)?

300

How can we make Karel turn right?

turnLeft x3

300

The part of a function that contains the commands


What is Function Body?

300

How many times should the start function be defined in a program?



Once.
400

A naming convention where the first letter is lower case, and each subsequent start of a word is upper case.

What is lowerCamelCase?

400

What are two commands Karel knows?

turnLeft, putBall, takeBall, move 

400

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

What is Defining a Function?

400

How many times should the start function be called in a program?



Zero.
500

What is wrong with this code?

move();

move();

turnRight();

Karel doesn't know turnRight. 

500

What are the directions Karel can face?

North, East, South, West

500

What does it mean to Call a Function?

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


500

When defining your function, should you include a semicolon after the parentheses when naming the function? 

No.