Search Header Logo
Python Coding Lesson 1-14b

Python Coding Lesson 1-14b

Assessment

Presentation

•

Computers

•

6th - 8th Grade

•

Medium

Created by

Stephanie Kimbrough

Used 1+ times

FREE Resource

10 Slides • 30 Questions

1

media
media
media
media
media
media
media
media
media
media
media
media
media

CODECOMBAT

LET’S PLAY!

LESSONS 1-3

2

media
media
media
media
media
media
media
media

how to play

• Start the lesson
• Take Cornell Notes in your Notebook (pages 19- 25)
• Complete the video
• Answer the questions with a score of 80% or higher
• Get a good grade!

Lesson 1

Lesson 2

Lesson 3

3

media
media
media
media
media
media
media

ARE YOU
READY?

4

media
media
media
media
media
media
media

Watch the video!

5

Match

Match the following

Algorithm

Loop

Optimism

Chronological

Debug

Detailed lines of code that are written to achieve a goal

A type of code that will repeat one or more lines of code

Positive thinking

Doing things in order from 1st to last

Finding and fixing mistakes in coding

6

Multiple Choice

what is decomposition
1
breaking down a problem into smaller parts
2
joining together multiple problems
3
not doing anything to the problem
4
making a problem more complex

7

Multiple Choice

An error in your code that makes it behave not as expected is a:

1

Job

2

Algorithm

3

Bug

4

Conditional

8

Multiple Choice

A program is a(n):

1

Icon

2

Set of instructions for your computer

3

Handbook

4

Blueprint

9

Multiple Choice

Which language does a computer understand?

1

Sync language

2

English language

3

Programming language

4

Note language

10

​Iteration is...

​... trying something a bunch of times and making changes (small or large) each time.

​...notes in your code that explain the code in each section. Python coding uses the # (hash) sign.

​Commenting is...

​Debugging is...

...find the errors in a code and fix them. Having a bug means there is an error in the code.

​Take notes in Cornell Notes Form

11

Multiple Choice

Which of the following is a programming language?

1

Anaconda

2

Puppy

3

Dexter

4

Python

12

Multiple Choice

A process or set of rules to be followed in calculations or other problem-solving operations, especially by a computer is:

1

Debugging

2

Event

3

Algorithm

4

Run Program

13

Multiple Choice

Question image
Which algorithm will get the bird to the pig?
1
Forward
Turn Left
Forward
Forward
2
Turn Left
Forward
Forward
Forward
3
Forward
Turn right
Forward
Forward

14

Multiple Choice

Question image
Which algorithm will get the bird to the pig?
1
Forward 
Turn Left Forward
Forward
2
Forward
Forward
Turn Left
Forward
Forward
3
Forward
Forward
Turn Right
Forward
Forward
4
Forward
Turn Left
Forward
Forward

15

Multiple Choice

Question image
Which algorithm will get the bird to the pig?
1
Forward
Turn Left
Forward
Turn Right
Forward
2
Forward
Forward
Turn Left
Forward
Forward
3
Forward
Turn Right
Forward
Turn Left
Forward
4
Turn Left
Forward
Forward
Turn Right

16

media
media
media
media
media
media
media

Watch the video!

17

Multiple Choice

A variable in coding is...

1

represents a value that can change

2

are always negative

3

is the constant value in a code

4

used in coding to represent numbers

18

Multiple Choice

The correct way to write a variable in Python?
1

myVariable = 10

2
my variable = 10
3
my_variable is 10
4
my_variable: 10

19

Dropdown

To change the value of a variable means you have

the variable

20

Multiple Choice

Which choice is a properly formed Python variable name?

1

dRaWsQuArE

2

draw_square

3

1draw_square

21

Multiple Choice

Which correctly declares a float variable called mole and a value of 6.02.

1

mole = "6.02"

2

mole= int(6.02)

3

mole = 6.02

22

Take Notes in Cornell Form

23

Multiple Choice

x= 4.5

print int(x)

What will the program print?

1

4

2

5

3

4.5

24

Multiple Choice

How do you print a statement in python programming?

1

print ( " hello world ")

2

print(]

3

print [ "c"]

4

None of the above

25

Multiple Choice

Select a valid string in python?

1

var = "string"

2

var == string

3

var =! string

4

var ["string"]

26

Multiple Choice

What is the output of the following code?


x="hello"

print(x)

1

x

2

hello

3

hi

4

None of the above

27

Multiple Choice

Look at the following code:

age = 23

age = float(age)


What does this code do the the data?

float(age)

1

changes the string to an int

2

changes the int to a string

3

adds a decimal point (23.0)

4

does nothing

28

media
media
media
media
media
media
media

Watch the video!

29

Multiple Choice

What does the following Python program print?

X = "Hello World!"

Y = "I can code "

Z = " In Python"

print( X + Y + Z)

1

Hello World! I can code In Python

2

Hello World!I can code In Python

3

Hello World! I can codeIn Python

4

Hello World!I can codeIn Python

30

Multiple Choice

Question image

1

5

4

3

2

1

2

4

3

2

1

0

3

0

4

Infinite loop

31

Multiple Choice

Question image

1

0

2

4

3

2

1

0

3

5

4

4 3 2 1 0

32

Multiple Choice

Question image
1
5
4
3
2
1
2
4
3
2
1
0
3
5  4  3  2  1
4
4  3  2  1  0

33

Multiple Choice

Question image
1
5
4
3
2
1
2
5  4  3  2  1
3
4
3
2
1
0
4
4  3  2  1  0

34

Take Cornell Notes

35

Multiple Choice

Question image
1
5
4
3
2
1
2
4
3
2
1
0
3
5  4  3  2  1
4
4  3  2  1  0

36

Multiple Choice

Question image
1
12  9  6  3  0
2
0  3  6  9  12
3
9  6  3  0
4
0  3  6  9

37

Multiple Choice

Which type of loop iterates until condition become False?

1

FOR loop

2

A count-controlled loop

3

Repeat-once loop

4

WHILE loop

38

Multiple Choice

Which two statements are used to implement iteration?
1
IF and WHILE
2
ELSE and WHILE
3
FOR and WHILE
4
IF and ELSE

39

Fill in the Blank

Question image

What is the final value of the variable 'number'?

40

media
media
media
media
media
media
media
media
media

THANKS FOR

PLAYING

END

media
media
media
media
media
media
media
media
media
media
media
media
media

CODECOMBAT

LET’S PLAY!

LESSONS 1-3

Show answer

Auto Play

Slide 1 / 40

SLIDE