Search Header Logo
Why we Code the way we Code

Why we Code the way we Code

Assessment

Presentation

Computers

12th Grade

Practice Problem

Medium

Created by

Ashley Ernest

Used 3+ times

FREE Resource

7 Slides • 9 Questions

1

media

2

media
media
media

3

media
media

4

Fill in the Blank

5

Multiple Choice

Question image

Why will this code not run?

1

there has to be a number in the variable

2

there are supposed to be no spaces in the variable label

3

there are no caps in variables

6

Multiple Choice

Question image

Jasmine is writing a shopping app. She has created a variable to keep track of the number of items in the shopping cart. Every time someone clicks the "add_item_click", she would like the variable to increase by 1.


What code should Jasmine insert where it says #missing code in order for her app to work?

1

cartTotal += 1

2

#cartTotal + 1

3

cartTotal = catTotal +1

4

carTotal = cartTotal + 1

5

None are the correct code

7

media
media

8

Reorder

Explain how Python determines the value of a variable within nested code blocks.

Local

Global

Built-in

Error

1
2
3
4

9

media
media
media
media
media

10

Open Ended

Question image

What happens if the MAX_BAD_REVIEWS is 25?

11

Fill in the Blank

Type answer...

12

media
media

13

Fill in the Blank

Type answer...

14

Multiple Choice

Which of the following is NOT something discussed with coding?

1

Indentation

2

All of these

3

Classes

4

Concatenation

5

None of these

15

Open Ended

Reflecting on today's lesson about coding, what is something you would like to explore further?

16

media
media
media

Show answer

Auto Play

Slide 1 / 16

SLIDE