Unit 2 Knowledge Test Make Up

Unit 2 Knowledge Test Make Up

9th - 12th Grade

11 Qs

quiz-placeholder

Similar activities

Programming with Karel the Dog 2

Programming with Karel the Dog 2

6th - 9th Grade

13 Qs

Karel the Dog Code Quiz

Karel the Dog Code Quiz

9th - 12th Grade

12 Qs

CodeHS Unit 1-6

CodeHS Unit 1-6

9th - 12th Grade

12 Qs

Y9 Java (Karel the dog)

Y9 Java (Karel the dog)

9th Grade

10 Qs

Codehs Concepts of Programming

Codehs Concepts of Programming

9th Grade

15 Qs

CodeHS 5.1

CodeHS 5.1

9th - 12th Grade

15 Qs

Vocabulary Review

Vocabulary Review

9th - 12th Grade

8 Qs

Unit 2 Knowledge Test Make Up

Unit 2 Knowledge Test Make Up

Assessment

Quiz

Computers

9th - 12th Grade

Easy

Created by

Miguel [SCHS]

Used 1+ times

FREE Resource

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

Media Image
Media Image
Media Image
Media Image

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

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

Called 3 times, defined 3 times

Called 1 time, defined 1 time

Called 1 time, defined 3 times

Called 3 times, defined 1 time

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is wrong with this for loop?

I. The for loop uses commas instead of semicolons

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

I

II

I and II

The loop is correct.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

{This is a comment}

// This is a comment

/* This is a comment

This is a comment

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

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

noBallsPresent()

ballsPresent()

frontIsClear()

takeBall()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can we teach Karel new commands?


For loop

While loop

The start function

Define a new function

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

How can we improve the following program?

Fix the indentation of this program

Use a while loop to repeat the move command

Break down this program into more functions

Use a for loop to repeat the move command

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?