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>”
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")
15 questions
Python
Quiz
•
6th Grade - University
10 questions
Lớp 10: Câu hỏi TN củng cố kiến thức
Quiz
•
10th Grade
7 questions
النشاط الختامي لدرس جملة الإدخال
Quiz
•
10th Grade
11 questions
Python Casting & Data Types
Quiz
•
9th - 12th Grade
10 questions
Java while loops
Quiz
•
10th - 12th Grade
15 questions
Ôn tập KTGK. Bài 19 Câu lệnh điều kiện If
Quiz
•
10th Grade
12 questions
Functions With Return Values U1M2 Python
Quiz
•
9th - 12th Grade
15 questions
Java Variables, Input and Output
Quiz
•
10th - 12th Grade
15 questions
Multiplication Facts
Quiz
•
4th Grade
20 questions
Math Review - Grade 6
Quiz
•
6th Grade
20 questions
math review
Quiz
•
4th Grade
5 questions
capitalization in sentences
Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance
Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions
Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines
Quiz
•
Professional Development
12 questions
Dividing Fractions
Quiz
•
6th Grade
25 questions
Spanish preterite verbs (irregular/changed)
Quiz
•
9th - 10th Grade
10 questions
Juneteenth: History and Significance
Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1
Quiz
•
9th - 12th Grade
20 questions
Distance, Midpoint, and Slope
Quiz
•
10th Grade
20 questions
Figurative Language Review
Quiz
•
10th Grade
20 questions
Understanding Linear Equations and Slopes
Quiz
•
9th - 12th Grade