Which of the following statements will correctly assign the value "Yes, Please" to a variable named "more"?

Select one:

a.
more("Yes, Please")

b.
more = "Yes, Please"

c.
more: Yes, Please

d.
Yes, Please = more

b. more = "Yes, Please"

Which of the following statements will correctly combine the string values "baa" and "sheep" into a variable called "animal"?

Select one:

a.
"baa + sheep" = animal

b.
animal = baa.sheep

c.
animal = "baa" + "sheep"

d.
animal("baa"+"sheep")

c. animal = "baa" + "sheep"

What is wrong with the following code?

result = 10 * 10
print("The answer is " + result)

Select one:

a.
Error - the mathematical operation 10 * 10 is invalid

b.
Error - the "+" symbol has no meaning for strings

c.
Error - Python can't convert the integer result to a string automatically when concatenating

d.
Nothing is wrong; this code will run without errors

c. Error - Python can't convert the integer result to a string automatically when concatenating

What is the printed output from the following statement?

print("Testing" + "Testing")

Select one:

a.
Testing Testing

b.
class 'str'

c.
An error message

d.
TestingTesting

d. TestingTesting

Which symbol is used to combine (concatenate) two strings together into a single value?

Select one:

a.
= (equals sign)

b.
. (dot)

c.
+ (plus sign)

d.
* (asterisk)

c. + (plus sign)

The correct statement that assigns the value "Yes, Please" to a variable named "more" is option b, which is:

more = "Yes, Please"

In this statement, the variable "more" is assigned the value "Yes, Please" using the assignment operator (=). The value is enclosed in double quotation marks to indicate that it is a string literal.