Search Header Logo

Python L2 Input & Variable

Authored by Future Teacher

Computers

6th - 8th Grade

Used 6+ times

Python L2 Input & Variable
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the input() function do in Python?

Displays output on the screen

Calculates numbers

Asks the user for input and waits for a response

Combines two strings

2.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

Fill in the blank: To count the number of characters in a string, you use the ___() function.

3.

MATCH QUESTION

1 min • 1 pt

Match each term with its correct example:

Input function

len("Roblox")

Print output

input("Your name?")

Variable name

favorite_game

String length

print("Hello")

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

True or False: You can start a variable name with a number.

True

False

5.

REORDER QUESTION

1 min • 1 pt

Arrange the steps to swap values of variables a and b using a temporary variable.

temporary = a

a = b

b = temporary

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is a valid variable name in Python?

1stName

print

user_name

your name

7.

CATEGORIZE QUESTION

3 mins • 2 pts

Good Variable Names vs Bad Variable Names

Groups:

(a) Good Variable Names

,

(b) Bad Variable Names

input

pet_name

3rd_place

user_age

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?