Search Header Logo
[1.2-1.9] [AP CSP Python]  Karel]  Intro to Programming

[1.2-1.9] [AP CSP Python] Karel] Intro to Programming

Assessment

Presentation

•

Computers

•

9th - 12th Grade

•

Practice Problem

•

Easy

Created by

Chris McDonald

Used 3+ times

FREE Resource

110 Slides • 48 Questions

1

​Log into codeHS

  • You can get there from the school portal,

  • If its not there, go directly to my CodeHS:

  • Try loging in with your School Gmail

  • If that does not work, create new login with your personal professional email.

2

media

3

Open Ended

Why do you think it is important to learn how to give commands to Karel?

4

Replace this with a header

​Replace with sub-header

Replace this with your body text. Duplicate this text as many times as you would like. All provided templates can be reused multiple times. Wish you a good day.

Happy teaching!

5

Multiple Choice

What is programming compared to in the introduction to Karel?

1

Giving commands to a dog

2

Playing tennis

3

Drawing pictures

4

Feeding a pet

6

media

7

media

8

Multiple Choice

Why do you think it is important to learn how to give commands to Karel?

1

Because it helps us understand how computers follow instructions

2

Because Karel is a real dog we need to train

3

Because it is required for all school subjects

4

Because it is just for fun with no learning involved

9

media

10

media

11

Open Ended

Explain how the command move() changes Karel's position in the world. Give an example.

12

Fill in the Blank

The command to make Karel move forward is ___.

13

Multiple Select

Which of the following actions can Karel perform in its world?

1

Move around

2

Put down tennis balls

3

Fly

4

Turn invisible

14

Multiple Choice

Which Karel command would you use to make Karel turn to face a different direction without moving from its current spot?

1

move()

2

turn_left()

3

put_ball()

4

take_ball()

15

media

16

Multiple Choice

What happens when Karel executes the put_ball() command?

1

Karel moves forward one space.

2

Karel turns left.

3

Karel places a ball on its current spot.

4

Karel picks up a ball from its current spot.

17

media

18

Multiple Choice

Which Karel command allows Karel to pick up an object from its current location?

1

move()

2

turn_left()

3

put_ball()

4

take_ball()

19

media

20

Multiple Select

Which of the following are true about writing Karel commands?

1

Commands must have no spaces.

2

Commands must match exact capitalization.

3

Commands can end with any symbol.

4

Every command ends in ().

21

Fill in the Blank

Fill in the blank: Every Karel command ends in ___

22

media

23

Open Ended

Describe the sequence of actions Karel must take to go from the starting world to the ending world as shown.

24

media

25

media

26

Multiple Choice

Which command would you use to make Karel move forward one space?

1

move()

2

turn_left()

3

put_ball()

4

take_ball()

27

Multiple Choice

Which Karel command would you use to make Karel rotate 90 degrees to the left?

1

move()

2

turn_left()

3

put_ball()

4

take_ball()

28

Open Ended

How do the concepts of 'street' and 'avenue' help in navigating Karel's World?

29

Multiple Choice

What is the purpose of the walls in Karel's World as shown in the images?

1

To mark boundaries and obstacles for Karel

2

To show where Karel can collect beepers

3

To indicate Karel's starting position

4

To display the direction Karel is facing

30

Multiple Choice

What happens when the put_ball() command is executed by Karel?

1

Karel moves forward one space.

2

Karel turns to the left.

3

Karel places a ball on its current spot.

4

Karel picks up a ball from its current spot.

31

Multiple Choice

Which command should Karel use to pick up a ball from its current location?

1

move()

2

turn_left()

3

put_ball()

4

take_ball()

32

media

33

Open Ended

Describe a possible sequence of moves and actions Karel could take to go from the starting world to the ending world in the last image.

34

Fill in the Blank

Karel starts at the bottom left corner. After completing the program, Karel is surrounded by ___ beepers.

35

Multiple Select

Which of the following are rules for writing Karel commands?

1

No spaces in commands

2

Commands must match exact capitalization

3

Commands can have numbers

4

Every command ends in ()

36

Fill in the Blank

Fill in the blank: Every Karel command ends in ___

37

media

38

Multiple Choice

How can Karel simulate turning right if the turn_right() command is not available?

1

By turning left three times

2

By moving forward and turning left

3

By turning left once

4

By turning around

39

Multiple Choice

Why can't Karel use the command turn_right()?

1

Because Karel's programming does not include turn_right()

2

Because turn_right() is a dangerous command

3

Because Karel can only move forward

4

Because Karel can only turn left

40

Open Ended

