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
•
1st - 12th Grade
10 questions
KS4 Programming Techniques (1)
Quiz
•
8th - 10th Grade
10 questions
Python списки
Quiz
•
10th Grade
15 questions
CP M4 Repetition & Loops
Quiz
•
9th - 12th Grade
11 questions
J277 Programming - Data Types
Quiz
•
9th - 11th Grade
12 questions
Introduction to Python Programming
Quiz
•
7th - 10th Grade
10 questions
Trắc nghiệm: Bài 18-Các lệnh vào ra đơn giản
Quiz
•
10th Grade
12 questions
Project-Stem Unit 1 python coding
Quiz
•
9th - 12th Grade
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade
17 questions
Parts of Speech
Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression
Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing
Quiz
•
9th - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University