CMU CS Academy Python Variable Names

CMU CS Academy Python Variable Names

Assessment

Flashcard

Computers

9th Grade

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

8 questions

Show all answers

1.

FLASHCARD QUESTION

Front

Is 2abc valid or invalid?

Back

Invalid

2.

FLASHCARD QUESTION

Front

_abc
Options: Valid, Invalid

Back

Valid

3.

FLASHCARD QUESTION

Front

ab’c

Back

Invalid

4.

FLASHCARD QUESTION

Front

def

Back

Invalid

5.

FLASHCARD QUESTION

Front

Which of the following variable names is valid in Python? 2_apple, 2-apple, two_apple, two-apple

Back

two_apple

6.

FLASHCARD QUESTION

Front

Which of the following variable names is NOT valid in Python? name, width, for, length

Back

for

7.

FLASHCARD QUESTION

Front

pass

Back

Invalid

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?