
Python User Input Quiz
Quiz
•
Computers
•
6th Grade
•
Practice Problem
•
Medium
Sreeja Gopalakrishnan
Used 2+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What function is used in Python to accept user input?
print()
input()
output()
enter()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type of value does the input() function return by default?
Integer
Float
String
Boolean
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to convert a user input to an integer in Python?
str()
float()
int()
bool()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is automatically added in a print statement when using a comma separator?
A period
A space
A tab
A newline
5.
OPEN ENDED QUESTION
3 mins • 1 pt
Write a Python program that asks for a user's name and age, then prints:
"Hello [Name], you are [Age] years old!"
Write a Python program that asks for a user's name and age, then prints:
"Hello [Name], you are [Age] years old!"
Evaluate responses using AI:
OFF
6.
FILL IN THE BLANK QUESTION
1 min • 1 pt
______________ will the following code print.
output = ""
x = -5
while x < 0:
x = x + 1
output = output + str(x) + " "
print(output)
7.
FILL IN THE BLANK QUESTION
1 min • 1 pt
The ______ function is used to accept user input in Python.
The ______ function is used to accept user input in Python.
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
8 questions
Basic computer
Quiz
•
9th - 12th Grade
10 questions
KT thường xuyên Tin 7
Quiz
•
6th - 8th Grade
10 questions
Visual Basic 2010
Quiz
•
8th Grade - University
10 questions
Trắc nghiệm bài 12 tin học 11
Quiz
•
11th Grade
10 questions
Quiz 8 (01.09.2021)
Quiz
•
1st - 12th Grade
10 questions
Software dan Hardware
Quiz
•
University
10 questions
Peranti Input Ouput
Quiz
•
University
10 questions
Observasi TIK Kelas IX
Quiz
•
8th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
