Python L2 Input & Variable

Quiz
•
Computers
•
6th - 8th Grade
•
Hard
Future Teacher
FREE Resource
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:
Print output
len("Roblox")
Input function
print("Hello")
Variable name
favorite_game
String length
input("Your name?")
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.
CLASSIFICATION QUESTION
3 mins • 2 pts
Good Variable Names vs Bad Variable Names
Groups:
(a) Good Variable Names
,
(b) Bad Variable Names
user_age
pet_name
3rd_place
input
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Intro to Small Basic

Quiz
•
KG - 7th Grade
14 questions
Python Basic Unit 1

Quiz
•
7th - 8th Grade
12 questions
Small Basic Quiz

Quiz
•
7th - 9th Grade
10 questions
Ms. Molloy Computer Science quick quiz

Quiz
•
7th Grade
8 questions
Python Diagnostic Test

Quiz
•
7th Grade
8 questions
Small Basic Mid Point Review

Quiz
•
6th - 12th Grade
10 questions
Physical Computing

Quiz
•
6th - 8th Grade
15 questions
Scratch Arithmetic Operators

Quiz
•
4th - 7th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
8 questions
Time Management

Quiz
•
6th Grade
15 questions
Acceptable Use Policy (Quiz)

Quiz
•
6th - 8th Grade
25 questions
Career Vs. Job

Quiz
•
6th - 8th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
20 questions
Copyright and Fair Use

Quiz
•
6th - 8th Grade
15 questions
Computer Components Video

Interactive video
•
8th Grade