
Mastering Python Input and Output
Authored by Poornimha Jayabal
Computers
Professional Development
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What function is used to take user input in Python?
get_input()
input()
scan()
read()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you store the value obtained from input() in a variable?
store input in variable_name()
variable_name : input()
variable_name = input()
input = variable_name
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the default data type of the value returned by input()?
integer
list
boolean
string
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you convert the input from a string to an integer?
Apply float() in Python or number() in JavaScript.
Use int() in Python or parseInt() in JavaScript.
Use str() in Python or convertToInt() in JavaScript.
Use parseFloat() in Python or toInteger() in JavaScript.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What function is used to display output to the console in Python?
print()
display()
show()
output()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you print multiple items in one print() statement?
Call print() multiple times for each item separately.
Use print(item1, item2, item3) to print multiple items.
Use print([item1, item2, item3]) to print items as a list.
Use print(item1 + item2 + item3) to concatenate items.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What keyword can be used to end a print statement without a newline?
end=' '
end='\t'
end='\n'
end=''
Access all questions and much more by creating a free account
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
11 questions
Java Fundamentals
Quiz
•
Professional Development
10 questions
04 - Python - Lists
Quiz
•
University - Professi...
10 questions
02 - Python - Introduction & Installation
Quiz
•
University - Professi...
10 questions
QUIZ FAST- Auditor
Quiz
•
Professional Development
14 questions
Input, output and storage de
Quiz
•
8th Grade - Professio...
11 questions
computer
Quiz
•
KG - Professional Dev...
15 questions
AI-102_MODULE-4
Quiz
•
Professional Development
10 questions
DP-100 Day 4
Quiz
•
University - Professi...
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Computers
10 questions
How to Email your Teacher
Quiz
•
Professional Development
6 questions
3RD GRADE DECLARATION OF INDEPENDENCE EXIT TICKET
Quiz
•
Professional Development
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
22 questions
Multiplying Exponents with the Same Base
Quiz
•
9th Grade - Professio...
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...