Search Header Logo

Programming with Karel Unit 3 - 3.7 - 3.12 Quiz

Authored by Mary Kallenbach

Computers

8th Grade

Used 14+ times

Programming with Karel Unit 3 - 3.7 - 3.12 Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

23 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

How do you write a single-line comment?

comment //
++ comment
// comment
** comment

2.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

What is a code comment?

A way to teach Karel a new word.
A way to give notes to the reader to explain what your code is doing.
A message to your teacher in code.
A place to write whatever you want in your code.

3.

MULTIPLE CHOICE QUESTION

30 sec • 4 pts

How do you write a multi-line comment?

/* comment */
// comment
** comment
# comment#

4.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

The assumptions we make and what must be true before the function is called is known as?

Precondition
Postcondition
Adaptation
Comments

5.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

Each of the following answer choices describes a basketball game. Which answer choice describes the game with the lowest level of abstraction:

The Warriors won by 10 points.
The Warriors had an early lead, but were down by 4 at halftime. They tied it up in the 4th quarter and the game went into overtime. They won by 10 points in overtime.
First, Steph Curry jumped in the air and grabbed the ball. Then he dribbled it three times and passed it to Klay Thompson…
First, Steph Curry flexed his left and right quad muscles at the exact same time, then he flexed each muscle in his fingers…

6.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

You need to write a program that has Karel move if the front is clear, but if it isn’t clear, Karel will do nothing. Which control structure do you need to use?

For Loop
While Loop
If Statement
None of these

7.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

Define Abstraction

Breaking a task into smaller tasks.
Drawing a map to show how to reach a destination.
Creating step by step instructions.
Focusing on what is important and ignoring what is unnecessary.

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?