Adv CS- Javascript- Programming with Karel

Adv CS- Javascript- Programming with Karel

12th Grade

10 Qs

quiz-placeholder

Similar activities

Basic Karel Review

Basic Karel Review

9th - 12th Grade

7 Qs

Programming with Karel

Programming with Karel

9th - 12th Grade

9 Qs

Karel Quizzes 1-5 (Command - Start)

Karel Quizzes 1-5 (Command - Start)

9th - 12th Grade

10 Qs

Java

Java

9th - 12th Grade

15 Qs

CodeHS 1.13 Control Structures Example

CodeHS 1.13 Control Structures Example

9th - 12th Grade

8 Qs

Arduino Basic Programming

Arduino Basic Programming

12th Grade

10 Qs

Functions, for loops, comments

Functions, for loops, comments

9th - 12th Grade

8 Qs

CodeHS Karel Unit

CodeHS Karel Unit

9th - 12th Grade

12 Qs

Adv CS- Javascript- Programming with Karel

Adv CS- Javascript- Programming with Karel

Assessment

Quiz

Computers

12th Grade

Medium

Created by

Simone CTA]

Used 1+ times

FREE Resource

10 questions

Show all answers

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

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?