Question: What operator is used to perform string concatenation in Python? * + & @ 2 What output does the following code produce? print ( '

What operator is used to perform string concatenation in Python?
*
+
&
@
2
What output does the following code produce?
print('Total: '+100+20)
Total: 120
Total: 10020
Total: 1000200
No output. This line would produce an error.
3
What issue must be addressed when printing a long character string?
The print method cannot print character strings.
A regular string literal cannot span across multiple lines.
The string must be subdivided into sections of 50 characters or less.
The print method has a maximum number of characters it can accept.
4
If a variable called pioneer refers to the string 'Grace Murray Hopper', what is the result of the expression len(pioneer)?
17
18
19
20
5
If a variable called business refers to the string 'Time Warner', what is the result of the expression business[6]?
'W'
'a'
''
'r'
6
If a variable called son refers to the string 'Justin', what is the result of the expression son[-3]?
'tin'
's'
't'
The expression will generate an interpreter error.
7
You cannot change the contents of Python character string once it has been created.
True
False
8
If a variable called jedi refers to the string 'Yoda', what is the result of the expression jedi *3?
YodaYodaYoda
YYYooodddaaa
12
The expression will generate an interpreter error.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!