Describe the sequence of commands Karel would need to use to go from the starting world to the ending world as shown.

41

media

42

media

43

Multiple Choice

What is the main purpose of using functions when programming Karel?

1

To teach Karel new commands and simplify code

2

To make Karel move faster

3

To change Karel's appearance

4

To increase the number of beepers Karel can carry

44

Multiple Select

Which of the following are other names for a function as described in the lesson?

1

Procedure

2

Task

3

Process

4

Loop

45

Fill in the Blank

A ___ is a way to teach Karel a new word.

46

Open Ended

Explain why teaching Karel new commands, like turn_right(), might be useful when solving problems.

47

media

48

media

49

media

50

Multiple Choice

Which directions can Karel face in his world?

1

North, South, East, West

2

Up, Down, Left, Right

3

Forward, Backward, Left, Right

4

North, East, South, Up

51

media

52

Multiple Choice

When Karel is facing East and executes turn_left(), which direction will Karel face?

1

North

2

West

3

South

4

East

53

media

54

media

55

media

56

media

57

media

58

Multiple Choice

How can you make Karel turn right if there is no turn_right() command?

1

Use turn_left() three times

2

Use turn_left() two times

3

Use turn_left() four times

4

Use move() and turn_left()

59

Multiple Choice

Why can't Karel use the command turn_right()?

1

Because Karel is only programmed to turn left

2

Because turn_right() is not a valid command for Karel

3

Because Karel can only move forward

4

Because Karel can only turn around

60

media

61

Open Ended

Explain why it might be useful to define a new function for Karel to turn right, even though there is no built-in turn_right() command.

62

media

63

Fill in the Blank

A ___ is a way to teach Karel a new word.

64

media

65

media

66

media

67

media

68

media

69

media

70

media

71

media

72

media

73

media

74

media

75

media

76

media

77

media

78

media

79

media

80

media

81

media

82

media

83

Multiple Choice

Why do we use functions in programming?

1

Break down our program into smaller parts

2

Avoid repeating code

3

Make our program more readable

4

All of the above

84

Multiple Choice

What is top down design?

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

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

3

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

4

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

85

media

86

media

87

media

88

media

89

media

90

media

91

media

92

Multiple Choice

What is a code comment?

1

A way to teach Karel a new word

2

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

3

A message to your teacher in code

4

A place to write whatever you want in your code

93

Multiple Choice

Why are preconditions and postconditions important in comments?

1

They are ignored by the compiler

2

They ensure the code always works.

3

They clarify function behavior and assumptions.

4

They are only for debugging purposes.

94

media

95

media

96

media

97

media

98

media

99

media

100

media

101

media

102

media

103

media

104

media

105

media

106

media

107

media

108

media

109

media

110

media

111

media

112

media

113

media

114

media

115

media

116

media

117

media

118

media

119

media

120

media

121

media

122

media

123

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

he 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.

2

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

3

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

4

he Warriors won by 10 points.

124

Multiple Choice

Karel needs to pick up a pile of tennis balls. Which of the following program functions solves the problem at the highest level of abstraction?

1
2
3
4

125

media

126

media

127

Multiple Choice

What commands does SuperKarel know that regular Karel does not?

1

turn_left() and jump()

2

turn_right() and jump()

3

turn_around() and turn_right()

4

turn_around() and jump()

128

media

129

media

130

Open Ended

What is one thing you learned about Karel today, and what would you like to know more about?

131

Multiple Choice

What is Karel?

1

A cat who solves puzzles

2

A robot who builds houses

3

A dog who listens to your commands

4

A bird who flies in mazes

132

media

133

media

134

media

135

media

136

media

137

media

138

media

139

Open Ended

  • How do functions serve as a form of abstraction in programming?

140

media

141

media

142

media

143

media

144

media

145

media

146

media

147

media

148

media

149

media

150

media

151

media

152

media

153

media

154

media

155

media

156

Multiple Choice

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

1
2

def spin():

turn_left() turn_left() turn_left() turn_left()

3
4

157

Multiple Choice

What do we use control structures for in Python?

1

control the flow of the program; how the commands execute.

2

Start our Python program

3

Store information for later

4

Teach Karel new commands

158

Multiple Select

Which of the below are examples of control structures?

1

IF

2

IF/ELSE

3

WHILE

4

FOR

​Log into codeHS

  • You can get there from the school portal,

  • If its not there, go directly to my CodeHS:

  • Try loging in with your School Gmail

  • If that does not work, create new login with your personal professional email.

Show answer

Auto Play

Slide 1 / 158

SLIDE