CodeHS - Unit 6 - Programming with Karel

CodeHS - Unit 6 - Programming with Karel

Assessment

Quiz

Computers

9th Grade

Medium

Created by

Teri Miles

Used 254+ times

FREE Resource

Student preview

quiz-placeholder

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following commands is a valid

Karel command?

move

move;

move();

move()

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What makes the following command an invalid Karel command?

turnleft();

It should end in a colon rather than a semicolon

The l should be a capital L

It should start with a capital T

This command is correct

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Why do we use functions in Karel programs?

Break down our program into smaller parts

Avoid repeating code

Make our program more readable

All of the above

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Why does a programmer indent their code?

Helps show the structure of the code.

Easier for other people to understand.

A key part of good programming style!

All of the above

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

How can we teach Karel new commands?

For loop

While loop

Define a new function

The start function

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

How many times is the start function called?

0

1

2

463

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

How many times is the start function defined?

0

1

2

As many as is needed

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?