
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:
String length
len("Roblox")
Input function
input("Your name?")
Variable name
print("Hello")
Print output
favorite_game
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
b = temporary
a = b
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
user_age
3rd_place
input
pet_name
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
10 questions
JSPS Competition Hackathon - Scratch Language - Grade 1
Quiz
•
2nd Grade - University
14 questions
Input, output and storage de
Quiz
•
8th Grade - Professio...
10 questions
kuis
Quiz
•
7th Grade
14 questions
Мотылек
Quiz
•
6th - 8th Grade
10 questions
QBASIC Programming
Quiz
•
5th - 10th Grade
10 questions
Kiểm tra 15' tin 8 lần 2
Quiz
•
8th Grade
10 questions
hardware and software(g3)
Quiz
•
2nd - 10th Grade
9 questions
Microbit Features Activity
Quiz
•
6th - 8th 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