Input and Output Python

Quiz
•
Computers
•
10th Grade
•
Hard
JUSILDA VREKA
Used 7+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 2 pts
If mark is a variable that stores the mark scored by a student, what is the code to print the mark in the format,
“Your score is <mark>”
print (“Your score is", mark)
print ("Your score is" + mark)
print ("Your score is" + int(mark))
print ("Your score is" + str(mark))
2.
MULTIPLE CHOICE QUESTION
10 sec • 2 pts
If total is a variable that stores a total of 5 numbers, what is the code to print the total in the format,
“The total of 5 numbers is <total>”
print (“The total of 5 numbers is “+ int(total))
print (“The total of 5 numbers is “+ float(total))
print (“The total of 5 numbers is ", str(total))
print ("The total of 5 numbers is "+ str(total))
3.
MULTIPLE CHOICE QUESTION
10 sec • 2 pts
Which operator concatenates two strings?
Operator ,
Operator +
Operator –
Operator \
4.
MULTIPLE CHOICE QUESTION
10 sec • 2 pts
What is the significance of adding end=“ “ at the end of a print statement?
To print multiline strings.
To print the next statement in the same line with a space in between them.
To print statements in two different lines.
To insert a tab character between two statements.
5.
MULTIPLE CHOICE QUESTION
10 sec • 2 pts
Which of the following statements is used to print multiline strings as given.
print('70% of Earth’s surface
is covered in
water’)
print(“70% of Earth’s surface
is covered in
water”)
print("""70% of Earth’s surface
is covered in
water""")
print(“70% of Earth’s surface\
is covered in\
water”)
6.
MULTIPLE CHOICE QUESTION
10 sec • 2 pts
If customerName = “Bob” and phoneNum = “0171983055”, what is the output when the statement print(customerName + phoneNum) is executed?
Bob 0171983055
Bob0171983055
Bob+0171983055
TypeError
7.
MULTIPLE CHOICE QUESTION
10 sec • 2 pts
he Python output when a print statement is executed is given. What is the correct print statement?
print("\nA fact\n Earth's gravity\nis not\nuniform")
print("\nA fact\n \nEarth's gravity\nis not\n\nuniform")
print("\nA fact\n \nEarth's gravity\nis not\nuniform")
print("A fact\n \nEarth's gravity\nis not\nuniform")
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Python Math

Quiz
•
1st - 12th Grade
15 questions
list in python

Quiz
•
10th - 12th Grade
15 questions
CSE_CodeHS_intro_python_unit_3_5

Quiz
•
9th - 12th Grade
12 questions
Project-Stem Unit 1 python coding

Quiz
•
9th - 12th Grade
14 questions
циклы в Python

Quiz
•
10th Grade
10 questions
Creating Database Tables

Quiz
•
8th - 10th Grade
15 questions
IF and Vlookup Function

Quiz
•
9th - 10th Grade
15 questions
Pemrograman

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Analog vs Digital

Quiz
•
9th - 12th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade