Programming with Karel Final

Programming with Karel Final

7th - 8th Grade

21 Qs

quiz-placeholder

Similar activities

Computer Lab Level 1

Computer Lab Level 1

3rd - 7th Grade

17 Qs

Excel - Fuctions and Charts

Excel - Fuctions and Charts

8th Grade

20 Qs

AQA GCSE Computer Science - 3.2.6 Data structures

AQA GCSE Computer Science - 3.2.6 Data structures

8th - 10th Grade

20 Qs

Word Processing Lessons 3 and 4 Review

Word Processing Lessons 3 and 4 Review

KG - University

20 Qs

67/1-แบบทดสอบปลายภาคโปรแกรม Adobe Photoshop

67/1-แบบทดสอบปลายภาคโปรแกรม Adobe Photoshop

6th - 8th Grade

20 Qs

Fun with Basics of CS

Fun with Basics of CS

7th - 8th Grade

20 Qs

Word Processing Terminology

Word Processing Terminology

8th Grade

23 Qs

Python Year 9 Quiz

Python Year 9 Quiz

8th - 10th Grade

19 Qs

Programming with Karel Final

Programming with Karel Final

Assessment

Quiz

Computers

7th - 8th Grade

Medium

Created by

Anita MS]

Used 14+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

21 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

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

30 sec • 1 pt

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

function turnRight() {

turnLeft();

turnLeft();

turnLeft();

}

function turnRight() {

turnRight();

turnRight();

turnRight();

}

function turnRight {

turnLeft();

turnLeft();

turnLeft();

}

turnRight function() {

turnLeft();

turnLeft();

turnLeft();

}

4.

MULTIPLE CHOICE QUESTION

30 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

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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


function start() {

move();

dance();

move();

move();

turnLeft();

dance();

dance();

}


function dance() {

turnLeft();

move();

turnLeft();

turnLeft();

move();

turnLeft();

}

Called 1 time, defined 1 time

Called 1 time, defined 3 times

Called 3 times, defined 1 time

Called 3 times, defined 3 times

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What’s wrong with this code?


function start() {

move();

go();

go();

}


function go() {

move();

move();

}


function go() {

move();

move();

}

The go function is called twice

The go function has a syntax error

The go function has been defined twice

go is not a command that Karel understands

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many total times will Karel move in this program?


function start() {

move();

for (var i = 0; i < 5; i++) {

move();

putBall();

}

}

1

5

6

7

Create a free account and access millions of resources

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?