If you concatenate strings together with the plus sign (+), which of the following statements is true?
Chapter 3 Review

Quiz
•
Computers
•
9th - 12th Grade
•
Hard

Evanna Johnson
Used 21+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A space will be automatically added to separate each part within the output string
No spaces will be added to separate the parts within the output string
Only the longer input string will appear in the output string
The resulting string must be less than 128 characters in length
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When you use the print() statement to automatically concatenate multiple parameters together, which of the following statements is true?
The resulting string must be less than 128 characters in length
Only the first parameter will be present in the output string
No spaces will be added to separate the parts within the output string
A space will be automatically added to separate each part within the output string
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output when the following statements are run?
favoriteColor = "purple" print("My favorite color is", favoriteColor)
My favorite color is purple
purple
My favorite color is favoriteColor
My favorite color ispurple
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output when the following statements are run?
accountBalance = 112.5 print("My balance is: $", accountBalance)
My balance is: $ 112.5
My balance is: $ accountBalance
$112.50
You will see an error because you can't use a numeric parameter inside print()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which answer shows the output from the following print() statement?
If you can dream it, you can do it.
print("If you can dream it", "you can do it.", sep="#")
If#you#can#dream#it#you#can#do#it.
you can do it.#sep#If you can dream it
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many lines of output will be shown from the following code?
print("Line 1", end = " ") print("Line 2") print("Line 3", end = " ")
0
1
2
3
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following two statements about the print() function are true?
print() with a single string parameter will display the exact string that you pass in
print() with multiple parameters will automatically convert all values to strings and join them together with a space
both of theses are true
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
ASK T2 - Kod Arahan (Python)

Quiz
•
7th Grade - University
12 questions
Python Programming Basics

Quiz
•
7th - 11th Grade
10 questions
Exploring Python: Input and Output Essentials

Quiz
•
9th Grade - University
15 questions
Python Casting and Input

Quiz
•
8th - 11th Grade
12 questions
N5 SDD - Python input and output

Quiz
•
7th - 11th Grade
12 questions
Java Strings

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

Quiz
•
9th - 12th Grade
18 questions
Computer Science (Python)

Quiz
•
9th Grade
Popular Resources on Quizizz
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
Discover more resources for Computers
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
10 questions
Identify Slope and y-intercept (from equation)

Quiz
•
8th - 9th 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
26 questions
June 19th

Quiz
•
4th - 9th Grade
20 questions
Distance, Midpoint, and Slope

Quiz
•
10th Grade
20 questions
Figurative Language Review

Quiz
•
10th Grade
27 questions
STAAR English 1 Review

Quiz
•
9th Grade