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")
String length
input("Your name?")
Input function
favorite_game
Print output
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.
b = temporary
a = b
temporary = a
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
user_age
3rd_place
pet_name
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Python Programming

Quiz
•
7th - 9th Grade
14 questions
Python L1

Quiz
•
8th Grade - University
10 questions
Computer Software

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

Quiz
•
8th Grade
11 questions
Quiz#2

Quiz
•
6th - 8th Grade
10 questions
Y9 Intro to Python

Quiz
•
8th Grade
12 questions
Python Quiz 8.3

Quiz
•
6th - 8th Grade
10 questions
KS4 Programming Techniques (1)

Quiz
•
8th - 10th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
30 questions
Teacher Facts

Quiz
•
6th Grade
24 questions
Flinn Lab Safety Quiz

Quiz
•
5th - 8th Grade
22 questions
Figurative Language

Quiz
•
7th Grade