
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
14 questions
Day 1 - Basics of Java
Quiz
•
Professional Development
10 questions
Introducción a Python
Quiz
•
Professional Development
15 questions
PL/SQL Programming
Quiz
•
Professional Development
10 questions
Mid2 Lab Internal PPS
Quiz
•
Professional Development
14 questions
AES: Coding Fundamentals Lessons 1 and 2
Quiz
•
7th Grade - Professio...
15 questions
CodeHS - Intro to Python - Conditionals Quiz
Quiz
•
9th Grade - Professio...
10 questions
HERData
Quiz
•
Professional Development
10 questions
Introduction to Computer
Quiz
•
Professional Development
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th 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
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
25 questions
Christmas Movies
Quiz
•
Professional Development
20 questions
Christmas Trivia
Quiz
•
Professional Development
15 questions
Fun Holiday Trivia
Quiz
•
Professional Development
25 questions
Name That Tune - Christmas
Quiz
•
Professional Development
29 questions
Christmas Song Emoji Pictionary
Quiz
•
Professional Development
9 questions
Holiday Movie Trivia
Lesson
•
Professional Development
34 questions
Winter Trivia
Quiz
•
Professional Development