
Python L2 Input & Variable
Authored by Future Teacher
Computers
6th - 8th Grade
Used 6+ times

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
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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
12 questions
Artificial Intelligence Quiz
Quiz
•
6th Grade
10 questions
Working with Text : Summary
Quiz
•
6th Grade
10 questions
Computer System
Quiz
•
8th - 9th Grade
10 questions
Питон
Quiz
•
7th Grade
15 questions
Coding Quiz
Quiz
•
6th - 10th Grade
10 questions
Aeromodelling
Quiz
•
5th - 6th Grade
10 questions
Sains Komputer Tingkatan 4 - 3.1.1 Mengkaji keperluan intera
Quiz
•
1st Grade - Professio...
10 questions
Unit #8 | Worksheet #2
Quiz
•
6th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade