Programming with Karel Final

Programming with Karel Final

7th - 8th Grade

21 Qs

quiz-placeholder

Similar activities

Python programming

Python programming

6th - 12th Grade

16 Qs

Steve Jobs

Steve Jobs

6th - 12th Grade

22 Qs

iMovie App Quiz

iMovie App Quiz

6th - 12th Grade

20 Qs

Mrs. Hansen's Syllabus & Procedures Quiz

Mrs. Hansen's Syllabus & Procedures Quiz

6th - 8th Grade

18 Qs

Intro to Programming & Robotics

Intro to Programming & Robotics

8th Grade

20 Qs

CodeHS Div & Spans

CodeHS Div & Spans

7th - 12th Grade

20 Qs

computer Lab Manners

computer Lab Manners

5th - 10th Grade

19 Qs

Google SketchUp Tool

Google SketchUp Tool

KG - University

20 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

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?