User Input in Python

Quiz
•
Computers
•
8th Grade
•
Hard
Mr. So
Used 243+ times
FREE Resource
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is missing from this input statement?
input ("What is your name? ")
the answer
a variable to store the input
an output
print =
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Look at the following code:
name = input ("What is your name? ")
print (name)
What would be printed from the print command?
whatever the user wrote
name
Andre
What is your name?
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Look at the following code:
name = input ("What is your name? ")
name = input ("What is your age? ")
print (name)
If the user answered "John" to the first question and "23" to the second, what will be printed?
23
John
name
an error message
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Look at the following code:
name = input ("What is your name? ")
age = input ("What is your age? ")
print (name)
If the user answered "John" to the first question and "23" to the second, what will be printed?
23
John
name
an error message
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Look at the following code:
name = input ("What is your name? ")
name = input ("What is your age? ")
print (age)
If the user answered "John" to the first question and "23" to the second, what will be printed?
23
John
age
an error message
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Look at the following code:
name = input ("What is your name? ")
name = input ("What is your age? ")
print ("name")
If the user answered "John" to the first question and "23" to the second, what will be printed?
23
John
name
an error message
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Look at the following code:
name = input ("What is your name? ")
name = input ("What is your age? ")
If the user answered "John" to the first question and "23" to the second, what type of data is in name?
str
int
float
none of the above
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Look at the following code:
name = input ("What is your name? ")
age = input ("What is your age? ")
If the user answered "John" to the first question and "23" to the second, what type of data is in age?
str
int
float
none of the above
Similar Resources on Wayground
5 questions
Y8 Basic Python Recap

Quiz
•
7th - 8th Grade
12 questions
Introduction to Python Programming

Quiz
•
7th - 10th Grade
10 questions
Python Programming

Quiz
•
7th - 9th Grade
12 questions
S3 Python 1

Quiz
•
8th - 10th Grade
10 questions
Inside the Computer

Quiz
•
2nd - 10th Grade
8 questions
Variables in Python

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

Quiz
•
8th - 10th Grade
10 questions
Dangers of Social Media

Quiz
•
6th - 8th 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
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
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade