Search Header Logo

Adv CS- Javascript- Programming with Karel

Authored by Simone CTA]

Computers

12th Grade

10 Questions

Used 1+ times

Adv CS- Javascript- Programming with Karel
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following commands is a valid Karel command?

move

move;

move();

move()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why do we use functions in Karel programs?

Make our program more readable

Avoid repeating code

Break down our program into smaller parts

All of the above

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is wrong with this for loop?

for (let i = 0, i < 10, i + 1) {

move();

}

I. The for loop uses commas instead of semicolons

II. It should say i++ instead of i + 1

I

II

I and II

The for loop is correct

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the proper format for a single line comment in Karel?

# This is a comment

/* This is a comment

// This is a comment

<comment>This is a comment</comment>

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a valid condition to go in an if statement for Karel?

leftIsBlocked()

turnLeft()

frontIsClear()

ballsPresent()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What condition should be used in this while loop to get Karel to pick up all the tennis balls on the current location?

while (________) {

takeBall();

}

noBallsPresent()

ballsPresent()

frontIsClear()

takeBall()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can we teach Karel new commands?

Define a new function

While loop

The main function

For loop

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?