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:
Variable name
len("Roblox")
Print output
favorite_game
String length
print("Hello")
Input function
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.
a = b
temporary = a
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
input
pet_name
3rd_place
user_age
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Y8 - Event Driven Programming

Quiz
•
7th Grade
10 questions
Microbit lesson 2

Quiz
•
6th Grade
10 questions
Python Programming

Quiz
•
7th - 9th Grade
10 questions
KS4 Programming Techniques (1)

Quiz
•
8th - 10th Grade
8 questions
User Input in Python

Quiz
•
8th Grade
12 questions
S3 Python 1

Quiz
•
8th - 10th Grade
15 questions
Python Part 1

Quiz
•
8th Grade
15 questions
Y7 Python Mid Point

Quiz
•
7th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

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

Interactive video
•
6th - 10th Grade
20 questions
typing

Quiz
•
6th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
20 questions
Input, Output, Processing or Storage

Quiz
•
5th - 6th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade