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

Ch. 5 Exam Review

Quiz
•
Information Technology (IT)
•
8th Grade
•
Medium
Ashley Brown
Used 11+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
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?
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
Only the first parameter will be present in the output string
The resulting string must be less than 128 characters in length
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)
purple
My favorite color ispurple
My favorite color is favoriteColor
My favorite color is purple
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)
$ 112.5
My balance is: $ accountBalance
My balance is: $ 112.5
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? print("If you can dream it", "you can do it.", sep="#")
If you can dream it#you can do it.
If you can dream it, you can do it.
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 = " ")
1
2
3
0
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following two statements about the print() function are true?
print() with multiple parameters will automatically convert all values to strings and join them together with a space
print() with a single string parameter will display the exact string that you pass in
Both of these are true
Neither of these is true
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
mid exam 2017

Quiz
•
8th Grade
19 questions
Quick Lookup - Printing Variables

Quiz
•
8th Grade
20 questions
BAB 4 SISTEM KOMPUTER KELAS 8

Quiz
•
8th Grade - University
20 questions
Quiz Komponen dan Perangkat Keras Komputer

Quiz
•
8th Grade
16 questions
4.1 Kod Arahan

Quiz
•
1st Grade - University
20 questions
quiz1B1

Quiz
•
7th Grade - University
17 questions
Programski jezik Python

Quiz
•
8th Grade
15 questions
Selection Programming_If condition

Quiz
•
8th Grade - University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
25 questions
SS Combined Advisory Quiz

Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
15 questions
June Review Quiz

Quiz
•
Professional Development
20 questions
Congruent and Similar Triangles

Quiz
•
8th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade
Discover more resources for Information Technology (IT)
25 questions
SS Combined Advisory Quiz

Quiz
•
6th - 8th Grade
20 questions
Congruent and Similar Triangles

Quiz
•
8th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
6 questions
Earth's energy budget and the greenhouse effect

Lesson
•
6th - 8th Grade
15 questions
SMART Goals

Quiz
•
8th - 12th Grade
20 questions
Lesson: Slope and Y-intercept from a graph

Quiz
•
8th Grade