
Mastering Python Input and Output

Quiz
•
Computers
•
Professional Development
•
Medium
Poornimha Jayabal
Used 4+ times
FREE Resource
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=''
Create a free account and access millions of resources
Similar Resources on Wayground
9 questions
PreTrainingJavaScript

Quiz
•
Professional Development
13 questions
Javascript HTML CSS

Quiz
•
Professional Development
15 questions
Phase_2 Pre- Python Quiz

Quiz
•
Professional Development
10 questions
Basic Python

Quiz
•
Professional Development
10 questions
Ցիկլային ալգորիթմներ, ցիկլի օպերատոր Python ծրագրավորման լեզվում

Quiz
•
Professional Development
15 questions
Entrada e Saída de Dados e Variáveis

Quiz
•
Professional Development
12 questions
JavaScript

Quiz
•
Professional Development
10 questions
C++Quiz#1

Quiz
•
Professional Development
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
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
15 questions
Fun Random Trivia

Quiz
•
Professional Development
22 questions
Anne Bradstreet 1612-1672

Quiz
•
Professional Development
18 questions
Spanish Speaking Countries and Capitals

Quiz
•
KG - Professional Dev...
14 questions
Fall Trivia

Quiz
•
11th Grade - Professi...
15 questions
Disney Characters Quiz

Quiz
•
Professional Development
15 questions
Quiz to Highlight Q types & other great features in Wayground

Quiz
•
Professional Development