Search Header Logo
Karel Exam 2.1 - 2.9

Karel Exam 2.1 - 2.9

Assessment

Presentation

Mathematics

12th Grade

Practice Problem

Easy

CCSS
5.G.A.1, RI.9-10.4, 5.G.A.2

+10

Standards-aligned

Created by

Maria Cruz Farooqi

Used 30+ times

FREE Resource

0 Slides • 22 Questions

1

Multiple Choice

Question image

Which of these is a valid Karel command?

1

  1. move( )

2

move( );

3

MOVE

4

move ;

2

Multiple Choice

Question image

What is a street in a Karel world?


1

A column

2

A row

3

A single point

4

Karel's position

3

Multiple Choice

Question image

What is an avenue in a Karel world?

1

A column

2

A row

3

Karel's position

4

A single point

4

Multiple Choice

Question image

If Karel starts at Street 1 and Avenue 3 facing East, what street (row) and avenue (column) will Karel be on after this code runs?

move();

move();

move();

turnLeft();

move();

1

Street 4 and Avenue 4

2

Street 1 and Avenue 3

3

Street 2 and Avenue 6

4

Street 6 and Avenue 2

5

Multiple Choice

Question image

If Karel is facing North and the code

turnLeft( );

turnLeft( );
runs; which direction is Karel facing now?

1

North

2

East

3

West

4

South

6

Multiple Choice

Question image

How many times should Karel turn left in order to turn right?

1

1

2

2

3

3

4

4

7

Multiple Choice

Question image

What can be used to teach Karel to turn right?

1

Variables

2

Dog Treats

3

Karel can't turn right

4

Functions

8

Multiple Choice

Question image

Which is the correct way to write the turnRight function?

1

function turnRight( ){

turnLeft( );

turnLeft( );

}

2

function turnRight( ){

turnLeft( );

turnLeft( );

turnLeft( );

}

3

function turnRight( )

turnLeft( )

turnLeft( )

4

function turnright( ){

turnLeft( );

turnLeft( );

turnLeft( );

}

9

Multiple Choice

Which function will teach Karel how to spin in a circle one time?

1

function spin( ) {

turnRight( );

}

2

function spin( ) {

turnLeft( );

turnLeft( );

turnLeft( );

turnLeft( );

}

3

function spin( ) {

turnLeft( );

turnLeft( );

}

4

function spin( ) {

move( );

move( );

move( );

move( );

}

10

Multiple Choice

Question image

How many times should the start function be defined in a program?

1

0

2

1

3

2

4

3

11

Multiple Choice

Question image

How many times should you call the start function in a program?

1

0

2

1

3

2

4

3

12

Multiple Choice

Why do we use functions in programming?

1
  1. Break down our program into smaller parts

2
  1. Avoid repeating code

3
  1. Make our program more readable

4
  1. All of the above

Answered

13

Multiple Choice

Question image

What is top down design?

1
  1. Top down design is a way of designing your program by starting with the biggest problem and breaking it down into smaller and smaller pieces that are easier to solve.

2
  1. Top down design is a way that you can create designs on a computer to put on a web page

3
  1. Top down design is a way of designing your programs starting with the individual commands first

4
  1. Top down design is a way to use loops and classes to decompose the problem

14

Multiple Choice

Question image

What is a code comment?

1

A place to write whatever you want in your code

2

A message to your teacher in code

3

A way to teach Karel a new word

4

A way to give notes to the reader to explain what your code is doing

15

Multiple Choice

Each of the following answer choices describes a basketball game.

Which answer choice describes the game with the lowest level of abstraction?

1

The Warriors won by 10 points.

2
  1. 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.

3
  1. First, Steph Curry jumped in the air and grabbed the ball. Then he dribbled it three times and passed it to Klay Thompson…

4
  1. First, Steph Curry flexed his left and right quad muscles at the exact same time, then he flexed each muscle in his fingers…

16

Multiple Choice

Question image

What commands does SuperKarel know that regular Karel does not?

1

turnLeft( ) and jump( )

2

turnAround( ) and turnRight( )

3
  1. turnRight( )

  2. and jump( )

4
  1. turnAround( ) and jump( )


17

Multiple Choice

In JavaScript, you should include a semi-colon at the end of each statement.
1
yes
2
no

18

Multiple Choice

Which command is written incorrectly?

1

putBall();

2

putball();

3

turnLeft();

4

takeBall();

19

Multiple Choice

Which of the following best describes what a function is used for?
1
they create new variable commands
2
they are used for difficult math formulas
3
they are reusable pieces of code that can be called any time in the program
4
they allow for the use of mathematical operators

20

Multiple Choice

Question image

How many times does Karel move with this loop?

1

9

2

0

3

10

4

1

21

Multiple Choice

Which Karel command is written correctly?

1

move;

2

Putball()

3

turnLeft();

4

move(;

22

Multiple Choice

Question image

Which line contains the bug?

1

1 and 5

2

2 only

3

3 only

4

5 only

Question image

Which of these is a valid Karel command?

1

  1. move( )

2

move( );

3

MOVE

4

move ;

Show answer

Auto Play

Slide 1 / 22

MULTIPLE CHOICE