
Python User Input Quiz

Quiz
•
Computers
•
6th Grade
•
Medium
Sreeja Gopalakrishnan
Used 2+ times
FREE Resource
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!"
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.
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Python L2

Quiz
•
10th - 11th Grade
12 questions
Python Print Statement

Quiz
•
6th - 10th Grade
15 questions
Python basics

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

Quiz
•
10th Grade
10 questions
Python Basics

Quiz
•
8th - 10th Grade
14 questions
Y9 - Module 2 - KT1 Python Basics

Quiz
•
9th Grade
10 questions
Python Statements

Quiz
•
5th - 7th Grade
10 questions
Python Inputs

Quiz
•
7th - 8th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

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

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade