Adv CS- Javascript- Programming with Karel

Adv CS- Javascript- Programming with Karel

12th Grade

10 Qs

quiz-placeholder

Similar activities

CodeHS 5.1

CodeHS 5.1

9th - 12th Grade

15 Qs

Coding Pre Test

Coding Pre Test

9th - 12th Grade

15 Qs

Coding Pretest

Coding Pretest

9th - 12th Grade

15 Qs

Paper Practice 2

Paper Practice 2

9th - 12th Grade

10 Qs

for loops forever 926

for loops forever 926

9th - 12th Grade

15 Qs

CodeHS Unit 1-6

CodeHS Unit 1-6

9th - 12th Grade

12 Qs

CodeHS Test

CodeHS Test

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?