Well done!

You have completed Strings Quiz!

Quiz Question 1 of 5

If you have a string s = "Data Science" and you want to center this string within a total width of 20 characters, padding with hyphens ("-"), which of the following would achieve the correct result?

Choose the correct answer below:

Skip Quiz Review Instruction