Search Header Logo
Comments & Naming Functions

Comments & Naming Functions

Assessment

Presentation

Computers

9th Grade

Practice Problem

Medium

Created by

TARASE MCGEE

Used 1+ times

FREE Resource

6 Slides • 6 Questions

1

media

2

Multiple Choice

Why is it important for comments in code to be ignored by the computer?

1

Because they help the computer run faster

2

Because they provide information for programmers, not the computer

3

Because they are used to store data

4

Because they are required for the code to work

3

media

4

Multiple Select

Select all the ways that writing comments in your code benefit both you and other programmers?

1

I can leave myself notes about the code I am writing

2

Other coders will see my comments and understand how my code works and add to it or help me fix it

3

I can keep track of the changes I need to make or information I need to add

5

media

6

Multiple Choice

Which syntax is used for writing an in-line comment in Python?

1

# comment here

2

// comment here

3

4

/* comment here */

7

media

8

Fill in the Blank

Fill in the blank: Variable names in Python should only contain ___ letters.

9

Multiple Choice

Which of the following is NOT a basic guideline for naming variables in Python?

1

Use descriptive names

2

Use uppercase letters

3

Underscores take the place of spaces

4

Cannot start with a number

10

media

11

media

12

Multiple Select

Select all the correct examples of better names for functions or variables based on the guidelines provided.

1

make_a_dash

2

radius

3

three_circles

4

3_circles

media

Show answer

Auto Play

Slide 1 / 12

SLIDE