What is the purpose of the first parameter in the str.format() function?

Select one:

a.
To control the overall width of the output

b.
To set up the overall structure of the output, including placeholders for other data

c.
To hold the first data value that will be inserted into the output string

d.
To specify how many optional parameters are provided

Question 2Complete
Question text
If you use the format string "My {} cost {}" in str.format(), how many additional data parameters are you expected to provide?
Select one:

a.
0

b.
2

c.
1

d.
3

Question 3Complete
Question text
What string value is stored in the result variable by the following statement?
result = str.format("{1} {0} is really Superman", "Kent", "Clark")
Select one:

a.
Clark Kent is really Superman

b.
Kent Clark is really Superman

c.
Clark Kent

d.
{1} {0} is really Superman

Question 4Complete
Question text
What text is displayed on output by the following statement?
print(str.format("#{0:4}#", "dog") )
Select one:

a.
#dog#

b.
dog

c.
#dog #

d.
##

Question 5Complete
Question text
Which of the following placeholders in a str.format() format string would display a floating point value, centered in a 15-character wide field?
Select one:

a.
{15:^f}

b.
{0:^15f}

c.
{0:15d}

d.
15{0:f}

b. To set up the overall structure of the output, including placeholders for other data