User Input in Python

Quiz
•
Computers
•
8th Grade
•
Hard
Mr. So
Used 242+ 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
10 questions
Python User Input Quiz

Quiz
•
6th Grade - University
10 questions
Flowchart

Quiz
•
1st - 9th Grade
12 questions
Python

Quiz
•
7th - 9th Grade
10 questions
What is the device?

Quiz
•
7th - 10th Grade
12 questions
Micro:bit Quiz 2

Quiz
•
6th - 8th Grade
10 questions
สอบเก็บคะแนน การเขียนโปรแกรมด้วยภาษา Python

Quiz
•
8th Grade
10 questions
Python Plus : Rock, Paper, Scissors

Quiz
•
6th - 8th Grade
10 questions
Python Inputs

Quiz
•
7th - 8th 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
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
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade