Search Header Logo

JavaScript Karel Unit 1 Quiz Study Guide

Authored by Adam Schwaninger

Computers

9th - 12th Grade

Used 25+ times

JavaScript Karel Unit 1 Quiz Study Guide
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following commands is a valid Karel command?

move

move;

move();

move()

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Why is the following command an invalid Karel command?

turnleft();

  1. It should end in a colon rather than a semicolon

  1. The l should be a capital L

  1. It should start with a capital T

  1. This command is correct

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is the correct way to define a turnRight function in Karel?

Media Image
Media Image
Media Image
Media Image

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Why do we use functions in Karel programs?

  1. Break down our program into smaller parts

  1. Avoid repeating code

  1. Make our program more readable

  1. All of the above

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

If Karel starts at Row 1 and Column 1, facing East, where will Karel be, and what direction will Karel be facing after running the following code? (Assume the world is 10x10 in size)

**Click the image**

  1. Row 3, Column 1, Facing North

  1. Row 1, Column 4, Facing North

  1. Row 1, Column 3, Facing South

  1. Row 1, Column 3, Facing North

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Karel starts at Row 1 and Column 1, facing East. After calling the stairStep function twice, where will Karel be and what direction will Karel be facing? (assume this is a SuperKarel program and the world is 10x10 in size)

**Click the image**

  1. Row 2, Column 2, Facing North

  1. Row 3, Column 3, Facing East

  1. Row 3, Column 3, Facing West

  1. Row 4, Column 4, Facing East

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

In this code, how many times is the dance function called and how many times is it defined?

**Click the picture**

  1. Called 1 time, defined 1 time

  1. Called 1 time, defined 3 times

  1. Called 3 times, defined 1 time

  1. Called 3 times, defined 3 times

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?