Search Header Logo

Python Variables

Computers

7th - 12th Grade

Used 100+ times

Python Variables
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Looking at the following code, what are the names of the variables:

firstName, lastName, fullName

Hyperion, Hub

firstName, lastName, fullName, space

FIRSTNAME, LASTNAME, FULLNAME, SPACE

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What rule is the following variable name BREAKING:


1st_Name

No special characters other than underscore

Only use text for the start of the variable name - no numbers at start

Keep names meaningful

There is nothing wrong with this variable name

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What rule is the following variable name BREAKING?


StudentNo.

Only use text for the starting letter of a variable name - not numbers at the start

No special symbols other than the underscore

There is nothing wrong with this variable name

Keep variable names meaningful for the task they are being used for

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

what is the variable name in the following script?

name

hello, your name is

print

There is no variable in this script

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which name would be meaningful in keeping a record of someone's high score?

s

hs

score

highScore

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?